SpongePowered / SpongeGradle

Handy gradle utilities for the various gradle projects of SpongePowered
MIT License
21 stars 16 forks source link

Deprecation warnings in Gradle 8.3 #72

Closed jpenilla closed 1 year ago

jpenilla commented 1 year ago

https://docs.gradle.org/8.3/userguide/validation_problems.html#unsupported_value_type

> Task :minimotd-sponge8:writePluginMetadata
Execution optimizations have been disabled for task ':minimotd-sponge8:writePluginMetadata' to ensure correctness due to the following reasons:
  - In plugin 'org.spongepowered.gradle.plugin' type 'org.spongepowered.gradle.plugin.task.WritePluginMetadataTask' property 'sourceContainer.global.links.homepage' has @Input annotation used on type 'java.net.URL' or a property of this type. Reason: Type 'java.net.URL' is not supported on properties annotated with @Input because Java Serialization can be inconsistent for this type. For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#unsupported_value_type in the Gradle documentation.
  - In plugin 'org.spongepowered.gradle.plugin' type 'org.spongepowered.gradle.plugin.task.WritePluginMetadataTask' property 'sourceContainer.global.links.issues' has @Input annotation used on type 'java.net.URL' or a property of this type. Reason: Type 'java.net.URL' is not supported on properties annotated with @Input because Java Serialization can be inconsistent for this type. For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#unsupported_value_type in the Gradle documentation.
  - In plugin 'org.spongepowered.gradle.plugin' type 'org.spongepowered.gradle.plugin.task.WritePluginMetadataTask' property 'sourceContainer.global.links.source' has @Input annotation used on type 'java.net.URL' or a property of this type. Reason: Type 'java.net.URL' is not supported on properties annotated with @Input because Java Serialization can be inconsistent for this type. For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#unsupported_value_type in the Gradle documentation.
  - In plugin 'org.spongepowered.gradle.plugin' type 'org.spongepowered.gradle.plugin.task.WritePluginMetadataTask' property 'sourceContainer.plugins.minimotd$0.links.homepage' has @Input annotation used on type 'java.net.URL' or a property of this type. Reason: Type 'java.net.URL' is not supported on properties annotated with @Input because Java Serialization can be inconsistent for this type. For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#unsupported_value_type in the Gradle documentation.
  - In plugin 'org.spongepowered.gradle.plugin' type 'org.spongepowered.gradle.plugin.task.WritePluginMetadataTask' property 'sourceContainer.plugins.minimotd$0.links.issues' has @Input annotation used on type 'java.net.URL' or a property of this type. Reason: Type 'java.net.URL' is not supported on properties annotated with @Input because Java Serialization can be inconsistent for this type. For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#unsupported_value_type in the Gradle documentation.
  - In plugin 'org.spongepowered.gradle.plugin' type 'org.spongepowered.gradle.plugin.task.WritePluginMetadataTask' property 'sourceContainer.plugins.minimotd$0.links.source' has @Input annotation used on type 'java.net.URL' or a property of this type. Reason: Type 'java.net.URL' is not supported on properties annotated with @Input because Java Serialization can be inconsistent for this type. For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#unsupported_value_type in the Gradle documentation.
zml2008 commented 1 year ago

Fixed in https://github.com/SpongePowered/SpongeGradle/commit/cbc92058aeffd9613aa0e96fd87066efb88949f4 - that's 2.2.0-SNAPSHOT if you have a sec to test