26 行
898 B
Plaintext
26 行
898 B
Plaintext
apply(plugin = "maven-publish")
|
|
|
|
afterEvaluate {
|
|
(extensions.findByType(com.android.build.gradle.LibraryExtension::class.java))?.let {
|
|
extensions.configure<PublishingExtension> {
|
|
publications {
|
|
register<MavenPublication>("release") {
|
|
from(components["release"])
|
|
groupId = rootProject.group.toString()
|
|
artifactId = project.name
|
|
version = rootProject.version.toString()
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url = uri(rootProject.ext["nexusUrl"] as String)
|
|
credentials {
|
|
username = rootProject.ext["nexusUser"] as String
|
|
password = rootProject.ext["nexusPassword"] as String
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|