forked from cs125-illinois/jeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
41 lines (40 loc) · 1.09 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.3.31"
kotlin("jvm") version kotlinVersion apply false
kotlin("kapt") version kotlinVersion apply false
maven
id("com.github.ben-manes.versions") version "0.21.0"
}
allprojects {
repositories {
jcenter()
maven(url="https://jitpack.io")
}
tasks.withType<KotlinCompile> {
val javaVersion = JavaVersion.VERSION_1_8.toString()
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
kotlinOptions {
jvmTarget = javaVersion
}
}
}
subprojects {
tasks.withType<Test> {
enableAssertions = true
}
}
tasks.dependencyUpdates {
resolutionStrategy {
componentSelection {
all {
if (listOf("alpha", "beta", "rc", "cr", "m", "preview", "b", "ea", "eap").any { qualifier ->
candidate.version.matches(Regex("(?i).*[.-]$qualifier[.\\d-+]*"))
}) {
reject("Release candidate")
}
}
}
}
}