File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ buildscript {
4
4
}
5
5
dependencies {
6
6
classpath ' com.cinnober.gradle:semver-git:2.5.0'
7
+
8
+ if (project. findProperty(' yubicoPublish' ) == ' true' ) {
9
+ classpath ' io.github.gradle-nexus:publish-plugin:1.3.0'
10
+ }
7
11
}
8
12
}
9
13
plugins {
10
14
id ' java-platform'
11
- id ' io.github.gradle-nexus.publish-plugin' version ' 1.3.0'
12
15
13
16
// The root project has no sources, but the dependency platform also needs to be published as an artifact
14
17
// See https://docs.gradle.org/current/userguide/java_platform_plugin.html
@@ -21,10 +24,7 @@ import com.yubico.gradle.GitUtils
21
24
rootProject. description = " Metadata root for the com.yubico:webauthn-server-* module family"
22
25
23
26
project. ext. isCiBuild = System . env. CI == ' true'
24
-
25
- project. ext. publishEnabled = ! isCiBuild &&
26
- project. hasProperty(' yubicoPublish' ) && project. yubicoPublish &&
27
- project. hasProperty(' ossrhUsername' ) && project. hasProperty(' ossrhPassword' )
27
+ project. ext. publishEnabled = ! isCiBuild && project. findProperty(' yubicoPublish' ) == ' true'
28
28
29
29
wrapper {
30
30
gradleVersion = ' 8.1.1'
@@ -65,6 +65,8 @@ allprojects {
65
65
}
66
66
67
67
if (publishEnabled) {
68
+ apply plugin : ' io.github.gradle-nexus.publish-plugin'
69
+
68
70
nexusPublishing {
69
71
repositories {
70
72
sonatype {
You can’t perform that action at this time.
0 commit comments