Make build depend on shadowJar

This commit is contained in:
Imbus 2024-05-11 14:06:58 +02:00
parent 04bef1b3e8
commit 99b9da9be1

View file

@ -52,3 +52,8 @@ tasks.withType<ShadowJar> {
attributes(mapOf("Main-Class" to "com.github.csolem.gradle.shadow.kotlin.example.App")) attributes(mapOf("Main-Class" to "com.github.csolem.gradle.shadow.kotlin.example.App"))
} }
} }
// Set build to depend on shadowJar
tasks.named("build") {
dependsOn("shadowJar")
}