Skip to content

Commit

Permalink
Update build.gradle (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl authored Aug 16, 2023
1 parent b032d6e commit ea80041
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,18 @@ publishing {
maven(MavenPublication) {
artifactId project.name
from components.java

artifact sourcesJar
artifact javadocJar
artifact source: "${buildDir}/classes/groovy/main/META-INF/grails-plugin.xml",
classifier: "plugin",
extension: 'xml'

versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom.withXml {
def xml = asNode()

Expand Down

0 comments on commit ea80041

Please sign in to comment.