Skip to content

Commit

Permalink
Support overriding the artifactId & groupId for the published artifact (
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty authored Dec 8, 2024
1 parent 948f23c commit 91db950
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ class GrailsPublishExtension {
*/
String issueTrackerUrl

/**
* Overrides the artifactId of the published artifact
*/
String artifactId

/**
* Overrides the groupId of the published artifact
*/
String groupId

License getLicense() {
return license
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ The credentials and connection url must be specified as a project property or an

publications {
maven(MavenPublication) {
artifactId project.name
artifactId gpe.artifactId ?: project.name
groupId gpe.groupId ?: project.group

doAddArtefact(project, delegate)
def sourcesJar = taskContainer.findByName('sourcesJar')
Expand Down

0 comments on commit 91db950

Please sign in to comment.