XuqmGroup-AndroidSDK/gradle/publish.gradle
XuqmGroup b5d00c5f78 build: switch apply(from) to Groovy publish.gradle for AGP compat
KTS scripts loaded via apply(from) are compiled without AGP on the
classpath, so LibraryExtension and ext are unresolvable. Groovy
applied scripts are evaluated dynamically and don't have this issue.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 15:23:51 +08:00

24 行
608 B
Groovy

apply plugin: 'maven-publish'
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId rootProject.group
artifactId project.name
version rootProject.version
}
}
repositories {
maven {
url rootProject.ext['nexusUrl']
credentials {
username rootProject.ext['nexusUser']
password rootProject.ext['nexusPassword']
}
}
}
}
}