Skip to content

Commit

Permalink
converting build.gradle to kts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pulverizer committed Oct 6, 2023
1 parent 883a29c commit f453f39
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 24 deletions.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
23 changes: 20 additions & 3 deletions .idea/workspace.xml

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

41 changes: 20 additions & 21 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,9 @@ versionBody.set(providers.gradleProperty("changelog").map { file(it).readText(Ch
}*/
}

configurations {
val provided by configurations.creating
val shade by configurations.creating

provided.extendsFrom(shade)
implementation.extendsFrom(provided)
}
configurations.create("shade")
configurations.create("provided").extendsFrom(configurations.getByName("shade"))
configurations.implementation.extendsFrom(configurations.getByName("provided"))

tasks.jar {
setClassifier("base")
Expand All @@ -111,24 +107,27 @@ versionBody.set(providers.gradleProperty("changelog").map { file(it).readText(Ch
}

subprojects {
/* shadowJar {
setClassifier("shadow")
configurations = [project.configurations.shade]
tasks.shadowJar {
setClassifier("shadow")
configurations = listOf(project.configurations.getByName("shade"))

dependencies {
include project (":")
}
dependencies {
include(project(":"))
}

manifest {
attributes["MixinConfigs"] = "mixins.movecraft.json"
}
manifest {
attributes["FMLAT"] = "META-INF/movecraft_at.cfg"
attributes["TweakClass"] = "org.spongepowered.asm.launch.MixinTweaker"
attributes["MixinConfigs"] = "mixins.movecraft.json"
attributes["FMLCorePluginContainsFMLMod"] = "true"
}

dependencies {
provided project(path = ":", configuration = "provided")
shade project(path = ":", transitive = false)
shade project(path = ":", configuration = "shade")
}*/
/*dependencies {
"provided" project (path = ":", configuration = "provided")
shade project (path = ":", transitive = false)
shade project (path = ":", configuration = "shade")
}*/
}
}

dependencies {
Expand Down

0 comments on commit f453f39

Please sign in to comment.