-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (67 loc) · 2.43 KB
/
build.gradle
File metadata and controls
82 lines (67 loc) · 2.43 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import static java.lang.System.getenv
import static java.lang.System.getenv
ext {
isAutoDeploy = rootProject.name != 'repo' || getenv().containsKey("TEAMCITY") || getenv().containsKey("JITPACK")
}
allprojects {
apply plugin: 'java'
sourceCompatibility = 8
targetCompatibility = 8
group 'org.comroid'
version = '0.13.1'
compileJava{
dependsOn ':dependencies'
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options {
encoding = 'UTF-8'
/*
links = [
"https://docs.oracle.com/javase/8/docs/api/",
"https://docs.oracle.com/javaee/7/api/",
"https://mewna.github.io/catnip/docs/",
//"https://www.javadoc.io/doc/com.discord4j/discord4j-core/3.0.9", // broken
"https://docs.javacord.org/api/v/3.0.4/"//,
//"https://ci.dv8tion.net/job/JDA/javadoc/" // broken
]
*/
}
}
System.out.println("deps " +name != 'status' )
if (name != 'status') {
apply from: 'vars.gradle'
}
repositories {
maven { url 'https://maven.comroid.org' }
mavenLocal()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
if (!isAutoDeploy) {
evaluationDependsOn ':guardian:uniform'
evaluationDependsOn ':guardian:restless'
}
dependencies {
if (getenv().containsKey("TEAMCITY") || getenv().containsKey("JITPACK")) {
testImplementation project(':status-server')
testImplementation project(':status-api')
testImplementation 'org.comroid:restless:0.+'
testImplementation 'org.comroid:CrystalShard:0.+'
} else {
testImplementation project(':status:status-server')
testImplementation project(':status:status-api')
testImplementation project(':guardian:uniform').sourceSets.java8compat.output.classesDirs
testImplementation project(':guardian:restless').sourceSets.java8compat.output.classesDirs
testImplementation project(':CrystalShard')
}
testImplementation 'junit:junit:4.13'
testImplementation 'org.easymock:easymock:4.3'
testRuntimeOnly 'com.squareup.okhttp3:okhttp:4.7.2'
testRuntimeOnly 'com.alibaba:fastjson:1.2.76'
}
tasks.findByName('wrapper')?.configure {
gradleVersion = '6.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}