-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
64 lines (55 loc) · 1.48 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
plugins {
id 'com.gradleup.shadow' version '8.3.1' apply false
id 'net.kyori.blossom' version '1.3.1'
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
mavenCentral()
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs.add('-XDenableSunApiLintControl')
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
}
blossom {
replaceTokenIn('src/main/java/com/saicone/ezlib/Ezlib.java')
replaceToken '${version}', System.getenv("VERSION") ?: project.version
}
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}
def javadocProjects= [
':',
':annotations',
':loader'
]
tasks.register('allJavadoc', Javadoc) {
source javadocProjects.collect { project(it).sourceSets.main.allJava }
classpath = files(javadocProjects.collect { project(it).sourceSets.main.compileClasspath })
options {
links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
}
destinationDir = file(project.layout.buildDirectory.dir('docs/all-javadoc'))
}