Fix gradle script not working without maven username/password
This commit is contained in:
parent
af172dafe8
commit
ad93ff58fb
@ -242,7 +242,11 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
val mavenUser: String? by project
|
||||
val mavenPassword: String? by project
|
||||
|
||||
if (mavenUser != null && mavenPassword != null) {
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
// from(components["java"])
|
||||
@ -268,13 +272,12 @@ publishing {
|
||||
url = uri("sftp://maven@dbotthepony.ru:22/maven")
|
||||
|
||||
credentials {
|
||||
val mavenUser: String by project
|
||||
val mavenPassword: String by project
|
||||
username = mavenUser
|
||||
password = mavenPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
|
||||
|
Loading…
Reference in New Issue
Block a user