Skip to content

Add foojay toolchain resolver for automatic JDK provisioning - #302

Closed
happycollision wants to merge 1 commit into
jaspr/main/ddd6546efrom
jaspr/main/493cb75f
Closed

happycollision wants to merge 1 commit into
jaspr/main/ddd6546efrom
jaspr/main/493cb75f

Conversation

@happycollision

@happycollision happycollision commented Dec 19, 2025 •

Copy link
Copy Markdown
Collaborator

Maybe this is helpful for

And it currently requires me to use toolchains to build one module w/17 and one with/21

Who knows.

OIP-3651274188 eTnk12Wc4brCF62b_MqVKgHaFq

Add foojay toolchain resolver for automatic JDK provisioning

This adds the Gradle toolchain resolver plugin which enables automatic
download of required JDK versions during the build.

Why This Is Needed

The project has mixed JDK requirements:

  • git-jaspr and github-dsl-model use Java 21 (via toolchain configuration)
  • data-class-fragment uses Java 21 (updated from Java 11)

When building on a machine that only has one JDK version installed,
Gradle would previously fail with toolchain resolution errors. The
foojay resolver plugin allows Gradle to automatically download the
required JDK versions from the Adoptium/Eclipse Temurin distribution.

What This Enables

Developers can now build the project with any JDK 21+ installed, and
Gradle will automatically provision any other required JDK versions
into ~/.gradle/jdks/.

🤖 Generated with Claude Code

Stack:

⚠️ Part of a stack created by jaspr. Do not merge manually using the UI - doing so may have unexpected results.

This adds the Gradle toolchain resolver plugin which enables automatic
download of required JDK versions during the build.

## Why This Is Needed

The project has mixed JDK requirements:
- git-jaspr and github-dsl-model use Java 21 (via toolchain configuration)
- data-class-fragment uses Java 21 (updated from Java 11)

When building on a machine that only has one JDK version installed,
Gradle would previously fail with toolchain resolution errors. The
foojay resolver plugin allows Gradle to automatically download the
required JDK versions from the Adoptium/Eclipse Temurin distribution.

## What This Enables

Developers can now build the project with any JDK 21+ installed, and
Gradle will automatically provision any other required JDK versions
into ~/.gradle/jdks/.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
commit-id: 493cb75f
@MichaelSims

Copy link
Copy Markdown
Owner

This problem was solved a different way, but thank you!

@MichaelSims
MichaelSims deleted the jaspr/main/493cb75f branch December 26, 2025 15:05
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.

2 participants