diff --git a/components/sbm-core/src/main/java/org/springframework/sbm/build/api/SpringManagedDependencies.java b/components/sbm-core/src/main/java/org/springframework/sbm/build/api/SpringManagedDependencies.java index 92f85babe..e24136e6f 100644 --- a/components/sbm-core/src/main/java/org/springframework/sbm/build/api/SpringManagedDependencies.java +++ b/components/sbm-core/src/main/java/org/springframework/sbm/build/api/SpringManagedDependencies.java @@ -1,3 +1,18 @@ +/* + * Copyright 2021 - 2022 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. + */ package org.springframework.sbm.build.api; import org.openrewrite.maven.internal.MavenPomDownloader; diff --git a/components/sbm-core/src/main/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependencies.java b/components/sbm-core/src/main/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependencies.java index b89571d27..162479bcd 100644 --- a/components/sbm-core/src/main/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependencies.java +++ b/components/sbm-core/src/main/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependencies.java @@ -1,3 +1,18 @@ +/* + * Copyright 2021 - 2022 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. + */ package org.springframework.sbm.build.migration.actions; import org.springframework.sbm.build.api.Dependency; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/SpringManagedDependenciesTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/SpringManagedDependenciesTest.java index fd4a28bfa..bb7cab9bd 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/SpringManagedDependenciesTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/SpringManagedDependenciesTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2021 - 2022 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. + */ package org.springframework.sbm.build.api; import org.junit.jupiter.api.Test; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependenciesTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependenciesTest.java index 1146c83b4..ddc96c7b6 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependenciesTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/build/migration/actions/RemoveManagedDependenciesTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2021 - 2022 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. + */ package org.springframework.sbm.build.migration.actions; import org.junit.jupiter.api.Test; diff --git a/components/sbm-recipes-jee-to-boot/src/main/resources/recipes/javax.sql.yaml b/components/sbm-recipes-jee-to-boot/src/main/resources/recipes/javax.sql.yaml deleted file mode 100644 index a65b673ae..000000000 --- a/components/sbm-recipes-jee-to-boot/src/main/resources/recipes/javax.sql.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- name: sql-access-in-java-ee-apps - description: SQL Access in Java EE Apps - - actions: - - type: org.springframework.sbm.engine.recipe.DisplayDescription - condition: - description: 'Any class has import starting with javax.sql ' - type: org.springframework.sbm.java.migration.conditions.HasImportStartingWith - value: javax.sql - name: SQL Access in Java EE Apps - description: |- - - Synopsis - ======== - - The scan found imports starting with 'javax.sql' which indicates the usage of JDBC in a Java EE application. - - Problem - ======= - - You are migrating a Java EE application that uses JDBC (raw SQL access) to Spring Boot. - - Solution - ======== - - Classes from javax.sql work in Spring Boot with no changes necessary. - However, the way connections are acquired and configured is different in Spring apps. - - For further information and help see these cookboook recipes: - - - SQL Access in Java EE Apps - https://appmod-cookbook.apps.pcfone.io/spring-bootify/sql/ \ No newline at end of file