13
13
import java .util .List ;
14
14
import java .util .Map ;
15
15
import java .util .Objects ;
16
+ import java .util .Set ;
16
17
import java .util .stream .Collectors ;
17
18
18
19
import io .quarkus .bootstrap .model .ApplicationModel ;
@@ -70,6 +71,14 @@ public QuarkusCommandOutcome execute(QuarkusCommandInvocation invocation) throws
70
71
logUpdates (currentState , latestCatalog , false , perModule , invocation .getQuarkusProject ().log ());
71
72
72
73
if (generateRewriteConfig ) {
74
+ Set <String > additionalSourceFiles = Set .of ("**/META-INF/services/**" ,
75
+ "**/*.txt" ,
76
+ "**/*.adoc" ,
77
+ "**/*.md" ,
78
+ "**/src/main/codestarts/**/*.java" ,
79
+ "**/src/test/resources/__snapshots__/**/*.java" ,
80
+ "**/*.kt" );
81
+
73
82
QuarkusUpdates .ProjectUpdateRequest request = new QuarkusUpdates .ProjectUpdateRequest (
74
83
projectQuarkusPlatformBom .getVersion (), targetPlatformVersion );
75
84
try {
@@ -78,11 +87,15 @@ public QuarkusCommandOutcome execute(QuarkusCommandInvocation invocation) throws
78
87
QuarkusProjectHelper .artifactResolver (), request );
79
88
invocation .log ().info ("Project update recipe has been created:\n %s" , tempFile .toString ());
80
89
81
- invocation .log ().info ("The command to update this project: \n " +
82
- "mvn org.openrewrite.maven:rewrite-maven-plugin:4.39.0:run \\ \n " +
83
- " -Drewrite.configLocation=%s \\ \n " +
84
- " -DactiveRecipes=%s -e" ,
85
- tempFile .toString (), RECIPE_IO_QUARKUS_OPENREWRITE_QUARKUS );
90
+ invocation .log ().info ("The commands to update this project: \n " +
91
+ "./mvnw -e org.openrewrite.maven:rewrite-maven-plugin:4.39.0:run \\ \n " +
92
+ " -D\" rewrite.configLocation=%s\" \\ \n " +
93
+ " -D\" activeRecipes=%s\" \\ \n " +
94
+ " -D\" plainTextMasks=%s\" \\ \n " +
95
+ " -D\" rewrite.pomCacheEnabled=false\" \n " +
96
+ "./mvnw process-sources" ,
97
+ tempFile .toString (), RECIPE_IO_QUARKUS_OPENREWRITE_QUARKUS ,
98
+ String .join ("," , additionalSourceFiles ));
86
99
87
100
} catch (IOException e ) {
88
101
throw new QuarkusCommandException ("Failed to create project update recipe" , e );
0 commit comments