Skip to content

Fix compatibility issue introduced by ktfmt 0.51#2172

Merged
Goooler merged 7 commits intodiffplug:mainfrom
hick209:ktfmt-0.51-fix
Jun 18, 2024
Merged

Fix compatibility issue introduced by ktfmt 0.51#2172
Goooler merged 7 commits intodiffplug:mainfrom
hick209:ktfmt-0.51-fix

Conversation

@hick209
Copy link
Contributor

@hick209 hick209 commented Jun 14, 2024

@hick209 hick209 marked this pull request as draft June 14, 2024 16:44
@hick209 hick209 marked this pull request as ready for review June 14, 2024 22:49
@Goooler Goooler changed the title [ktfmt] Fixed compatibility issue introduced by 0.51 Fix compatibility issue introduced by ktfmt 0.51 Jun 16, 2024
@hick209
Copy link
Contributor Author

hick209 commented Jun 17, 2024

Thanks @Goooler for helping making the code in this PR better 😃

Copy link
Member

@Goooler Goooler left a comment

Choose a reason for hiding this comment

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

@hick209
Copy link
Contributor Author

hick209 commented Jun 18, 2024

Looking into the issue you see there @Goooler, it does not look related to my changes.
Also tests are clean here on my end
image

def args = [
'--add-opens=java.base/java.lang=ALL-UNNAMED'
'--add-opens=java.base/java.lang=ALL-UNNAMED',
'--add-opens=java.base/java.util=ALL-UNNAMED',
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the fix!

I still wonder if this is related to my changes though, it does not look like it to me, but I'm fine with us landing it as part of this PR

Copy link
Member

Choose a reason for hiding this comment

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

Nope, this is a behavior change from Gradle 7.5, it affects tests.

Thanks for your great work here!

@Goooler
Copy link
Member

Goooler commented Jun 18, 2024

Your tests passed may be due to you using Java 11.

@Goooler Goooler merged commit f6694ec into diffplug:main Jun 18, 2024
@hick209 hick209 deleted the ktfmt-0.51-fix branch June 19, 2024 12:11
@nedtwigg
Copy link
Member

Released in plugin-gradle 7.0.0.BETA2 and plugin-maven 2.44.0.BETA2.

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.

Gradle plugin 6.25.0 incompatible with ktfmt 0.51

3 participants