Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 40d169e

Browse files
committed
Update build.gradle
1 parent c11dfe5 commit 40d169e

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

build.gradle

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
11
apply plugin: 'java-library'
2-
apply plugin: 'groovy'
32

43
group 'de.kaleidox'
5-
version '0.0.1'
4+
version '0.1.0'
65

76
sourceCompatibility = 1.7
87
targetCompatibility = 1.7
98

10-
repositories {
11-
jcenter()
9+
task wrapper(type: Wrapper) {
10+
gradleVersion = '4.10.2'
11+
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
1212
}
1313

14+
javadoc {
15+
if (JavaVersion.current().isJava9Compatible()) {
16+
options.addBooleanOption('html4', true)
17+
}
18+
source = sourceSets.main.allJava
19+
options.encoding = 'UTF-8'
20+
options.destinationDirectory(new File("./docs/"))
21+
}
22+
23+
repositories.jcenter()
24+
1425
dependencies {
1526
compileOnly 'com.intellij:annotations:12.0'
1627

1728
testImplementation "junit:junit:4.12"
1829
}
30+
31+
if (!isTravis()) {
32+
apply from: 'gradle/publishing.gradle'
33+
}
34+
35+
static boolean isTravis() {
36+
return System.getenv().containsKey("TRAVIS")
37+
}

0 commit comments

Comments
 (0)