Skip to content

Commit 4a3eea1

Browse files
committed
Update build.gradle to sign archives only on release
1 parent f448907 commit 4a3eea1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,15 @@ uploadArchives {
7373
}
7474
}
7575
}
76+
77+
test {
78+
testLogging {
79+
events "passed", "skipped", "failed"
80+
exceptionFormat = 'full'
81+
}
82+
}
83+
84+
signing {
85+
required { gradle.taskGraph.hasTask("uploadArchives") }
86+
sign configuration.archives
87+
}

0 commit comments

Comments
 (0)