Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use jar in jar? #206

Merged
merged 2 commits into from
May 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import com.anatawa12.jarInJar.gradle.TargetPreset
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
Expand All @@ -6,6 +7,7 @@ plugins {
id("com.anatawa12.mod-patching")
id("com.matthewprenger.cursegradle") version "1.4.0"
id("com.github.johnrengelman.shadow") version "6.1.0"
id("com.anatawa12.jarInJar") version "1.0.0"
}

version = property("modVersion")!!
Expand Down Expand Up @@ -167,6 +169,18 @@ val copyShadowedJar by tasks.creating {

tasks.assemble.get().dependsOn(copyShadowedJar)

tasks.embedJarInJar {
dependsOn(copyShadowedJar)
target = TargetPreset.FMLInForge
basePackage = "com.anatawa12.fixRtm.jarInJar"
}

tasks.assemble.get().dependsOn(tasks.embedJarInJar.get())

repositories {
mavenLocal()
}

tasks.compileKotlin {
dependsOn(tasks.generateUnmodifieds.get())
}
Expand Down