Skip to content

Commit 4a571ee

Browse files
committed
make sure the rhino test stuff is handled as test stuff
1 parent 29eae51 commit 4a571ee

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

pom.xml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>org.htmlunit</groupId>
66
<artifactId>htmlunit-core-js</artifactId>
7-
<version>4.11.0</version>
7+
<version>4.12.0-SNAPSHOT</version>
88
<name>HtmlUnit JavaScript Engine</name>
99
<organization>
1010
<name>HtmlUnit</name>
@@ -20,8 +20,13 @@
2020
<maven.compiler.source>8</maven.compiler.source>
2121
<maven.compiler.target>8</maven.compiler.target>
2222

23+
<!-- test dependencies -->
24+
<junit.version>5.12.2</junit.version>
25+
26+
<!-- quality -->
2327
<dependencycheck.version>10.0.4</dependencycheck.version>
2428
</properties>
29+
2530
<build>
2631
<resources>
2732
<resource>
@@ -35,13 +40,25 @@
3540
<version>3.6.0</version>
3641
<executions>
3742
<execution>
43+
<id>generate-rhino-sources</id>
3844
<phase>generate-sources</phase>
3945
<goals>
4046
<goal>add-source</goal>
4147
</goals>
4248
<configuration>
4349
<sources>
4450
<source>src/repackaged-rhino/java</source>
51+
</sources>
52+
</configuration>
53+
</execution>
54+
<execution>
55+
<id>generate-rhino-test-sources</id>
56+
<phase>generate-test-sources</phase>
57+
<goals>
58+
<goal>add-test-source</goal>
59+
</goals>
60+
<configuration>
61+
<sources>
4562
<source>src/repackaged-rhino-test/java</source>
4663
</sources>
4764
</configuration>
@@ -544,14 +561,20 @@
544561
<dependency>
545562
<groupId>org.junit.jupiter</groupId>
546563
<artifactId>junit-jupiter-engine</artifactId>
547-
<version>5.12.0</version>
564+
<version>${junit.version}</version>
548565
<scope>test</scope>
549566
</dependency>
550567
<!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API -->
551568
<dependency>
552569
<groupId>org.junit.vintage</groupId>
553570
<artifactId>junit-vintage-engine</artifactId>
554-
<version>5.12.0</version>
571+
<version>${junit.version}</version>
572+
<scope>test</scope>
573+
</dependency>
574+
<dependency>
575+
<groupId>org.junit.platform</groupId>
576+
<artifactId>junit-platform-launcher</artifactId>
577+
<version>1.12.2</version>
555578
<scope>test</scope>
556579
</dependency>
557580
</dependencies>

0 commit comments

Comments
 (0)