Move deployment repository config to a Gradle convention
This commit moves the configuration of a local Maven deployment repository in a dedicated Gradle convention and applies it to all sub-projects. This separates the publishing configuration for actual project modules (that are meant to be published on Maven Central) from the infrastructure sub-projects such as the documentation one.
This commit is contained in:
@@ -9,6 +9,10 @@ configurations {
|
||||
asciidoctorExtensions
|
||||
}
|
||||
|
||||
dependencies {
|
||||
asciidoctorExtensions 'io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.2'
|
||||
}
|
||||
|
||||
jar {
|
||||
enabled = false
|
||||
}
|
||||
@@ -17,9 +21,6 @@ javadoc {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
dependencies {
|
||||
asciidoctorExtensions 'io.spring.asciidoctor.backends:spring-asciidoctor-backends:0.0.2'
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
@@ -91,6 +92,8 @@ asciidoctor {
|
||||
'spring-boot-version': bootVersion
|
||||
}
|
||||
|
||||
asciidoctor.mustRunAfter "check"
|
||||
|
||||
/**
|
||||
* Zip all docs into a single archive
|
||||
*/
|
||||
@@ -106,8 +109,6 @@ task docsZip(type: Zip, dependsOn: ['api', 'asciidoctor']) {
|
||||
}
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/gradle/publishing.gradle"
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
|
||||
Reference in New Issue
Block a user