Skip to content

Commit

Permalink
another attempted fix of auto-nexus publish
Browse files Browse the repository at this point in the history
  • Loading branch information
asafc committed Jan 27, 2022
1 parent 6c0f559 commit 71f0f75
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}

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

Expand Down Expand Up @@ -78,6 +80,9 @@ publishing {

publications {
maven(MavenPublication) {
groupId = 'io.permit'
artifactId = 'permit-sdk-java'

from components.java

pom {
Expand Down

0 comments on commit 71f0f75

Please sign in to comment.