Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.gradle -> build.gradle.kts #896

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

jaredsburrows
Copy link
Collaborator

Fixed warnings as well:

  • w: file:///Users/<>/repo/gradle-versions-plugin/gradle-versions-plugin/build.gradle.kts:13:9: Type mismatch: inferred type is Any? but Any was expected
  • w: file:///Users/<>/repo/gradle-versions-plugin/gradle-versions-plugin/build.gradle.kts:14:11: Type mismatch: inferred type is Any? but Any was expected
  • w: file:///Users/<>/repo/gradle-versions-plugin/gradle-versions-plugin/build.gradle.kts:18:26: 'getter for buildDir: File!' is deprecated. Deprecated in Java

Comment on lines +50 to +53
id = properties["PLUGIN_NAME"].toString()
implementationClass = properties["PLUGIN_NAME_CLASS"].toString()
displayName = properties["POM_NAME"].toString()
description = properties["POM_DESCRIPTION"].toString()
Copy link
Owner

Choose a reason for hiding this comment

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

in my caffeine build, I have val signingKey: String? by project and values = features[4] as ValueStrength. not sure either of those are more idiomatic, so just throwing it out there if you have a style preference.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I just figured, was easy to read and shorter:.

@jaredsburrows jaredsburrows merged commit dcf7394 into master Jul 30, 2024
2 checks passed
@jaredsburrows jaredsburrows deleted the pr/jaredsburrows/build.gradle.kts-2 branch July 30, 2024 20:19
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