-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
34 lines (26 loc) · 926 Bytes
/
build.gradle
File metadata and controls
34 lines (26 loc) · 926 Bytes
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
plugins {
id 'java'
id 'de.undercouch.download' version '3.1.1'
}
version '1.1.1-SNAPSHOT'
sourceCompatibility = 1.8
compileJava.dependsOn("downloadProtocolSupport")
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
// Spigot Repo
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public/' }
maven { url 'https://oss.sonatype.org/content/groups/public' }
}
dependencies {
compile 'org.spigotmc:spigot-api:1.10.2-R0.1-SNAPSHOT'
compile 'commons-io:commons-io:2.5'
compile files('libs/ProtocolSupport.jar')
testCompile group: 'junit', name: 'junit', version: '4.11'
}
import de.undercouch.gradle.tasks.download.Download
task downloadProtocolSupport(type: Download) {
src 'http://build.true-games.org/job/ProtocolSupport/lastSuccessfulBuild/artifact/target/ProtocolSupport.jar'
dest new File('libs', 'ProtocolSupport.jar')
onlyIfNewer true
}