Skip to content

Conversation

@autonomousapps
Copy link
Collaborator

@autonomousapps autonomousapps commented May 7, 2025

Follow-up from #231.

Note this requires a beta version of Shadow, so we probably can't land it yet. Pushed anyway as a proof of concept. We can return to this when Shadow 9 has a release version.

Comment on lines -83 to 86

tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The change is to configure the java {} extension instead, which expresses the intent better and also works against the latest pre-release version of Shadow (9.0.0-beta13).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

With this change, we ensure that we always relocate everything and don't have to maintain a fragile list.

@autonomousapps autonomousapps marked this pull request as ready for review May 7, 2025 19:04
@autonomousapps autonomousapps marked this pull request as draft May 7, 2025 20:04
Note I also tested this with the latest pre-release version of Shadow and it works even better, though with a tiny API change.
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