Skip to content

feat: use java 17 for api components#1650

Merged
0utplay merged 7 commits intoCloudNetService:nightlyfrom
GiantTreeLP:feat/api-on-java-21
Jun 22, 2025
Merged

feat: use java 17 for api components#1650
0utplay merged 7 commits intoCloudNetService:nightlyfrom
GiantTreeLP:feat/api-on-java-21

Conversation

@GiantTreeLP
Copy link
Member

Motivation

We want to ease the development of modules and plugins that interface with CloudNet. Currently CloudNet requires Java 24 in its runtime and consequently its API.
The API has already been extracted from the implementation and thus efforts to relax the Java version constraints can be realised.

Modification

With this PR the API components relax their Java version requirements from Java 24 to Java 17.

Result

The API components can now be used in projects that do not work or want to constraint themselves to Java 24.

Other context

See this very small exchange on Discord: https://discord.com/channels/325362837184577536/818777626663321671/1380941029741694986.
These changes built upon #1566.

@derklaro derklaro force-pushed the feat/api-on-java-21 branch from 8bce9fe to 020c00b Compare June 19, 2025 21:34
@derklaro derklaro added this to the 4.0.0-RC13 milestone Jun 20, 2025
@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release t: improvement The pull request improves existing code labels Jun 20, 2025
0utplay and others added 6 commits June 22, 2025 11:28
This change adds a new version bundle that excludes the `dev.derklaro.aerogel:aerogel-scoped-value-context-scope` dependency. This dependency cannot be used in API modules, because those do not use Java 24.
@derklaro derklaro force-pushed the feat/api-on-java-21 branch from 020c00b to 0b3cb6f Compare June 22, 2025 09:34
@0utplay 0utplay changed the title Make the CloudNet API components compatible with Java 17 feat: use java 17 for api components Jun 22, 2025
0utplay
0utplay previously approved these changes Jun 22, 2025
@0utplay 0utplay merged commit 1f00abb into CloudNetService:nightly Jun 22, 2025
3 checks passed
@GiantTreeLP GiantTreeLP deleted the feat/api-on-java-21 branch June 23, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t: improvement The pull request improves existing code v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants