Skip to content

Commit 71f0f75

Browse files
committed
another attempted fix of auto-nexus publish
1 parent 6c0f559 commit 71f0f75

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ plugins {
1919
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
2020
}
2121

22-
// package identifier
23-
groupId = 'io.permit'
24-
artifactId = 'permit-sdk-java'
22+
// It is important to set the group and the version to the root project
23+
// so the nexus-publish plugin can detect if it is a snapshot version
24+
// or not in order to select the correct repository where artifacts will
25+
// be published
26+
group = 'io.permit'
2527
// sets the java package version automatically (looks at the git repo, latest tags, commit hashes, etc)
2628
version gitVersion()
2729

@@ -78,6 +80,9 @@ publishing {
7880

7981
publications {
8082
maven(MavenPublication) {
83+
groupId = 'io.permit'
84+
artifactId = 'permit-sdk-java'
85+
8186
from components.java
8287

8388
pom {

0 commit comments

Comments
 (0)