fix: 修复import配置问题
This commit is contained in:
@@ -5,7 +5,8 @@ plugins {
|
||||
}
|
||||
|
||||
group = "cn.hamster3.mc.plugin"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
description = "为Minecraft服务器导入 OpenJDK Nashorn 引擎来执行 JavaScript 脚本"
|
||||
|
||||
val shade = configurations.create("shade")
|
||||
|
||||
@@ -25,11 +26,10 @@ dependencies {
|
||||
compileOnly("org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT")
|
||||
|
||||
// https://mvnrepository.com/artifact/org.openjdk.nashorn/nashorn-core
|
||||
implementation("org.openjdk.nashorn:nashorn-core:15.4")
|
||||
shade("org.openjdk.nashorn:nashorn-core:15.4")
|
||||
implementation("org.openjdk.nashorn:nashorn-core:15.0")
|
||||
shade("org.openjdk.nashorn:nashorn-core:15.0")
|
||||
}
|
||||
|
||||
|
||||
tasks {
|
||||
withType<JavaCompile>().configureEach {
|
||||
options.encoding = "UTF-8"
|
||||
@@ -47,7 +47,6 @@ tasks {
|
||||
archiveBaseName = "HamsterScript"
|
||||
destinationDirectory = rootProject.layout.buildDirectory
|
||||
|
||||
// from shade
|
||||
from(shade.map { if (it.isDirectory) it else zipTree(it) })
|
||||
}
|
||||
processResources {
|
||||
@@ -56,4 +55,4 @@ tasks {
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user