@@ -22,8 +22,8 @@ plugins {
2222 id ' org.kordamp.gradle.coveralls'
2323}
2424
25- if (! project. hasProperty(' mavenCentralUsername' )) ext. mavenCentralUsername = System . getenv(' SONATYPE_USERNAME ' ) ?: ' **UNDEFINED**'
26- if (! project. hasProperty(' mavenCentralPassword' )) ext. mavenCentralPassword = System . getenv(' SONATYPE_PASSWORD ' ) ?: ' **UNDEFINED**'
25+ if (! project. hasProperty(' mavenCentralUsername' )) ext. mavenCentralUsername = System . getenv(' MAVEN_CENTRAL_USERNAME ' ) ?: ' **UNDEFINED**'
26+ if (! project. hasProperty(' mavenCentralPassword' )) ext. mavenCentralPassword = System . getenv(' MAVEN_CENTRAL_PASSWORD ' ) ?: ' **UNDEFINED**'
2727if (! project. hasProperty(' signingInMemoryKeyId' )) ext. signingInMemoryKeyId = System . getenv(' SIGNING_KEY_ID' ) ?: ' **UNDEFINED**'
2828if (! project. hasProperty(' signingInMemoryKeyPassword' )) ext. signingInMemoryKeyPassword = System . getenv(' SIGNING_PASSWORD' ) ?: ' **UNDEFINED**'
2929if (! project. hasProperty(' signingInMemoryKey' )) ext. signingInMemoryKey = System . getenv(' SIGNING_SECRET_KEY_PATH' ) ? rootProject. file(System . getenv(' SIGNING_SECRET_KEY_PATH' )). text : ' **UNDEFINED**'
@@ -79,12 +79,7 @@ config {
7979
8080 artifacts {
8181 source {
82- enabled = false
83- }
84- }
85-
86- docs {
87- javadoc {
82+ // handled by maven central publish plugin
8883 enabled = false
8984 }
9085 }
@@ -98,6 +93,25 @@ config {
9893 toolVersion = ' 1.5'
9994 }
10095 }
96+
97+ docs {
98+ javadoc {
99+ // handled by maven central publish plugin
100+ enabled = false
101+ autoLinks {
102+ enabled = false
103+ }
104+ aggregate {
105+ enabled = false
106+ }
107+ }
108+ groovydoc {
109+ enabled = false
110+ aggregate {
111+ enabled = false
112+ }
113+ }
114+ }
101115}
102116
103117allprojects {
@@ -120,6 +134,7 @@ subprojects { Project subproject ->
120134 if (subproject. name == ' guide' ) return
121135
122136 apply plugin : ' groovy'
137+ apply plugin : ' java-library'
123138 apply plugin : ' com.vanniktech.maven.publish'
124139
125140 targetCompatibility = JavaVersion . VERSION_1_8
@@ -145,7 +160,7 @@ subprojects { Project subproject ->
145160 name = " Agorapulse Testing Libraries"
146161 description = ' Set of useful testing libraries'
147162 inceptionYear = " 2018"
148- url = " https://github.com/agorapulse/testing-libraries "
163+ url = " https://github.com/${ slug } "
149164 licenses {
150165 license {
151166 name = " The Apache License, Version 2.0"
@@ -161,9 +176,9 @@ subprojects { Project subproject ->
161176 }
162177 }
163178 scm {
164- url = " https://github.com/agorapulse/testing-libraries .git"
165- connection = " scm:git:git://github.com/agorapulse/testing-libraries .git"
166- developerConnection = " scm:git:ssh://git@github.com/agorapulse/testing-libraries .git"
179+ url = " https://github.com/${ slug } .git"
180+ connection = " scm:git:git://github.com/${ slug } .git"
181+ developerConnection = " scm:git:ssh://git@github.com/${ slug } .git"
167182 }
168183 }
169184 }
0 commit comments