Nashorn-less Tasks

This commit is contained in:
Kam committed 2026-02-04 01:09:48 -05:00
1 parent ab5dbc077b
commit ad4033ed62
2 files changed
+18 -1

No files matched your search

+15
View File
@@ -31,6 +31,21 @@ tasks.create('buildNoMixin', Exec) {
commandLine gradleWrapper, 'build', '-Pnomixin'
}
// No Nashorn Run Tasks
tasks.create('runClientNoNashorn', Exec) {
description 'Runs the client without Nashorn'
group 'CustomNPC+'
workingDir project.rootDir
commandLine gradleWrapper, 'runClient', '-PnoNashorn'
}
tasks.create('runServerNoNashorn', Exec) {
description 'Runs the server without Nashorn'
group 'CustomNPC+'
workingDir project.rootDir
commandLine gradleWrapper, 'runServer', '-PnoNashorn'
}
sourceSets.main.java {
def apiDir = file('src/api/java')
+3 -1
View File
@@ -36,7 +36,9 @@
def embedMixin = !project.hasProperty("nomixin");
dependencies {
runtimeOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.5.4-GTNH:dev")
runtimeOnlyNonPublishable("curse.maven:Nashorn-374413:2924946")
if (!project.hasProperty("noNashorn")) {
runtimeOnlyNonPublishable("curse.maven:Nashorn-374413:2924946")
}
// compileOnly(files("./tools/bukkit-api/spigot-api-ONLY.jar"))
// compileOnly(files("./tools/bukkit-api/Vault-1.4.1.jar"))