52 lines
No EOL
1.3 KiB
Groovy
52 lines
No EOL
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'checkstyle'
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
|
}
|
|
|
|
String packagePath = 'net.frankheijden.serverutils'
|
|
group = packagePath
|
|
version '1.5.0'
|
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://repo.aikar.co/content/groups/aikar/' }
|
|
maven { url 'https://papermc.io/repo/repository/maven-public/' }
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'co.aikar:acf-paper:0.5.0-SNAPSHOT'
|
|
implementation 'org.bstats:bstats-bukkit:1.7'
|
|
compileOnly 'com.destroystokyo.paper:paper-api:1.16.1-R0.1-SNAPSHOT'
|
|
}
|
|
|
|
processResources {
|
|
from('src/main/resources') {
|
|
include 'plugin.yml'
|
|
expand(version: project.version)
|
|
}
|
|
}
|
|
|
|
compileJava {
|
|
options.compilerArgs += ["-parameters"]
|
|
options.fork = true
|
|
options.forkOptions.executable = 'javac'
|
|
}
|
|
|
|
shadowJar {
|
|
relocate 'co.aikar.commands', packagePath + '.acf'
|
|
relocate 'co.aikar.locales', packagePath + '.locales'
|
|
relocate 'org.bstats.bukkit', packagePath + '.dependencies.bstats'
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion "8.25"
|
|
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
|
|
|
|
ignoreFailures = false
|
|
maxErrors = 0
|
|
maxWarnings = 0
|
|
}
|
|
|
|
build.dependsOn shadowJar |