Fix runTestmodClient in LibJF again (maybe)

This commit is contained in:
Johannes Frohnmeyer 2022-06-25 09:11:31 +00:00
parent 2fec9ac288
commit 074627c5bf
2 changed files with 14 additions and 2 deletions

View File

@ -264,6 +264,19 @@ allprojects {
}
build.dependsOn remapMavenJar
task testmodJar(type: Jar) {
from sourceSets.testmod.output
destinationDirectory = new File(project.buildDir, "devlibs")
archiveClassifier = "testmod"
}
task remapTestmodJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: testmodJar) {
input = testmodJar.archiveFile
archiveClassifier = "testmod"
addNestedDependencies = false
}
build.dependsOn remapTestmodJar
publishing {
publications {
mavenJava(MavenPublication) {
@ -342,7 +355,6 @@ dependencies {
include it
}
testmodImplementation it.sourceSets.main.output
testmodImplementation it.sourceSets.testmod.output
}
}

View File

@ -17,7 +17,7 @@ build_test:
- gradle --build-cache deployDebug -Pmaven="$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/maven"
- cp build/libs/* ./
- cp build/devlibs/*-dev.jar ./
- rm *-maven.jar *-sources.jar
- rm *-maven.jar *-sources.jar *-testmod.jar
- mv *-dev.jar dev.zip
- mv *.jar latest.jar
- mv dev.zip latest-dev.jar