forked from NyaaCat/RPGItems-reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (43 loc) · 1.21 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
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
jcenter()
mavenCentral()
maven {
name 'Spigot'
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
name 'Sonatype'
url 'https://oss.sonatype.org/content/groups/public'
}
maven {
name 'sk89q'
url "http://maven.sk89q.com/repo/"
}
}
dependencies {
compile 'org.spigotmc:spigot-api:1.11-R0.1-SNAPSHOT'
compile 'com.sk89q.worldguard:worldguard-legacy:6.2'
compile 'com.sk89q.worldedit:worldedit-core:6.1'
}
compileJava {
options.compilerArgs += ["-Xlint:deprecation", "-Xlint:unchecked"]
}
processResources {
if (System.getenv("TRAVIS_BRANCH") != null) {
def branch = System.getenv("TRAVIS_BRANCH").toString()
def year = Calendar.getInstance().get(Calendar.YEAR).toString()
from(sourceSets.main.resources.srcDirs) {
include 'locale/en_GB.lang'
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [BUILD_BRANCH: branch, BUILD_COPYRIGHT_YEAR: year])
}
}
}
jar {
from "LICENSE"
}