Skip to content

Latest commit

 

History

History
61 lines (54 loc) · 1.93 KB

File metadata and controls

61 lines (54 loc) · 1.93 KB

Rule: Migrate the Spring Boot parent pom to the Quarkus BOM

Instructions

Instruction Command (if applicable) Effort
Replace the Spring Boot plugin with the Quarkus plugin. Manual edit or tool Low
Verify pom.xml syntax and structure mvn validate Low

Additional information

Spring Boot plugin (BEFORE)

<!-- Remove the Spring Boot plugin -->
<build>
    <plugins>
        <plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugin>
    </plugins>
</build>

Quarkus plugin (AFTER)

<!-- Add the Quarkus Maven plugin -->
<build>
    <plugins>
        <plugin>
            <groupId>io.quarkus.platform</groupId>
            <artifactId>quarkus-maven-plugin</artifactId>
            <version>${quarkus.platform.version}</version>
            <extensions>true</extensions>
            <executions>
                <execution>
                    <goals>
                        <goal>build</goal>
                        <goal>generate-code</goal>
                        <goal>generate-code-tests</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>