-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (64 loc) · 1.87 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
group 'com.austinv11'
version '1.1.0'
buildscript {
ext.kotlin_version = '1.1.2-2'
ext.kotlin_coroutines_version = '0.15'
ext.slf4j_version = '1.7.24'
ext.msgpack_version = '0.8.13'
ext.dokka_version = '0.9.14'
ext.jsr305_version = '3.0.0'
ext.commons_compression_version = '1.14'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'org.jetbrains.dokka'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$kotlin_coroutines_version"
compileOnly "com.google.code.findbugs:jsr305:$jsr305_version"
compile "org.slf4j:slf4j-api:$slf4j_version"
compile "org.msgpack:msgpack-core:$msgpack_version"
compile "org.apache.commons:commons-compress:$commons_compression_version"//TODO replace with https://github.com/lz4/lz4-java when its updated
testCompile "org.slf4j:slf4j-simple:$slf4j_version"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: dokka) {
classifier = 'javadoc'
from javadoc.destinationDir
}
javadoc {
failOnError false
}
artifacts {
archives sourcesJar
archives javadocJar
}
kotlin {
experimental {
coroutines "enable"
}
}
dokka {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/docs/javadoc"
jdkVersion = 8
}