Skip to content

build: pin the JavaCC Gradle plugin to 4.0.3 - #2974

Open
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:build/pin-javacc-gradle-plugin
Open

minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:build/pin-javacc-gradle-plugin

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

The JavaCC Gradle plugin was declared with latest.release, so every build asks the Gradle Plugin Portal for its newest version. When that lookup fails, the build stops before any task runs. This happened in the Grammar Choice Conflicts job of #2973, while the other jobs of the same run resolved the plugin:

Plugin [id: 'org.javacc.javacc', version: 'latest.release'] was not found in any of the following sources:
- Plugin Repositories (could not resolve plugin artifact 'org.javacc.javacc:org.javacc.javacc.gradle.plugin:latest.release')

What changes

  • org.javacc.javacc is pinned to 4.0.3, the version latest.release resolves to today, so the build does not change.
  • The JavaCC engine, javacc-core and javacc-java from manticore-projects, is not affected. The other plugins keep latest.release.

The Maven build already pins its JavaCC plugin (javacc-maven-plugin 3.8.0).

Validation

  • ./gradlew buildEnvironment resolves org.javacc.plugin:javacc-gradle-plugin:4.0.3 before and after the change.
  • gradle check and checkGrammarAmbiguity completed with 18,788 tests, 0 failures, 25 skipped, and no grammar choice conflicts. spotlessJavaCheck and spotlessMiscCheck report CCJSqlParserTest.java and CHANGELOG.md, which fail the same way on master.

Prepared with Claude Code.

The plugin was declared with "latest.release", so Gradle asks the Plugin
Portal for its newest version on every build. When that lookup fails, the
build stops before any task runs, as in the Grammar Choice Conflicts job of
JSQLParser#2973 ("Plugin [id: 'org.javacc.javacc', version: 'latest.release'] was not
found"), while the other jobs of the same run resolved the plugin.

4.0.3 is the version that latest.release resolves to today, so the build
does not change. The JavaCC engine, manticore-projects' javacc-core and
javacc-java, is not affected. The Maven build already pins its JavaCC
plugin.

Signed-off-by: minleejae <mmj9808@gmail.com>

This branch has not been deployed

No deployments
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.

1 participant