diff --git a/build.gradle.kts b/build.gradle.kts index f2995e6..6670b6a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,6 +22,7 @@ dependencies { runtimeOnly("org.apache.camel.upgrade:camel-upgrade-recipes:latest.release") runtimeOnly("org.apache.wicket:wicket-migration:latest.release") runtimeOnly("org.axonframework:axon-migration:latest.release") + runtimeOnly("software.amazon.awssdk:v2-migration:latest.release") runtimeOnly("tech.picnic.error-prone-support:error-prone-contrib:latest.release:recipes") // error-prone-contrib only has provided dependencies, whereas the platform needs these on the classpath at runtime @@ -56,9 +57,14 @@ tasks.withType { include(dependency("org.apache.camel.upgrade:camel-upgrade-recipes")) include(dependency("org.apache.wicket:wicket-migration")) include(dependency("org.axonframework:axon-migration")) + include(dependency("software.amazon.awssdk:v2-migration")) include(dependency("tech.picnic.error-prone-support:error-prone-contrib")) } // Redeclares existing Quarkus and OpenRewrite recipes exclude("**/ToLatest9.yml") relocate("quarkus-updates", "META-INF.rewrite") + // Amazon SDK v2 migration recipe contains some scripts + exclude("generate-recipes") + exclude("scripts/") + exclude("v1-v2-service-mapping-diffs.csv") } diff --git a/src/main/resources/META-INF/rewrite/category.yml b/src/main/resources/META-INF/rewrite/category.yml new file mode 100644 index 0000000..a3d21a4 --- /dev/null +++ b/src/main/resources/META-INF/rewrite/category.yml @@ -0,0 +1,38 @@ +# +# Copyright 2024 the original author or authors. +#

+# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +#

+# https://www.apache.org/licenses/LICENSE-2.0 +#

+# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +--- +type: specs.openrewrite.org/v1beta/category +packageName: ai.timefold.solver +name: Timefold +root: true +description: | + [Timefold](https://timefold.ai/) is the open source AI solver to optimize operations and scheduling in Java, Python or Kotlin. + Timefold is a fork of OptaPlanner by its creator and other experts. +--- +type: specs.openrewrite.org/v1beta/category +name: Amazon Web Services SDK +packageName: software.amazon.awssdk +description: | + [AWS SDK for Java](https://aws.amazon.com/sdk-for-java/) makes it easy to call AWS services using idiomatic Java APIs. +--- +type: specs.openrewrite.org/v1beta/category +name: Error Prone Support +packageName: tech.picnic.errorprone.refasterrules +description: | + [Error Prone Support](https://github.com/PicnicSupermarket/error-prone-support) is a Picnic-opinionated extension of Google's [Error Prone](https://github.com/google/error-prone). + It aims to improve code quality, focussing on maintainability, consistency and avoidance of common pitfalls. +---