-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
53 lines (43 loc) · 1.17 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version Deps.KOTLIN_VERSION
}
println("Printing all environment variables:\n")
System.getenv().forEach {
println("\"${it.key}\" = \"${it.value}\"")
}
val globalArtifactsBuildDir: File by extra { buildDir }
allprojects {
apply(plugin = "idea")
group = "ai.dstack"
version = "0.1-SNAPSHOT"
repositories {
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
mavenCentral()
jcenter()
mavenLocal()
}
}
subprojects {
apply(plugin = "java")
apply(plugin = "org.jetbrains.kotlin.jvm")
dependencies {
compile(Deps.kotlin_stdlib_jdk8)
compile(Deps.kotlin_logging)
testCompile(Deps.junit_jupiter_api)
testCompile(Deps.junit_jupiter_params)
testCompile(Deps.google_truth)
testCompile(Deps.mockito_core)
testRuntime(Deps.junit_jupiter_engine)
testRuntime(Deps.slf4j_log4j12)
}
tasks.withType(KotlinCompile::class.java).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType(Test::class.java) {
useJUnitPlatform()
}
}