-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
57 lines (51 loc) · 1.83 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
54
55
56
57
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinVersion = "1.2.70"
val log4jVersion = "[2.0.0, 2.999.999)"
val log4jGroup = "org.apache.logging.log4j"
plugins {
kotlin("jvm").version("1.2.70")
id("com.atlassian.performance.tools.gradle-release").version("0.7.1")
}
configurations.all {
resolutionStrategy {
activateDependencyLocking()
failOnVersionConflict()
eachDependency {
when (requested.module.toString()) {
"org.jetbrains:annotations" -> useVersion("15.0")
// conflict between testcontainers, ssh-ubuntu and sshj
"org.slf4j:slf4j-api" -> useVersion("1.7.25")
}
when (requested.group) {
"org.jetbrains.kotlin" -> useVersion(kotlinVersion)
// conflict between jvm-tasks and ssh-ubuntu
log4jGroup -> useVersion(log4jVersion)
}
}
}
}
dependencies {
compile("com.atlassian.performance.tools:jvm-tasks:[1.0.0,2.0.0)")
compile("com.atlassian.performance.tools:io:[1.0.0,2.0.0)")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
compile("org.glassfish:javax.json:1.1")
compile("com.hierynomus:sshj:0.23.0")
api("$log4jGroup:log4j-api:$log4jVersion")
testImplementation("$log4jGroup:log4j-core:$log4jVersion")
testCompile("junit:junit:4.12")
testCompile("com.atlassian.performance.tools:ssh-ubuntu:0.1.0")
}
tasks
.withType(KotlinCompile::class.java)
.forEach { compileTask ->
compileTask.apply {
kotlinOptions.apply {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=enable")
}
}
}
tasks.getByName("wrapper", Wrapper::class).apply {
gradleVersion = "5.2.1"
distributionType = Wrapper.DistributionType.ALL
}