Skip to content

Conversation

@demoth
Copy link
Owner

@demoth demoth commented Jun 10, 2025

Summary

  • switch to java plugin extension instead of deprecated JavaPluginConvention
  • stop using mainClassName property and update manifest/native image config

Testing

  • ./gradlew help --warning-mode all

https://chatgpt.com/codex/tasks/task_e_6848a11b54208329ad9e06152981c463

@demoth demoth requested a review from Copilot June 10, 2025 21:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A pull request to address Gradle 9 deprecations by switching to a supported Java plugin extension and updating the configuration for the main class in both native image configuration and the application manifest.

  • Updated nativeimage.gradle to use mainClass.set() with a hardcoded value.
  • Revised build.gradle to remove deprecated mainClassName property and update the application configuration and manifest accordingly.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
cake/lwjgl3/nativeimage.gradle Updated mainClass assignment to use the .set() method with a hardcoded launcher name.
cake/lwjgl3/build.gradle Converted mainClass configuration to use a variable and updated the manifest attributes accordingly.

main {
imageName = appName
mainClass = project.mainClassName
mainClass.set('org.demoth.cake.lwjgl3.Lwjgl3GameLauncher')
Copy link

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider externalizing the main class name to a shared configuration or variable to ensure consistency with the build.gradle settings, which can help reduce duplication across files.

Suggested change
mainClass.set('org.demoth.cake.lwjgl3.Lwjgl3GameLauncher')
mainClass.set(mainClassName)

Copilot uses AI. Check for mistakes.
@demoth demoth self-assigned this Jun 10, 2025
@demoth demoth merged commit bcaf0c5 into main Jun 10, 2025
1 check passed
@demoth demoth deleted the codex/identify-deprecated-features-in-gradle-8.x branch June 10, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants