Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dependencies): upgrade com.diffplug.spotless:spotless-plugin-gr…
…adle and associated dependencies of google-java-format and ktlint (#195) While upgrading the gradle wrapper to 7.6.1 for spinnaker services, all the services (clouddriver, gate, igor, echo, front50, fiat, halyard, rosco, kayenta) faced below warning related to spotlessMisc task ordering (a sample from igor): ``` > Task :spotlessMisc Execution optimizations have been disabled for task ':spotlessMisc' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/gradle-upgrade-7.x/gradle7/igor'. Reason: Task ':spotlessMisc' uses this output of task ':spotlessJava' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.6.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. - Gradle detected a problem with the following location: '/gradle-upgrade-7.x/gradle7/igor'. Reason: Task ':spotlessMisc' uses this output of task ':igor-web:processResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.6.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. ``` The root cause of the issue is old version of `com.diffplug.spotless:spotless-plugin-gradle:5.1.0` used by spinnaker-gradle-project `codestyle` plugin. Since this plugin is applied to all spinnaker services, fix can be applied to spinnaker-gradle-project codestyle plugin by upgrading `com.diffplug.spotless:spotless-plugin-gradle` to [5.17.1](https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md#5171---2021-10-26) along with it upgrading [google-java-format](https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md#5143---2021-08-20) to 1.11.0 and [ktlint](https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md#5143---2021-08-20) to 0.42.1
- Loading branch information