Skip to content

Commit

Permalink
Update Jakarta EE and JUnit in generated pom.xml
Browse files Browse the repository at this point in the history
see: #336
  • Loading branch information
erdlet committed Aug 31, 2022
1 parent f50d65b commit b59c504
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
27 changes: 4 additions & 23 deletions archetype/src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<name>\${artifactId}</name>

<properties>
<jakartaee-api.version>9.0.0</jakartaee-api.version>
<jakartaee-api.version>${jakartaee-api.version}</jakartaee-api.version>
<krazo.version>${project.version}</krazo.version>
<jakarta.mvc-api.version>${spec.version}</jakarta.mvc-api.version>
<junit.version>4.12</junit.version>
<junit.version>5.9.0</junit.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -45,8 +45,8 @@
#end

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>\${junit.version}</version>
<scope>test</scope>
</dependency>
Expand All @@ -55,7 +55,6 @@
<build>
<finalName>\${artifactId}</finalName>
<plugins>
#if (${javaRelease} != '1.8' || '1.7' || '1.6')
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -71,24 +70,6 @@
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
#else
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>${javaRelease}</source>
<target>${javaRelease}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
#end
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package ${package};

import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertTrue;

/**
* Dummy Test
*/
public class AppTest {

@Test
public void test() {
void test() {
assertTrue(true);
}
}

0 comments on commit b59c504

Please sign in to comment.