-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
executable file
·50 lines (41 loc) · 1.32 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
defaultTasks 'clean','build'
buildscript {
ext {
kotlinVersion = '1.2.51'
mockitoKotlin = "1.5.0"
junitVersion = '5.2.0'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
group = 'com.tgt.trans.common'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jar {
baseName = 'konsumers'
version = '1.0-SNAPSHOT'
}
version = project.hasProperty('suffix') ? version + project.suffix : version
repositories { mavenCentral() }
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.jetbrains.kotlin:kotlin-reflect"
testCompile "org.jetbrains.kotlin:kotlin-test"
compile "org.jetbrains.kotlin:kotlin-test-junit"
compile("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:${junitVersion}") // needed to execute any JUnit4-style tests
testCompile group: 'io.mockk', name: 'mockk', version: '1.9.3'
}
sourceSets {
test {
kotlin.srcDirs = ['src/test/kotlin/unit', 'src/test/java/unit']
}
}