diff --git a/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishExtension.groovy b/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishExtension.groovy index fe878bd4..19fc9574 100644 --- a/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishExtension.groovy +++ b/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishExtension.groovy @@ -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 } diff --git a/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy b/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy index 0b2f41a1..91211f45 100644 --- a/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy +++ b/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy @@ -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')