-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (41 loc) · 1.14 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
plugins {
id 'java'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
maven {
name 'spigot-repo'
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name 'sonatype'
url 'https://oss.sonatype.org/content/groups/public'
}
maven {
name 'NyaaCore'
url 'https://raw.githubusercontent.com/NyaaCat/NyaaCore/maven-repo'
}
maven {
name 'nu-langchecker'
url 'https://raw.githubusercontent.com/Librazy/NyaaUtilsLangChecker/maven-repo'
}
}
dependencies {
compile 'org.spigotmc:spigot-api:1.12.1-R0.1-SNAPSHOT'
compile('cat.nyaa:nyaacore:4.0-SNAPSHOT') {
transitive = false
}
compile 'org.librazy:NyaaUtilsLangChecker:1.0-SNAPSHOT'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
String nyaaCoreLangDir = System.getenv("NYAACORE_LANG_DIR")
compileJava {
options.compilerArgs += ["-Xplugin:NyaaUtilsLangAnnotationProcessor", "-Xlint:deprecation"]
if (nyaaCoreLangDir != null) {
options.compilerArgs += ["-ALANG_DIR_ADDITIONAL_PATH=" + nyaaCoreLangDir]
}
}