build: remove unnecessary "plugin" module

feat/data-edit-commands
William278 10 months ago
parent f56d7f6113
commit f7e3104e6b

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

@ -1,4 +0,0 @@
dependencies {
implementation project(path: ':bukkit', configuration: 'shadow')
runtimeOnly project(path: ':paper')
}

@ -8,6 +8,5 @@ rootProject.name = 'HuskSync'
include( include(
'common', 'common',
'bukkit', 'bukkit',
'paper', 'paper'
'plugin'
) )

@ -20,7 +20,7 @@ class Parameters:
backend_ports = [25567, 25568] backend_ports = [25567, 25568]
backend_type = 'paper' backend_type = 'paper'
backend_ram = 2048 backend_ram = 2048
backend_plugins = ['../target/HuskSync-Plugin-*.jar'] backend_plugins = ['../target/HuskSync-Paper-*.jar']
backend_plugin_folders = ['./HuskSync'] backend_plugin_folders = ['./HuskSync']
operator_names = ['William278'] operator_names = ['William278']
operator_uuids = ['5dfb0558-e306-44f4-bb9a-f9218d4eb787'] operator_uuids = ['5dfb0558-e306-44f4-bb9a-f9218d4eb787']

Loading…
Cancel
Save