META-INF.rewrite.archunit.yml Maven / Gradle / Ivy
#
# Copyright 2024 the original author or authors.
#
# Licensed under the Moderne Source Available License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://docs.moderne.io/licensing/moderne-source-available-license
#
# 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.java.testing.archunit.ArchUnit0to1Migration
displayName: ArchUnit 0.x upgrade
description: Upgrade ArchUnit from 0.x to 1.x.
recipeList:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: com.tngtech.archunit
artifactId: archunit*
newVersion: 1.x
- org.openrewrite.java.ChangeMethodName:
methodPattern: com.tngtech.archunit.core.domain.JavaPackage getAllClasses()
newMethodName: getClassesInPackageTree
- org.openrewrite.java.ChangeMethodName:
methodPattern: com.tngtech.archunit.core.domain.JavaPackage getAllSubpackages()
newMethodName: getSubpackagesInTree
- org.openrewrite.java.ChangeMethodName:
methodPattern: com.tngtech.archunit.core.domain.JavaPackage getClassDependenciesFromSelf()
newMethodName: getClassDependenciesFromThisPackageTree
- org.openrewrite.java.ChangeMethodName:
methodPattern: com.tngtech.archunit.core.domain.JavaPackage getClassDependenciesToSelf()
newMethodName: getClassDependenciesToThisPackageTree
- org.openrewrite.java.ChangeMethodName:
methodPattern: com.tngtech.archunit.core.domain.JavaPackage getPackageDependenciesFromSelf()
newMethodName: getPackageDependenciesFromThisPackageTree
- org.openrewrite.java.ChangeMethodName:
methodPattern: com.tngtech.archunit.core.domain.JavaPackage getPackageDependenciesToSelf()
newMethodName: getPackageDependenciesToThisPackageTree
- org.openrewrite.java.ChangeMethodName:
methodPattern: com.tngtech.archunit.core.domain.JavaPackage accept(..)
newMethodName: traversePackageTree
- org.openrewrite.java.ChangePackage:
oldPackageName: com.tngtech.archunit.library.plantuml
newPackageName: com.tngtech.archunit.library.plantuml.rules