-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (40 loc) · 1.03 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
import org.gradle.api.tasks.bundling.Zip
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
buildscript {
val kotlin_version = "1.0.5-3"
extra["kotlin_version"] = kotlin_version
repositories {
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
}
apply {
plugin<BasePlugin>()
}
subprojects {
repositories {
jcenter()
gradleScriptKotlin()
}
apply {
plugin<JavaPlugin>()
plugin<KotlinPluginWrapper>()
}
dependencies {
compile(rootProject.fileTree("lib").apply {
include("*.jar")
})
testCompile("junit:junit:4.12")
testCompile("io.kotlintest:kotlintest:1.3.5")
}
task<Zip>("zipSource") {
from("src/main/java")
include("*.java")
destinationDir = rootProject.buildDir
}
val sourceSets = the<JavaPluginConvention>().sourceSets
val main = sourceSets.getByName("main")
main.java.srcDir("src/provided/java")
}