This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (51 loc) · 1.49 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
buildscript {
repositories.gradlePluginPortal()
dependencies.classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.0"
}
apply plugin: 'java-library'
group 'de.kaleidox'
version '1.1.0-SNAPSHOT'
apply from: 'gradle/vars.gradle'
sourceCompatibility = 1.8
targetCompatibility = 1.8
wrapper {
gradleVersion = '5.6'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = "sources"
}
task javadocJar(type: Jar) {
doFirst {
javadoc
}
from javadoc.destinationDir
archiveClassifier = "javadoc"
}
javadoc {
source = sourceSets.main.java
options {
encoding = 'UTF-8'
destinationDirectory(file("./docs/"))
links = [
"https://docs.oracle.com/javase/8/docs/api/",
"https://docs.oracle.com/javaee/7/api/"
]
}
}
compileJava.options.encoding = 'UTF-8'
repositories.jcenter()
dependencies {
compileOnly 'org.jetbrains:annotations:17.0.0'
implementation 'com.squareup.okhttp3:okhttp:4.1.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0.pr1'
// jackson modules
runtimeOnly 'com.fasterxml.jackson.module:jackson-module-afterburner:1.9.4'
testImplementation 'junit:junit:4.12'
}
sourceSets {
main.java.srcDirs = ["src\\main\\java"]
test.java.srcDirs = ["src\\test\\java"]
}
apply from: 'gradle/publishing.gradle'