Skip to content

Conversation

Copy link

Copilot AI commented Aug 5, 2025

This PR updates the project from Gradle 7.5.1 to Gradle 8.4, addressing compatibility issues while maintaining JDK 8 support required by the CI pipeline.

Background

The original upgrade to Gradle 9.0.0 broke JDK 8 compatibility since Gradle 9+ requires Java 17 as the minimum version. This project's CI tests against JDK 8, 11, and 17, so JDK 8 support must be maintained.

Changes Made

Gradle Version Selection

  • Gradle 8.4 is the last version that supports JDK 8
  • Provides significant improvements over the original 7.5.1
  • Meets the requirement for > 7.6.2 mentioned in README due to Jackson dependencies bug
  • Maintains compatibility with existing CI pipeline testing JDK 8, 11, and 17

Gradle Wrapper Updates

  • Updated gradle/wrapper/gradle-wrapper.properties to use Gradle 8.4
  • Updated bjoern-sample/gradle/wrapper/gradle-wrapper.properties to use Gradle 8.4

Build Configuration Modernization

  • Plugin Publishing: Migrated from deprecated pluginBundle block to modern gradlePlugin configuration with inline metadata
  • Archive Properties: Updated deprecated archivesBaseName and version properties to archiveBaseName and archiveVersion
  • Test Dependencies: Added junit-platform-launcher to test runtime classpath for JUnit Platform compatibility

Test Framework Updates

  • Updated BjoernGradleTest.java to use JUnit 5 style with @TempDir annotation
  • Removed usage of deprecated org.gradle.internal.impldep.org.junit packages which are no longer accessible in modern Gradle versions

Documentation

  • Updated README.md to reflect that Gradle 8 is now supported

Validation

All builds and tests pass successfully:

  • ✅ Main project build and test suite
  • ✅ Sample project build and code generation
  • ✅ Plugin functionality verified
  • ✅ JDK 8, 11, 17 compatibility maintained

The upgrade provides modern Gradle features while preserving backward compatibility with the project's JDK 8 requirement.

Fixes #78.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: Mehtrick <4493019+Mehtrick@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Gradle Version to 9.0.0 Update Gradle Version to 9.0.0 Aug 5, 2025
Copilot AI requested a review from Mehtrick August 5, 2025 21:17
Copilot finished work on behalf of Mehtrick August 5, 2025 21:17
@Mehtrick
Copy link
Owner

Mehtrick commented Aug 5, 2025

@copilot it does not work with jdk 8 anymore

Co-authored-by: Mehtrick <4493019+Mehtrick@users.noreply.github.com>
Copy link
Author

Copilot AI commented Aug 5, 2025

@copilot it does not work with jdk 8 anymore

Fixed in commit 81b373b. Gradle 9.0.0 requires Java 17+ minimum, which broke JDK 8 compatibility. Downgraded to Gradle 8.4 (the last version supporting JDK 8) while still providing significant improvements over the original 7.5.1. Build now passes successfully with JDK 8, 11, and 17.

Copilot AI changed the title Update Gradle Version to 9.0.0 Update Gradle Version to 8.4 with JDK 8 Compatibility Aug 5, 2025
Copilot finished work on behalf of Mehtrick August 5, 2025 21:26
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.

Update Gradle Version to 9.0.0

2 participants