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 { publishing {
repositories { repositories {
maven { 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') url = project.getProperty('publishing.url')
credentials { credentials {
username = project.getProperty('publishing.username') username = project.getProperty('publishing.username')
password = project.getProperty('publishing.password') password = project.getProperty('publishing.password')
} }
} else {
url = layout.buildDirectory.dir('repository')
} }
} }
} }
@ -120,6 +123,10 @@ signing {
apply from: 'check-copyright.gradle' apply from: 'check-copyright.gradle'
assemble {
dependsOn publishAllPublicationsToLocalRepository
}
wrapper { wrapper {
distributionType = Wrapper.DistributionType.ALL distributionType = Wrapper.DistributionType.ALL
} }