Skip to content

Commit 03f6a94

Browse files
Copilotxiang17
andcommitted
Fix missing Main-Class manifest attribute in smoke test JARs
Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com>
1 parent 92219f8 commit 03f6a94

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

buildSrc/src/main/kotlin/ai.smoke-test-jar.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,12 @@ tasks.named<ShadowJar>("shadowJar") {
2727
}
2828
}
2929

30+
// Make jar task depend on shadowJar and use the shadow JAR output
31+
// This prevents the regular jar task from overwriting the fat JAR
32+
tasks.named<Jar>("jar") {
33+
dependsOn(tasks.shadowJar)
34+
enabled = false
35+
}
36+
3037
aiSmokeTest.testAppArtifactDir.set(tasks.shadowJar.flatMap { it.destinationDirectory })
3138
aiSmokeTest.testAppArtifactFilename.set(tasks.shadowJar.flatMap { it.archiveFileName })

0 commit comments

Comments
 (0)