33 lines
705 B
Groovy
33 lines
705 B
Groovy
|
apply plugin: 'java'
|
||
|
|
||
|
group = pluginGroup
|
||
|
version = pluginVersion
|
||
|
|
||
|
sourceCompatibility = 1.8
|
||
|
targetCompatibility = 1.8
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
maven {
|
||
|
name = 'spigotmc-repo'
|
||
|
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
|
||
|
}
|
||
|
maven {
|
||
|
name = 'sonatype'
|
||
|
url = 'https://oss.sonatype.org/content/groups/public/'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||
|
compile 'org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT'
|
||
|
}
|
||
|
|
||
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||
|
|
||
|
processResources {
|
||
|
from(sourceSets.main.resources.srcDirs) {
|
||
|
filter ReplaceTokens, tokens: [version: version]
|
||
|
}
|
||
|
}
|