Skip to content

Commit 1143bca

Browse files
Heiko KieselWeltraumschaf
Heiko Kiesel
authored andcommitted
Enforce tests before publishing
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 722fb7b commit 1143bca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ jacocoTestReport {
116116
dependsOn test // tests are required to run before generating the report
117117
}
118118

119+
// Enforce running tests before publishing
120+
tasks.withType(PublishToMavenRepository).configureEach {task ->
121+
task.dependsOn test
122+
}
123+
119124
// https://docs.gradle.org/current/userguide/signing_plugin.html
120125
signing {
121126
if (!version.endsWith('SNAPSHOT')) { // only sign non-snapshot versions

0 commit comments

Comments
 (0)