fix: use SPDX license URL in published POM - #118
Merged
Merged
Conversation
pmathew92
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
POM_LICENCE_URLingradle.propertiesfrom the raw GitHub link (https://raw.githubusercontent.com/auth0/JWTDecode.Android/master/LICENSE) to the standard SPDX URL (https://spdx.org/licenses/MIT.html).licensee) can't recognize the raw GitHub URL, forcing consumers to manually allowlist it. The SPDX URL is auto-recognized as MIT. Fixes Change MIT license url to SPDX url #87.POM_LICENCE_URLis the single source of truth read bygradle/maven-publish.gradle.afterEvaluate { pom.withXml { ... } }hook to rewrite the generated POM. That approach was fragile (patched output, not source) and was silently dropped during the Central Portal publishing migration, so 2.0.3 still shipped the old URL. Correcting the property directly is durable and flows through the maintained publishing config.References
SDK-8760
Testing
Run:
./gradlew :jwtdecode:generatePomFileForReleasePublication
Verify the generated POM at
lib/build/publications/release/pom-default.xmlcontains:[x] This change adds test coverage
[x] This change has been tested on the latest version of the platform/language or why not
Checklist
[x] I have read the Auth0 general contribution guidelines
[x] I have read the Auth0 Code of Conduct
[x] All existing and new tests complete without errors