-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
57 lines (47 loc) · 1.43 KB
/
build.gradle
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
apply plugin: 'run.smt.dependency-properties'
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:1.0.1.RELEASE'
classpath 'run.smt.gradle.plugins:dependency-properties-plugin:1.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
}
}
def leafProjects = subprojects.findAll { it.projectDir.toPath().resolve("build.gradle").toFile().exists() }
configure(leafProjects.findAll { !(it.name in [project(':ktest-pom'), project(':doc-test')].collect { it.name }) }) {
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'io.spring.dependency-management'
apply from: "${rootDir}/dependencies.gradle"
apply from: "${rootDir}/gradle/ossrh.gradle"
apply from: "${rootDir}/gradle/ossrh-default-pom.gradle"
repositories {
mavenLocal()
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
}