-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
32 lines (27 loc) · 875 Bytes
/
build.gradle.kts
File metadata and controls
32 lines (27 loc) · 875 Bytes
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
/*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
configurations {
maybeCreate("runtimeClasspath")
maybeCreate("provided")
}
val copyLibsCompileTask = tasks.register("copyLibsCompile", Copy::class.java) {
from(configurations["runtimeClasspath"])
into(File(project.rootDir, "build/libs"))
}
plugins.withId("org.jetbrains.kotlin.jvm") {
tasks.withType(JavaCompile::class.java).all {
dependsOn(copyLibsCompileTask)
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
}
}
}
tasks.register("clean", Delete::class.java) {
delete(rootProject.layout.buildDirectory)
}