Skip to content

fix(plugins): replace classloader-based dependency resolution with properties-file strategy - #121

Merged
yannickebongue merged 1 commit into
mainfrom
hotfix/gradle-7.6.6-8.x-backward-compatibility
Nov 2, 2026
Merged

yannickebongue merged 1 commit into
mainfrom
hotfix/gradle-7.6.6-8.x-backward-compatibility

Conversation

@yannickebongue

Copy link
Copy Markdown
Contributor

Replace the runtime classloader introspection in resolvePersistenceToolsFiles with a build-time generated persistence-plugin-info.properties resource that carries the persistence-tools version from the version catalog.  Dependencies are now resolved exclusively through detached Gradle configurations, removing the ClassLoader parameter and the resolvePersistenceToolsVersion helper.

Additional changes:

  • Inline the shared OpenJPABasePlugin setup into OpenJPAEnhancementPlugin   and OpenJPAMetaModelGenerationPlugin, then delete the base class
  • Change MetaModelExtension.getLogLevel() from Property<LogLevel> to   Property<String> and update the corresponding Groovydoc
  • Move persistence-tools classpath wiring in HibernateEnhancementPlugin into   the task configuration block and resolve the compile classpath eagerly
  • Add the generatePluginInfo task to the jakarta plugin build script

Resolves #120

…operties-file strategy

Replace the runtime classloader introspection in `resolvePersistenceToolsFiles`
with a build-time generated `persistence-plugin-info.properties` resource that
carries the persistence-tools version from the version catalog.  Dependencies
are now resolved exclusively through detached Gradle configurations, removing
the `ClassLoader` parameter and the `resolvePersistenceToolsVersion` helper.

Additional changes:

- Inline the shared `OpenJPABasePlugin` setup into `OpenJPAEnhancementPlugin`
  and `OpenJPAMetaModelGenerationPlugin`, then delete the base class
- Change `MetaModelExtension.getLogLevel()` from `Property<LogLevel>` to
  `Property<String>` and update the corresponding Groovydoc
- Move persistence-tools classpath wiring in `HibernateEnhancementPlugin` into
  the task configuration block and resolve the compile classpath eagerly
- Add the `generatePluginInfo` task to the jakarta plugin build script
@yannickebongue yannickebongue self-assigned this Nov 2, 2026
@yannickebongue yannickebongue added bug Something isn't working plugins Gradle plugin wrappers (Gradle Plugin Portal artifacts) labels Nov 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@yannickebongue
yannickebongue merged commit b48424f into main Nov 2, 2026
4 checks passed
@yannickebongue
yannickebongue deleted the hotfix/gradle-7.6.6-8.x-backward-compatibility branch November 2, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working plugins Gradle plugin wrappers (Gradle Plugin Portal artifacts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Fix(infrastructure): Restore runtime compatibility and lifecycle safety for Gradle 7.6.6 and 8.x

1 participant