Skip to content

Commit 7570ac4

Browse files
committed
Disable maven publishing gradle plugins by default.
1 parent 7c0355f commit 7570ac4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ dependencies {
7272
// Maven packaging and signing
7373
group = 'io.github.nsacyber.paccor'
7474
version = '1.1.4r11'
75+
project.gradle.taskGraph.whenReady { graph ->
76+
project.tasks.findAll().forEach { task ->
77+
if (task.name.contains("signArchives") || task.name.contains("uploadArchives")) {
78+
// If this is set to true, the signing and maven
79+
// properties in gradle.properties must be set.
80+
task.enabled = false
81+
}
82+
}
83+
}
7584
task javadocJar(type: Jar) {
7685
classifier = 'javadoc'
7786
from javadoc

0 commit comments

Comments
 (0)