Skip to content

Conversation

@kruton
Copy link

@kruton kruton commented Apr 21, 2025

When looking at a solution for #41 I ended up rewriting the plugin in Kotlin and reorganizing everything to use the newer Gradle lazy configuration using Properties and Providers. Sorry for the huge change, but I got a little bit carried away.

I did not rewrite the the tests except to change Path#newFile to Path#resolve with a call to a .toFile() call. For some reason the newer Gradle versions don't accept what the test was doing. java.nio.file.Path#newFile doesn't exist so I'm not sure which type coercion was happening before.

kruton added 8 commits April 17, 2025 17:03
Helps with editing because Kotlin is strongly typed among other benefits.
If it is null, it returns early so there is no need to check again.
VersionNumber has been deprecated so move to GradleVersion.
project.buildDir is deprecated so use the Provider interface now. This should
be a step toward using Provider<Directory> everywhere instead of File directly.
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.

1 participant