Skip to content

Commit

Permalink
Finish migration
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 29, 2021
1 parent 0685cc5 commit db9acc4
Show file tree
Hide file tree
Showing 29 changed files with 39 additions and 1,044 deletions.
11 changes: 11 additions & 0 deletions buildSrc/src/main/kotlin/extensions.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.Project
import org.gradle.kotlin.dsl.named

fun Project.setupVersion(versionNumber: String) {
tasks.named<ShadowJar>("shadowJar").get().apply {
relocate("com.github.steveice10", "com.github.steveice10.$versionNumber") {
exclude("com.github.steveice10.mc.auth.data.GameProfile")
}
}
}
8 changes: 0 additions & 8 deletions buildSrc/src/main/kotlin/sw.shadow-conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id("sw.java-conventions")
id("com.github.johnrengelman.shadow")
Expand All @@ -17,15 +15,9 @@ tasks {

shadowJar {
minimize()
configureRelocations()
}

build {
dependsOn(shadowJar)
}
}

fun ShadowJar.configureRelocations() {
}

// publishShadowJar()
4 changes: 4 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ dependencies {
implementation("net.kyori:adventure-text-serializer-plain:4.9.3")
implementation("net.kyori:adventure-text-serializer-gson:4.9.3")
}

tasks.named<Jar>("jar").get().manifest {
attributes["Main-Class"] = "net.pistonmaster.serverwrecker.Main"
}
139 changes: 0 additions & 139 deletions core/pom.xml

This file was deleted.

87 changes: 0 additions & 87 deletions pom.xml

This file was deleted.

2 changes: 2 additions & 0 deletions version_1_10/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ dependencies {
implementation("com.github.AlexProgrammerDE:MCProtocolLib:1.10-SNAPSHOT")
compileOnly(projects.serverwreckerCommon)
}

setupVersion("v1_10")
66 changes: 0 additions & 66 deletions version_1_10/pom.xml

This file was deleted.

2 changes: 2 additions & 0 deletions version_1_11/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ dependencies {
implementation("com.github.AlexProgrammerDE:MCProtocolLib:1.11-SNAPSHOT")
compileOnly(projects.serverwreckerCommon)
}

setupVersion("v1_11")
Loading

0 comments on commit db9acc4

Please sign in to comment.