-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (52 loc) · 2.16 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
group 'fr.clementgarbay.javacqrs'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.2.30'
ext.junit_gradle_version = '1.0.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.junit.platform:junit-platform-gradle-plugin:$junit_gradle_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'org.junit.platform.gradle.plugin'
junitPlatform {
filters {
engines {
include 'spek'
}
}
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
def kodein_version = '4.1.0' // Kodein dependency injection
def validation_version = '2.0.1.Final' // Validation api (interfaces)
def hibernate_version = '6.0.7.Final' // Hibernate validator
def javax_el_version = '3.0.1-b08' // Implementation of the Unified Expression Language (JSR 341)
def spark_version = '1.0.0-alpha' // Spark REST API
def kluent_version = '1.4' // Test assertion library
def spek_version = '1.1.5' // Test specification library
def junit_runner_version = '1.0.0' // Test runner
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: "$kotlin_version"
compile group: 'com.github.salomonbrys.kodein', name: 'kodein', version: "$kodein_version"
compile group: 'javax.validation', name: 'validation-api', version: "$validation_version"
compile group: 'org.hibernate', name: 'hibernate-validator', version: "$hibernate_version"
compile group: 'org.glassfish', name: 'javax.el', version: "$javax_el_version"
compile group: 'com.sparkjava', name: 'spark-kotlin', version: "$spark_version"
testCompile group: 'org.amshove.kluent', name: 'kluent', version: "$kluent_version"
testCompile group: 'org.jetbrains.spek', name: 'spek-api', version: "$spek_version"
testCompile group: 'org.junit.platform', name: 'junit-platform-runner', version: "$junit_runner_version"
testRuntime group: 'org.jetbrains.spek', name: 'spek-junit-platform-engine', version: "$spek_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}