Skip to content

Commit

Permalink
Fixed structure
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesRabauer committed Jan 29, 2024
1 parent fac4956 commit 03364bd
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 45 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

```
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.recipeArtifactCoordinates=software.xdev:spring-data-eclipse-store-migration:1.0-SNAPSHOT \
-Drewrite.recipeArtifactCoordinates=software.xdev:spring-data-eclipse-store-migration:1.0.0-SNAPSHOT \
-Drewrite.activeRecipes=software.xdev.spring.data.eclipse.store.JpaMigration
```

Expand Down
37 changes: 5 additions & 32 deletions spring-data-eclipse-store-migration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@
<artifactId>rewrite-java</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-java-17</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-maven</artifactId>
Expand All @@ -129,47 +124,25 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>software.xdev</groupId>
<artifactId>spring-data-eclipse-store</artifactId>
<version>${software.xdev.spring.data.eclipse.store.version}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<artifactId>rewrite-java-17</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright © 2023 XDEV Software (https://xdev.software)
*
* 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
*
* http://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 software.xdev.spring.data.eclipse.store;

import java.util.Comparator;
Expand All @@ -12,7 +27,6 @@
import org.openrewrite.java.JavaTemplate;
import org.openrewrite.java.tree.J;


public class AddAnnotationToOtherAnnotation extends Recipe
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ tags:
- eclipsestore
recipeList:

- software:
xdev:
spring:
data:
eclipse:
store:
.AddAnnotationToOtherAnnotation:
- software.xdev.spring.data.eclipse.store.AddAnnotationToOtherAnnotation:
existingAnnotationType: 'org.springframework.boot.autoconfigure.SpringBootApplication'
annotationTypeToAdd: 'software.xdev.spring.data.eclipse.store.repository.config.EnableEclipseStoreRepositories'
classPath: 'spring-data-eclipse-store'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
package spring.data.eclipse.store;
/*
* Copyright © 2023 XDEV Software (https://xdev.software)
*
* 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
*
* http://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 software.xdev.spring.data.eclipse.store;

import static org.openrewrite.java.Assertions.java;

Expand All @@ -8,11 +23,10 @@
import org.openrewrite.test.RewriteTest;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import software.xdev.spring.data.eclipse.store.AddAnnotationToOtherAnnotation;
import software.xdev.spring.data.eclipse.store.repository.config.EnableEclipseStoreRepositories;


public class AddEnableEclipseStoreRepositoriesAnnotationTest implements RewriteTest
public class AddAnnotationToOtherAnnotationTest implements RewriteTest
{

@Override
Expand All @@ -30,7 +44,7 @@ public void defaults(final RecipeSpec recipeSpec)
}

@Test
void test()
void testAddingAnnotation()
{
this.rewriteRun
(
Expand Down

0 comments on commit 03364bd

Please sign in to comment.