-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (66 loc) · 1.64 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
buildscript {
ext.kotlin_version = "1.2.60"
repositories {
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}")
}
}
group = "com.helpchoice.kotlin"
version = "1.1.6"
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "maven"
apply plugin: 'org.jetbrains.dokka'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
testCompile("junit:junit:4.12")
testCompile("io.kotlintest:kotlintest:2.0.0")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task writeNewPom {
group "build"
doLast {
pom {
project {
inceptionYear "2008"
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
}
}.writeTo("$libsDir/$project.name-${version}.pom")
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
group "build"
classifier = "sources"
from sourceSets.main.allSource
}
dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/dokka"
}
task dokkadocJar(type: Jar, dependsOn: dokka) {
group "build"
classifier = "javadoc"
from dokka.outputDirectory
}
artifacts {
archives sourcesJar
archives dokkadocJar
}