lib: tested on JFrog Artifactory for Maven publishing

This commit is contained in:
Han Yin 2025-07-10 14:27:22 -07:00
parent e58add740d
commit a5a54375a2
1 changed files with 35 additions and 0 deletions

View File

@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.jetbrains.kotlin.android)
`maven-publish`
}
android {
@ -25,6 +26,9 @@ android {
arguments += "-DCMAKE_VERBOSE_MAKEFILE=ON"
}
}
aarMetadata {
minCompileSdk = 35
}
}
buildTypes {
@ -55,6 +59,37 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
publishing {
singleVariant("release") {
withJavadocJar()
}
}
}
publishing {
publications {
register<MavenPublication>("release") {
groupId = "com.arm"
artifactId = "kleidi-llama"
version = "1.0.0"
afterEvaluate {
from(components["release"])
}
}
}
repositories {
maven {
name = "artifactory"
url = uri(project.findProperty("artifactoryUrl") as? String ?: "")
credentials {
username = project.findProperty("artifactoryUsername") as? String ?: ""
password = project.findProperty("artifactoryPassword") as? String ?: ""
}
}
}
}
dependencies {