Skip to content

Commit

Permalink
Add build plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdebruin committed Oct 31, 2024
1 parent f928f2e commit e9e17e1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/test/java/org/openrewrite/maven/RewriteRunIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ void multi_source_sets_project(MavenExecutionResult result) {
.isSuccessful()
.out()
.warn()
.contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT//multi_source_sets_project/project/src/integration-test/java/sample/AnotherCoolTest.java")
.contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT//multi_source_sets_project/project/src/other/java/sample/SimplifyBooleanSample.java")
.contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT//multi_source_sets_project/project/src/other/java/sample/CoolTest.java");
.contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/project/src/integration-test/java/sample/AnotherCoolTest.java")
.contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/project/src/other/java/sample/SimplifyBooleanSample.java")
.contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/project/src/test/java/sample/CoolTest.java");
}

@MavenTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,38 @@
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>add sources</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/other/java</source>
</sources>
</configuration>
</execution>
<execution>
<id>add integration test sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/integration-test/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package sample;


import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertFalse;
Expand Down

0 comments on commit e9e17e1

Please sign in to comment.