As in the Grails application publishing example, the NEXUS_USERNAME and NEXUS_PASSWORD keywords are parameters that you store in gradle.properties and can overwrite with command line parameters, such as
** Edit **
Per Amad's comments, the grailsPublish closure may be required. I modified the attributes in the closure supplied by the create-plugin script as follows:
can you share your full build.gradle, because in my build.gradle, i have
ReplyDeleteapply plugin: "org.grails.grails-plugin-publish"
and when i try to publish-plugin i get error saying i am missing grailsPublish closure.
From the error message, it sounds like you deleted the default grailsPublish closure block. If that is the case, please try the grailsPublish block above and see if that resolves your issue. From looking at the source code, it appears that block is required even if you are not using it (https://github.com/grails/grails-core/blob/master/grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsCentralPublishGradlePlugin.groovy).
DeleteHi David,
ReplyDeleteI did add the closure and the error goes away - however when i try to publish the generated POM has no dependencies included.
Are all the dependencies you want included in the plugin specified with 'compile' or 'runtime'? Unfortunately, I don't have access to my build.gradle at the moment to post it.
Delete