InditexTech Karate Tools

Karate Tools Migration Guide

Karate Tools Migration to 6.1.0

To migrate to 6.1.0, update the Karate Tools version property:

  • pom.xml:

    • <karatetools.version>6.1.0</karatetools.version>

  • If your project extends or integrates the karatetools-boot module:

    • Update Spring Boot from 3.5.14 to 4.1.1.

    • Update Spring Framework from 6.2.x to 7.0.9.

    • Replace spring-boot-starter-web with spring-boot-starter-webmvc.

    • Update moved Spring Boot imports:

      • org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration to org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration

      • org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc to org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc

    • Run your Spring Boot integration tests after the update.

  • If your OpenAPI integration directly uses JAX-RS APIs from the Karate Tools dependency graph:

    • Replace javax.ws.rs. imports with jakarta.ws.rs..

    • Update swagger-inflector from 2.0.17 to 3.0.2 if your project declares it explicitly.

  • If your application directly uses JMS APIs from the Karate Tools clients:

    • Replace javax.jms. imports and types with jakarta.jms..

    • If you declare the ActiveMQ Artemis dependency directly, replace org.apache.activemq:artemis-jms-client with org.apache.activemq:artemis-jakarta-client.

    • If you manage the RabbitMQ JMS client version directly, update it to 3.x; Karate Tools uses 3.9.0, which supports Jakarta Messaging 3.0.

Karate Tools Migration to 6.0.0 - JDK 25

To migrate to 6.0.0, the following changes must be applied:

  • .tool-versions:

    • maven 3.9.4 to maven 3.9.14

    • java temurin-21.0.4+7.0.LTS to java temurin-25.0.3+9.0.LTS

  • pom.xml:

    • Update java version properties:

      • <maven.compiler.source>25</maven.compiler.source>

      • <maven.compiler.target>25</maven.compiler.target>

      • <java.version>25</java.version>

    • Update karate-tools version property:

      • <karatetools.version>6.0.0</karatetools.version>

    • Update testing plugins version properties:

      • <maven-surefire-plugin.version>3.5.6</maven-surefire-plugin.version>

      • <maven-surefire-report-plugin.version>3.5.6</maven-surefire-report-plugin.version>

    • Update build plugins version properties:

      • <maven-dependency-plugin.version>3.11.0</maven-dependency-plugin.version>

      • <exec-maven-plugin.version>3.6.3</exec-maven-plugin.version>

      • <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version>

    • Add the following property and plugin configuration to the pom.xml:

      <properties>
        ...
        <!-- Maven Enforcer Plugin -->
        <maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version>
      </properties>
      
      <build>
        <plugins>
          ...
          <!-- Maven Enforcer Plugin -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-enforcer-plugin</artifactId>
            <version>${maven-enforcer-plugin.version}</version>
            <executions>
              <execution>
                <id>enforce-versions</id>
                <phase>validate</phase>
                <goals>
                  <goal>enforce</goal>
                </goals>
                <configuration>
                  <rules>
                    <requireMavenVersion>
                      <version>[3.9.14]</version>
                    </requireMavenVersion>
                    <requireJavaVersion>
                      <version>[25,26)</version>
                    </requireJavaVersion>
                  </rules>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>