-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (68 loc) · 2.05 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
78
79
80
81
82
83
84
85
86
87
apply plugin: 'java-library'
group 'org.comroid'
version '0.3.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.findByName('wrapper')?.configure {
gradleVersion = '6.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
apply from: "gradle/vars.gradle"
tasks.withType(Javadoc) {
source = sourceSets.main.java
options {
encoding = 'UTF-8'
/*
links = [
"https://docs.oracle.com/javase/8/docs/api/",
"https://docs.oracle.com/javaee/7/api/"
]
*/
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
try {
archiveClassifier.set 'sources'
} catch (MissingPropertyException ignored) {
classifier = "sources"
}
}
task javadocJar(type: Jar) {
dependsOn 'javadoc'
from javadoc.destinationDir
try {
archiveClassifier.set 'javadoc'
} catch (MissingPropertyException ignored) {
classifier = "javadoc"
}
}
processResources {
from(sourceSets.main.resources) {
expand project.properties
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}
compileJava.options.encoding = 'UTF-8'
repositories {
maven { url 'https://maven.comroid.org' }
mavenLocal()
jcenter()
}
dependencies {
compileOnly 'org.jetbrains:annotations:19.0.0'
// logging dependencies
implementation 'org.apache.logging.log4j:log4j-api:2.11.0'
testImplementation 'org.apache.logging.log4j:log4j-core:2.11.0'
if (isAutoDeploy) {
implementation 'org.comroid:restless:0.+'
} else {
api project(':guardian:restless') == null
? 'org.comroid:restless:0.16.0-SNAPSHOT'
: project(':guardian:restless')
testImplementation project(':guardian:uniform').sourceSets.java8compat.output.classesDirs
testImplementation project(':guardian:restless').sourceSets.java11compat.output.classesDirs
}
testImplementation 'com.alibaba:fastjson:1.2.70'
}
apply from: "gradle/publishing.gradle"