-
-
Notifications
You must be signed in to change notification settings - Fork 874
/
build.gradle
67 lines (50 loc) · 1.66 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
62
63
64
65
66
67
buildscript {
ext.kotlin_version = '1.4.10'
ext.junit_version = '5.7.0'
ext.ec_version = '10.4.0'
ext.guava_version = '28.2-jre'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: "kotlin"
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
sourceSets {
//combine Kotlin and Java source into same dirs
main.kotlin.srcDirs += 'src/main/java'
main.java.srcDirs += 'src/main/java'
test.kotlin.srcDirs += 'src/test/java'
test.java.srcDirs += 'src/test/java'
//include generated code into build
main.kotlin.srcDirs += 'srcGen/main/java'
main.java.srcDirs += 'srcGen/main/java'
test.kotlin.srcDirs += 'srcGen/test/java'
test.java.srcDirs += 'srcGen/test/java'
}
repositories {
mavenCentral()
}
test{
maxParallelForks = 5
maxHeapSize = '2G'
}
dependencies {
compile "org.eclipse.collections:eclipse-collections-api:$ec_version"
compile "org.eclipse.collections:eclipse-collections:$ec_version"
compile "com.google.guava:guava:$guava_version"
compile group: 'org.jetbrains', name: 'annotations', version: '20.1.0'
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'org.lz4:lz4-java:1.7.1'
testCompile("io.kotlintest:kotlintest-runner-junit5:3.4.2")
testCompile("org.junit.vintage:junit-vintage-engine:$junit_version")
testCompile("org.junit.jupiter:junit-jupiter-api:$junit_version")
testCompile("org.junit.jupiter:junit-jupiter-engine:$junit_version")
}