Skip to content

Use correct elements configuration for GRADLE_PLUGIN_API_VERSION_ATTR…#542

Open
hfhbd wants to merge 4 commits intocashapp:trunkfrom
hfhbd:fix
Open

Use correct elements configuration for GRADLE_PLUGIN_API_VERSION_ATTR…#542
hfhbd wants to merge 4 commits intocashapp:trunkfrom
hfhbd:fix

Conversation

@hfhbd
Copy link
Copy Markdown
Contributor

@hfhbd hfhbd commented Jan 5, 2026

…IBUTE


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

@hfhbd
Copy link
Copy Markdown
Contributor Author

hfhbd commented Jan 5, 2026

Well, we should just use both, runtime for, well, runtime usage (gradle users) and api for plugin authors building a plugin on top of licensee.

Comment thread build.gradle Outdated
Comment thread src/test/kotlin/app/cash/licensee/LicenseePluginFixtureTest.kt
Co-authored-by: Jake Wharton <github@jakewharton.com>
@hfhbd
Copy link
Copy Markdown
Contributor Author

hfhbd commented Jan 14, 2026

But I found another bug: We use JVM 25 to run the tests. Gradle 8.12 does not support this new JVM. I created a new Test target to use the jvm toolchain feature (for tests) only.
If we do use it, we could also remove the test parameter gradle version from the class and move it to the Test config. I will create a PR and you can review it (as always :)

"Plugin app.cash.licensee:licensee-gradle-plugin",
)
assertThat(result.output).contains(
"requires at least Gradle 9.0. This build uses Gradle 8.9",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"requires at least Gradle 9.0. This build uses Gradle 8.9",
"requires at least Gradle 9.0. This build uses Gradle $gradleVersion",

Based on my previous comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants