Skip to content

Commit

Permalink
gradle change
Browse files Browse the repository at this point in the history
  • Loading branch information
melissaahn committed Mar 7, 2025
1 parent f37025a commit 56ac38b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions msal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,16 @@ afterEvaluate {
// Gradle 6.1.1 and Android Gradle Plugin 4.0.1 doesn't rename the file (see 'outputFileName' above)
// Adding this work around to have the file properly renamed.
// Please uncomment the section below for the Maven release step only. Currently troubleshooting why this extra renaming configuration is still needed for MSAL.
// tasks.named("assembleDistRelease").configure {
// def buildFile = file("$buildDir/outputs/aar/${archivesBaseName}-dist-release.aar")
// print "Build file $buildFile"
// doLast {
// println "Renaming build file $buildFile to '$buildDir${File.separator}outputs${File.separator}aar${File.separator}${archivesBaseName}-${version}.aar'"
// if (!buildFile.renameTo("$buildDir${File.separator}outputs${File.separator}aar${File.separator}${archivesBaseName}-${version}.aar")) {
// println "Rename failed!"
// }
// }
// }
tasks.named("assembleDistRelease").configure {
def buildFile = file("$buildDir/outputs/aar/${archivesBaseName}-dist-release.aar")
print "Build file $buildFile"
doLast {
println "Renaming build file $buildFile to '$buildDir${File.separator}outputs${File.separator}aar${File.separator}${archivesBaseName}-${version}.aar'"
if (!buildFile.renameTo("$buildDir${File.separator}outputs${File.separator}aar${File.separator}${archivesBaseName}-${version}.aar")) {
println "Rename failed!"
}
}
}
publishing {
publications {
msal(MavenPublication) {
Expand Down

0 comments on commit 56ac38b

Please sign in to comment.