Skip to content

Commit

Permalink
Add testmod jar to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed May 1, 2024
1 parent da0901d commit e7f7917
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,31 @@ tasks.register("remapStandaloneJar", RemapJarTask) {

assemble.dependsOn(remapStandaloneJar)


var testmodJar = tasks.register('testmodJar', Jar) {
dependsOn testmodClasses

archiveBaseName.set('Babblings')
archiveClassifier.set('dev')
from(sourceSets.testmod.output) {
include 'fabric.mod.json'
expand 'version': project.version
}
from(sourceSets.testmod.output) {
exclude 'fabric.mod.json'
}
}

var remapTestmodJar = tasks.register('remapTestmodJar', RemapJarTask) {
dependsOn project.testmodJar

archiveBaseName.set('Babblings')
inputFile.set(testmodJar.get().archiveFile)
addNestedDependencies = false
}

build.dependsOn(remapTestmodJar)

chenille {
configurePublishing {
mainArtifact = remapStandaloneJar.archiveFile
Expand Down

0 comments on commit e7f7917

Please sign in to comment.