-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (43 loc) · 1.13 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
apply plugin: 'kotlin'
apply from: 'gitversion.gradle'
apply from: 'findbugs.gradle'
apply from: 'detekt.gradle'
apply from: 'ktlint.gradle'
apply from: 'bintray.gradle'
apply from: 'maven.gradle'
buildscript {
ext.kotlin_version = '1.3.72'
ext.detekt_version = '1.0.0.RC8'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.google.code.findbugs:annotations:3.0.1"
testCompile "junit:junit:4.13.2"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
}
compileKotlin {
kotlinOptions.allWarningsAsErrors = true
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier = 'javadoc'
}
// Needed for bintray
project.artifacts {
archives sourceJar
archives javadocJar
}