-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (51 loc) · 1.79 KB
/
build.gradle
File metadata and controls
65 lines (51 loc) · 1.79 KB
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
group 'org.comroid'
version = rootProject.version
apply plugin: 'java-library'
apply from: 'vars.gradle'
tasks.withType(Javadoc) {
source = sourceSets.main.java
options.encoding = 'UTF-8'
}
sourceSets {
main.java.srcDirs = [file("$parent.projectDir/src/api/java")]
main.resources.srcDirs = [file("$parent.projectDir/src/api/resources")]
test.java.srcDirs = [file("$parent.projectDir/src/api-test/java")]
test.resources.srcDirs = [file("$parent.projectDir/src/api-test/resources")]
}
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"
}
}
compileJava.options.encoding = 'UTF-8'
dependencies {
compileOnly 'org.jetbrains:annotations:19.0.0'
if (isAutoDeploy) {
implementation 'org.comroid:restless:0.+'
} else {
api project(':guardian:restless')
testImplementation project(':guardian:uniform').sourceSets.java8compat.output.classesDirs
testImplementation project(':guardian:restless').sourceSets.java8compat.output.classesDirs
}
// logging dependencies
implementation 'org.apache.logging.log4j:log4j-api:2.14.1'
//runtimeOnly 'org.apache.logging.log4j:log4j-core:2.11.0'
testImplementation 'junit:junit:4.13'
testImplementation 'org.easymock:easymock:4.3'
testRuntimeOnly 'org.apache.logging.log4j:log4j-core:2.14.1'
testRuntimeOnly 'com.squareup.okhttp3:okhttp:4.7.2'
testRuntimeOnly 'com.alibaba:fastjson:1.2.76'
}
apply from: 'publishing.gradle'