Skip to content

Commit

Permalink
Adopt software.amazon.awssdk:v2-migration (#15)
Browse files Browse the repository at this point in the history
* Adopt `software.amazon.awssdk:v2-migration`

* Use `latest.release` for `awssdk:v2-migration`

* Add category.yml
  • Loading branch information
timtebeek authored Oct 10, 2024
1 parent 3f687d8 commit ac5a762
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,9 +57,14 @@ tasks.withType<ShadowJar> {
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")
}
38 changes: 38 additions & 0 deletions src/main/resources/META-INF/rewrite/category.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Copyright 2024 the original author or authors.
# <p>
# 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
# <p>
# https://www.apache.org/licenses/LICENSE-2.0
# <p>
# 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.
---

0 comments on commit ac5a762

Please sign in to comment.