-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (49 loc) · 1.39 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
58
59
60
import org.gradle.jvm.tasks.Jar
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
val kotlinVersion = "1.1.1"
extra["kotlinVersion"] = kotlinVersion
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:0.9.13")
}
}
apply {
plugin("kotlin")
plugin("maven")
plugin("org.jetbrains.dokka")
}
group = "io.projectreactor"
repositories {
mavenCentral()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
val kotlinVersion = extra["kotlinVersion"] as String
val reactorCoreVersion = "3.0.5.RELEASE"
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
compile("io.projectreactor:reactor-core:$reactorCoreVersion")
compileOnly("io.projectreactor.addons:reactor-test:$reactorCoreVersion")
testCompile("io.projectreactor.addons:reactor-test:$reactorCoreVersion")
testCompile("junit:junit:4.12")
}
val dokkaJar = task<Jar>("dokkaJar") {
dependsOn("dokka")
classifier = "javadoc"
from((tasks.getByName("dokka") as DokkaTask).outputDirectory)
}
val sourcesJar = task<Jar>("sourcesJar") {
classifier = "sources"
from(the<JavaPluginConvention>().sourceSets.getByName("main").allSource)
}
artifacts.add("archives", dokkaJar)
artifacts.add("archives", sourcesJar)