Skip to content

Update project to Java 25 - #1

Open
Thihup wants to merge 22 commits into
MyWorldLLC:mainfrom
Thihup:main
Open

Update project to Java 25#1
Thihup wants to merge 22 commits into
MyWorldLLC:mainfrom
Thihup:main

Conversation

@Thihup

Copy link
Copy Markdown

To allow generate bindings for the version v27.0.4.0

CopilotAI review requested due to automatic review settings January 15, 2026 19:59

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the project from Java 21 to Java 25 to enable binding generation for wgpu-native version v27.0.4.0. The update includes upgrading build tools, updating Java version references in Gradle configurations, and modifying the path to the webgpu.h header file.

Changes:

  • Updated Java version from 21 to 25 across library build configuration
  • Upgraded Gradle from version 8.5 to 9.2.1
  • Updated GitHub Actions workflow to use Java 25 and jextract-25
  • Modified webgpu.h header file path to reflect new directory structure in wgpu-native distribution

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

FileDescription
lib/build.gradleUpdated Java source/target compatibility and toolchain to version 25
gradle/wrapper/gradle-wrapper.propertiesUpgraded Gradle wrapper from 8.5 to 9.2.1
.github/workflows/build-and-publish-bindings.ymlUpdated Java version to 25 and jextract to version 25
natives/build.gradleUpdated path to webgpu.h header file to match new wgpu-native distribution structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

CopilotAIand others added 18 commits January 15, 2026 20:08
- Add matrix strategy to build on both ubuntu-latest and windows-latest
- Download and configure platform-specific jextract binaries
- Use platform-specific Gradle commands and shell environments
- Upload platform-specific binding artifacts
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
- Add toolchain parameter to handle Windows-specific naming (msvc/gnu)
- Construct platform string correctly for Windows (windows-x86_64-msvc)
- Update file paths to use dynamic platformString variable
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
- Split extract jextract into separate Linux and Windows steps
- Remove extract_command from matrix as it's no longer needed
- Use explicit shell directives for each platform
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
- Use matrix.jextract_archive variable in extract steps
- Improve toolchain handling to use null instead of empty string
- Add explicit null check in platformString construction
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
- Set contents: read and packages: write permissions
- Addresses CodeQL security alert about missing workflow permissions
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
- Change Windows jextract URL from .zip to .tar.gz
- Update Windows extraction to use tar command instead of Expand-Archive
- Both Linux and Windows now use tar.gz archives
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
- Add quotes around -PwgpuVersion and -Pos parameters
- Fixes issue where version strings with periods (v27.0.4.0) were
being incorrectly parsed on Windows
- Prevents "Task '.0.4.0' not found" error
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
Publish JExtract-generated source code alongside compiled bindings
Sign up for freeto 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.

3 participants

@Thihup