Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-04 18:40:06 +01:00
Migrate Sponge, Libs to Kotlin DSL
Dieser Commit ist enthalten in:
Ursprung
3bdc1c1cf2
Commit
5a14693aa9
@ -78,8 +78,7 @@ tasks.named<Copy>("processResources") {
|
||||
|
||||
tasks.named<Jar>("jar") {
|
||||
manifest {
|
||||
attributes("Class-Path" to "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
||||
"WorldEdit-Version" to project.version)
|
||||
attributes("WorldEdit-Version" to project.version)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
tasks.register("build") {
|
||||
dependsOn(subprojects.collect { it.tasks.named("build") })
|
||||
}
|
3
worldedit-libs/build.gradle.kts
Normale Datei
3
worldedit-libs/build.gradle.kts
Normale Datei
@ -0,0 +1,3 @@
|
||||
tasks.register("build") {
|
||||
dependsOn(subprojects.map { it.tasks.named("build") })
|
||||
}
|
@ -1,52 +0,0 @@
|
||||
plugins {
|
||||
id("org.spongepowered.plugin")
|
||||
}
|
||||
|
||||
PlatformConfigKt.applyPlatformAndCoreConfiguration(project)
|
||||
PlatformConfigKt.applyShadowConfiguration(project)
|
||||
|
||||
repositories {
|
||||
maven { url "https://repo.codemc.org/repository/maven-public" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':worldedit-core')
|
||||
compile project(':worldedit-libs:sponge')
|
||||
compile 'org.spongepowered:spongeapi:7.1.0'
|
||||
compile 'org.bstats:bstats-sponge:1.5'
|
||||
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.0-rc1'
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
sponge {
|
||||
plugin {
|
||||
id = 'worldedit'
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes("Class-Path": "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
||||
"WorldEdit-Version": version)
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
dependencies {
|
||||
relocate ("org.bstats", "com.sk89q.worldedit.sponge.bstats") {
|
||||
include(dependency('org.bstats:bstats-sponge:1.5'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.hasProperty("signing")) {
|
||||
apply plugin: 'signing'
|
||||
|
||||
signing {
|
||||
sign shadowJar
|
||||
}
|
||||
|
||||
build.dependsOn('signShadowJar')
|
||||
}
|
53
worldedit-sponge/build.gradle.kts
Normale Datei
53
worldedit-sponge/build.gradle.kts
Normale Datei
@ -0,0 +1,53 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
plugins {
|
||||
id("org.spongepowered.plugin")
|
||||
}
|
||||
|
||||
applyPlatformAndCoreConfiguration()
|
||||
applyShadowConfiguration()
|
||||
|
||||
repositories {
|
||||
maven { url = uri("https://repo.codemc.org/repository/maven-public") }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":worldedit-core"))
|
||||
compile(project(":worldedit-libs:sponge"))
|
||||
compile("org.spongepowered:spongeapi:7.1.0")
|
||||
compile("org.bstats:bstats-sponge:1.5")
|
||||
testCompile("org.mockito:mockito-core:1.9.0-rc1")
|
||||
}
|
||||
|
||||
sponge {
|
||||
plugin {
|
||||
id = "worldedit"
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named<Jar>("jar") {
|
||||
manifest {
|
||||
attributes("Class-Path" to "truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar",
|
||||
"WorldEdit-Version" to project.version)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named<ShadowJar>("shadowJar") {
|
||||
dependencies {
|
||||
relocate ("org.bstats", "com.sk89q.worldedit.sponge.bstats") {
|
||||
include(dependency("org.bstats:bstats-sponge:1.5"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (project.hasProperty("signing")) {
|
||||
apply(plugin = "signing")
|
||||
|
||||
configure<SigningExtension> {
|
||||
sign("shadowJar")
|
||||
}
|
||||
|
||||
tasks.named("build").configure {
|
||||
dependsOn("signShadowJar")
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren