blob: af6f8c57fcc4894ec3cb3be550f4b5c5d4aab000 [file] [log] [blame] [raw]
plugins {
id 'java'
id 'de.undercouch.download' version '3.1.1'
}
group 'protocolsupport'
version '4.25.dev'
sourceCompatibility = 1.7
compileJava.dependsOn("updateSpigot")
sourceSets {
main {
java {
srcDirs = ["src"]
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile files('buildprocessor/BuildProcessor.jar')
compile files('build/spigot.jar')
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
from "LICENSE"
from "src/plugin.yml"
destinationDir = file("$rootDir/target/")
version = null
}
import de.undercouch.gradle.tasks.download.Download
task updateSpigot(type: Download) {
src 'http://download.true-games.org/minecraft/libs/ProtocolSupport/spigot.jar'
dest buildDir
onlyIfNewer true
overwrite true
}