-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
47 lines (37 loc) · 1.01 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
apply plugin: 'maven'
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
buildscript {
ext.kotlinVersion = '1.2.30-eap-47'
repositories {
jcenter() // shadow
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib"
testCompile 'io.kotlintest:kotlintest:2.0.7'
}
repositories {
mavenCentral()
jcenter()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
maven { setUrl("https://jitpack.io") }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}