52 lines
1.1 KiB
Groovy
52 lines
1.1 KiB
Groovy
|
plugins {
|
||
|
id "com.github.johnrengelman.shadow" version "2.0.4"
|
||
|
id "java"
|
||
|
id "maven"
|
||
|
id "net.ltgt.apt" version "0.10"
|
||
|
id "io.franzbecker.gradle-lombok" version "1.14"
|
||
|
}
|
||
|
|
||
|
group = pluginGroup
|
||
|
version = pluginVersion
|
||
|
|
||
|
sourceCompatibility = 1.8
|
||
|
targetCompatibility = 1.8
|
||
|
|
||
|
lombok {
|
||
|
version = '1.18.2'
|
||
|
sha256 = ""
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
mavenLocal()
|
||
|
maven {
|
||
|
name = 'spigotmc-repo'
|
||
|
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
|
||
|
}
|
||
|
|
||
|
maven {
|
||
|
name = 'sonatype'
|
||
|
url = 'https://oss.sonatype.org/content/groups/public/'
|
||
|
}
|
||
|
|
||
|
maven {
|
||
|
name = 'nexus-hc'
|
||
|
url = 'http://nexus.hc.to/content/repositories/pub_releases/'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
compile 'org.spigotmc:spigot:1.8.8-R0.1-SNAPSHOT'
|
||
|
compile 'org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT'
|
||
|
apt 'org.projectlombok:lombok:1.14.8'
|
||
|
}
|
||
|
|
||
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||
|
|
||
|
processResources {
|
||
|
from(sourceSets.main.resources.srcDirs) {
|
||
|
filter ReplaceTokens, tokens: [version: version]
|
||
|
}
|
||
|
}
|