test(oss-licenses): add standalone testapp for plugin verification#388
Open
timothyfroehlich wants to merge 1 commit intomainfrom
Open
test(oss-licenses): add standalone testapp for plugin verification#388timothyfroehlich wants to merge 1 commit intomainfrom
timothyfroehlich wants to merge 1 commit intomainfrom
Conversation
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.
Summary
Introduces a standalone Android test application for verifying the oss-licenses plugin end-to-end, along with CI jobs to run it on every PR.
oss-licenses-plugin/testapp/) — a real Android app that applies the plugin, declares dependencies with known licenses (Gson, Guava), and runs Robolectric tests against both V1 and V2 license display activities.includeBuildfor local dev — by default,cd testapp && ./gradlew buildbuilds the plugin from source via Gradle composite builds. No manual./gradlew publishneeded. CI and e2e tests pass-PusePublishedPluginFrom=../build/repoto use a pre-published artifact instead.STABLE_CONFIGURATION_CACHE,org.gradle.configuration-cache=true, andorg.gradle.configuration-cache.problems=failingradle.properties.oss-licenses-build— builds and publishes the plugin (pulled out of the matrix)oss-licenses-testapp— builds the testapp with the published pluginoss-licenses-testapp-cc— configuration cache verification (build → clean → rebuild). This job usescontinue-on-error: truebecause the plugin currently has a known CC bug (refactor(oss-licenses): replace eager dependency resolution with lazy ArtifactView providers #381) that will be fixed in a follow-up PR.gradle-daemon-jvm.properties(JDK 21), foojay toolchain resolver,.DS_Storeto.gitignore.Test plan
cd oss-licenses-plugin/testapp && ./gradlew buildsucceeds locally (usesincludeBuild)cd oss-licenses-plugin && ./gradlew publish && cd testapp && ./gradlew build -PusePublishedPluginFrom=../build/reposucceeds (published path)oss-licenses-testappjob passesoss-licenses-testapp-ccjob fails as expected (known CC bug,continue-on-errorprevents blocking)oss-licenses-buildandbuild(other plugins) jobs pass🤖 Generated with Claude Code