|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
|
|
|
|
id 'org.cadixdev.licenser' version '0.6.1' apply false
|
|
|
|
@ -52,19 +54,16 @@ publishing {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
|
apply plugin: 'org.cadixdev.licenser'
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
|
compileJava.options.release.set 17
|
|
|
|
|
javadoc.options.encoding = 'UTF-8'
|
|
|
|
|
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
|
|
|
|
|
|
compileJava.options.release.set 16
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenLocal()
|
|
|
|
|
mavenCentral()
|
|
|
|
@ -95,9 +94,11 @@ allprojects {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
|
filesMatching(['**/*.json', '**/*.yml']) {
|
|
|
|
|
filter ReplaceTokens as Class, beginToken: '${', endToken: '}',
|
|
|
|
|
tokens: rootProject.ext.properties
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
@ -108,11 +109,6 @@ subprojects {
|
|
|
|
|
from '../LICENSE'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (['paper'].contains(project.name)) {
|
|
|
|
|
compileJava.options.release.set 17
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (['bukkit', 'paper', 'plugin'].contains(project.name)) {
|
|
|
|
|
shadowJar {
|
|
|
|
|
destinationDirectory.set(file("$rootDir/target"))
|
|
|
|
|
archiveClassifier.set('')
|
|
|
|
@ -148,7 +144,6 @@ subprojects {
|
|
|
|
|
|
|
|
|
|
jar.dependsOn(shadowJar)
|
|
|
|
|
clean.delete "$rootDir/target"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
logger.lifecycle("Building HuskSync ${version} by William278")
|
|
|
|
|