Skip to content

Commit

Permalink
chore: [issue#4] add recipe for migrating `com.vladmihalcea:hibernate…
Browse files Browse the repository at this point in the history
…-types` to `io.hypersistence:hypersistence-utils-hibernate-6X` (#6)

* chore: [issue#4] add recipe for migrating `com.vladmihalcea:hibernate-types` to `io.hypersistence:hypersistence-utils-hibernate-6X`

* Apply default formatter

* Simplify package change assertion

* Update license header

* Hypersistence 3.5.x

---------

Co-authored-by: Iuliia Sobolevska <[email protected]>
Co-authored-by: Tim te Beek <[email protected]>
Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
4 people authored Jun 30, 2023
1 parent 40572ad commit 1b5aba5
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 287 deletions.
43 changes: 43 additions & 0 deletions src/main/resources/META-INF/rewrite/hibernate-6.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Copyright 2023 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/recipe
name: org.openrewrite.hibernate.MigrateToHibernate62
displayName: Migrate to Hibernate 6.2.x
description: >
This recipe will apply changes commonly needed when migrating to Hibernate 6.2.x.
recipeList:
- org.openrewrite.hibernate.MigrateToHibernate61
- org.openrewrite.hibernate.MigrateToHypersistenceUtilsHibernate6.2


---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.hibernate.MigrateToHypersistenceUtilsHibernate6.2
displayName: Migrate Hibernate Types to Hypersistence Utils 6.2
description: >
This recipe will migrate any existing dependencies on `io.hypersistence:hypersistence-utils-hibernate-60` to `io.hypersistence:hypersistence-utils-hibernate-62`.
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: io.hypersistence
oldArtifactId: hypersistence-utils-hibernate-60
newGroupId: io.hypersistence
newArtifactId: hypersistence-utils-hibernate-62
newVersion: 3.5.x

Loading

0 comments on commit 1b5aba5

Please sign in to comment.