Always publish to local repository

This commit is contained in:
Lanchon 2019-11-19 00:48:44 -03:00
parent 8032cfae37
commit 895b3047f4

View File

@ -99,14 +99,17 @@ publishing {
publishing {
repositories {
maven {
if (project.hasProperty('publishing.url')) {
name = 'local'
url = layout.buildDirectory.dir('repository')
}
if (project.hasProperty('publishing.url')) {
maven {
name = 'remote'
url = project.getProperty('publishing.url')
credentials {
username = project.getProperty('publishing.username')
password = project.getProperty('publishing.password')
}
} else {
url = layout.buildDirectory.dir('repository')
}
}
}
@ -120,6 +123,10 @@ signing {
apply from: 'check-copyright.gradle'
assemble {
dependsOn publishAllPublicationsToLocalRepository
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}