Skip to content

Commit

Permalink
set mod group on common api intermediary jars
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Sep 8, 2024
1 parent fa85161 commit 5d58ea5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FabricApi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ val parchmentMinecraftVersion: String by extra
val minecraftVersion: String by extra
val modId: String by extra
val modJavaVersion: String by extra
val modGroup: String by extra

val baseArchivesName = "${modId}-${minecraftVersion}-fabric-api"
base {
Expand All @@ -49,6 +50,7 @@ val commonApiIntermediaryJar = tasks.create<RemapJarTask>("commonApiIntermediary
inputFile.set(commonJar)
archiveBaseName.set(provider { commonApiBaseArchivesName.get() + "-intermediary" })
archiveClassifier.set("jar")
group = modGroup
}

val commonApiIntermediarySourcesJar = tasks.create<RemapJarTask>("commonApiIntermediarySourcesJar") {
Expand All @@ -57,6 +59,7 @@ val commonApiIntermediarySourcesJar = tasks.create<RemapJarTask>("commonApiInter
inputFile.set(commonSourcesJar)
archiveBaseName.set(provider { commonApiBaseArchivesName.get() + "-intermediary" })
archiveClassifier.set("sources")
group = modGroup
}

tasks.withType<JavaCompile> {
Expand Down

0 comments on commit 5d58ea5

Please sign in to comment.