Skip to content

Commit

Permalink
I hate gradle so much
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Mar 4, 2024
1 parent 61f5917 commit ff0b239
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
dependencies {
shadow api(project(path: ':common', configuration: 'default'))
shadow api(project(path: ':common', configuration: 'shadow'))
shadow implementation("io.netty:netty-buffer:${project.netty_version}")
shadow implementation("io.netty:netty-transport:${project.netty_version}")
shadow implementation("io.netty:netty-handler:${project.netty_version}")
}

shadowJar {
relocate 'io.netty', 'me.mrnavastar.protoweaver.libs.netty'
relocate "com.esotericsoftware", "me.mrnavastar.protoweaver.libs.esotericsoftware"
relocate "com.cedarsoftware", "me.mrnavastar.protoweaver.libs.cedarsoftware"

exclude "META-INF/maven/**"
exclude "META-INF/native-image/**"
Expand Down
14 changes: 12 additions & 2 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
dependencies {
implementation "com.esotericsoftware:kryo5:${project.kyro_version}"
shadow implementation("com.esotericsoftware:kryo5:${project.kyro_version}")
compileOnly "io.netty:netty-buffer:${project.netty_version}"
compileOnly "io.netty:netty-transport:${project.netty_version}"
compileOnly "io.netty:netty-codec:${project.netty_version}"
}
}

shadowJar {
relocate "com.esotericsoftware", "me.mrnavastar.protoweaver.libs.esotericsoftware"

exclude "META-INF/maven/**"
exclude "META-INF/native-image/**"
minimize()
}

jar.finalizedBy(shadowJar)
2 changes: 1 addition & 1 deletion loader-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ loom {
}

dependencies {
implementation project(path: ':common', configuration: 'default')
implementation project(path: ':common', configuration: 'shadow')

minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
Expand Down
1 change: 0 additions & 1 deletion loader-fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ shadowJar {
exclude 'io.netty.handler.ssl.*'
}
relocate "org.bouncycastle", "me.mrnavastar.protoweaver.libs.bouncycastle"
relocate "com.esotericsoftware", "me.mrnavastar.protoweaver.libs.esotericsoftware"

exclude "META-INF/maven/**"
exclude "META-INF/native-image/**"
Expand Down
1 change: 0 additions & 1 deletion loader-forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ shadowJar {
exclude 'io.netty.handler.ssl.*'
}
relocate "org.bouncycastle", "me.mrnavastar.protoweaver.libs.bouncycastle"
relocate "com.esotericsoftware", "me.mrnavastar.protoweaver.libs.esotericsoftware"

exclude "META-INF/maven/**"
exclude "META-INF/native-image/**"
Expand Down
1 change: 0 additions & 1 deletion loader-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ shadowJar {
exclude 'io.netty.handler.ssl.*'
}
relocate "org.bouncycastle", "me.mrnavastar.protoweaver.libs.bouncycastle"
relocate "com.esotericsoftware", "me.mrnavastar.protoweaver.libs.esotericsoftware"

exclude "META-INF/maven/**"
exclude "META-INF/native-image/**"
Expand Down

0 comments on commit ff0b239

Please sign in to comment.