@@ -6,12 +6,11 @@ buildscript {
66 dependencies {
77 classpath " org.codehaus.groovy.modules.http-builder:http-builder:0.7.2"
88 classpath " io.github.gradle-nexus:publish-plugin:1.3.0"
9- classpath ' com.bmuschko:gradle-nexus-plugin:2.3.1'
109 classpath " io.github.groovylang.groovydoc:groovydoc-gradle-plugin:1.0.1"
1110 classpath " org.grails:grails-gradle-plugin:$grailsGradlePluginVersion "
1211 classpath " org.grails.plugins:views-gradle:2.3.2"
1312 classpath ' org.asciidoctor:asciidoctor-gradle-plugin:1.6.1'
14- classpath " gradle.plugin. com.energizedwork.webdriver-binaries :webdriver-binaries-gradle-plugin:$w ebdriverBinariesVersion "
13+ classpath " com.github.erdi :webdriver-binaries-gradle-plugin:3.0 "
1514 classpath " org.gradle:test-retry-gradle-plugin:1.5.2"
1615 }
1716}
@@ -88,7 +87,7 @@ subprojects { Project subproject ->
8887 if (subproject. name != " examples-grails-data-service" ) {
8988 apply plugin :" org.grails.grails-web"
9089 apply plugin :" org.grails.grails-gsp"
91- apply plugin :" com.energizedwork .webdriver-binaries"
90+ apply plugin :" com.github.erdi .webdriver-binaries"
9291 }
9392 }
9493
@@ -201,11 +200,6 @@ subprojects { Project subproject ->
201200 }
202201 else {
203202 apply plugin :" groovy"
204- apply plugin : ' com.bmuschko.nexus'
205-
206- modifyPom {
207- delegate. project pomInfo
208- }
209203 }
210204
211205 apply plugin : ' java-library'
@@ -216,6 +210,11 @@ subprojects { Project subproject ->
216210 sourceCompatibility = " 1.11"
217211 targetCompatibility = " 1.11"
218212
213+ java {
214+ withJavadocJar()
215+ withSourcesJar()
216+ }
217+
219218 dependencies {
220219 documentation " org.fusesource.jansi:jansi:$jansiVersion "
221220 documentation " org.codehaus.groovy:groovy-dateutil:$groovyVersion "
@@ -269,25 +268,46 @@ subprojects { Project subproject ->
269268
270269 publications {
271270 maven(MavenPublication ) {
271+
272+ pom {
273+ name = projectInfo. projectName
274+ description = projectInfo. projectDescription
275+ url = projectInfo. projectURL
276+
277+ licenses {
278+ license {
279+ name = ' The Apache Software License, Version 2.0'
280+ url = ' https://www.apache.org/licenses/LICENSE-2.0.txt'
281+ distribution = ' repo'
282+ }
283+ }
284+
285+ scm {
286+ url
= ' scm:[email protected] :grails/gorm-hibernate5.git' 287+ connection
= ' scm:[email protected] :grails/gorm-hibernate5.git' 288+ developerConnection
= ' scm:[email protected] :grails/gorm-hibernate5.git' 289+ }
290+
291+ developers {
292+ developer {
293+ id = ' puneetbehl'
294+ name = ' Puneet Behl'
295+ 296+ }
297+ }
298+ }
299+
272300 artifactId projectInfo. projectArtifactId
273301
274302 from components. java
275- afterEvaluate {
276- artifact source : sourcesJar, classifier : " sources"
277- artifact source : javadocJar, classifier : " javadoc"
278303
304+ afterEvaluate {
279305 if (isGrails3PluginProject) {
280306 artifact source :" ${ sourceSets.main.groovy.outputDir} /META-INF/grails-plugin.xml" ,
281307 classifier :" plugin" ,
282308 extension :' xml'
283309 }
284310 }
285- pom. withXml {
286- def xml = asNode()
287- def dependency = xml. dependencies. find { dep -> dep. artifactId == ' slf4j-simple' }
288- dependency?. optional = true
289- xml. children(). last() + pomInfo
290- }
291311
292312 }
293313 }
0 commit comments