Skip to content

Commit

Permalink
run loaders from a task
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Sep 15, 2024
1 parent 50a39f6 commit 979135e
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 531 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ dependencies {
implementation("com.electronwill.night-config:toml:3.7.3")
implementation("org.apache.logging.log4j:log4j-api:2.22.1")
implementation("org.apache.logging.log4j:log4j-core:2.22.1")
implementation("org.slf4j:slf4j-api:2.0.16")
implementation("com.google.code.gson:gson:2.11.0")

compileOnlyShade("net.fabricmc:fabric-loader:0.15.10")
shade("net.fabricmc:access-widener:2.1.0")
Expand Down Expand Up @@ -69,6 +71,15 @@ gradlePlugin {
}
}

tasks.processResources {
val meta = "${project.group}:${project.name}:${project.version}"
inputs.property("meta", meta)

filesMatching("__meta.txt") {
expand("meta" to meta)
}
}

tasks.shadowJar {
configurations = listOf(project.configurations["shade"])
archiveClassifier.set("")
Expand Down
Loading

0 comments on commit 979135e

Please sign in to comment.