Skip to content

Commit

Permalink
refactor: after evaluate from components.release
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-elimu committed Feb 24, 2025
1 parent d79e2bc commit fd3cc44
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,23 @@ dependencies {

// See https://docs.gradle.org/current/dsl/org.gradle.api.publish.maven.MavenPublication.html
// Usage: ./gradlew clean build publish -PmavenUsername=***** -PmavenPassword=*****
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId 'ai.elimu.analytics'
artifactId 'utils'
version '3.1.26'
artifact("${buildDir}/outputs/aar/utils-${version}-release.aar")
publishing {
publications {
release(MavenPublication) {
groupId 'ai.elimu.analytics'
artifactId 'utils'
version '3.1.26'
artifact("${buildDir}/outputs/aar/utils-${version}-release.aar")

afterEvaluate {
from components.release
}
}
repositories {
maven {
credentials(PasswordCredentials)
url "https://maven.pkg.github.com/elimu-ai/analytics"
}
}
repositories {
maven {
credentials(PasswordCredentials)
url "https://maven.pkg.github.com/elimu-ai/analytics"
}
}
}

0 comments on commit fd3cc44

Please sign in to comment.