Skip to content

Commit

Permalink
WICKET-7072 Move AbstractLicenseHeaderTestCase from wicket-util src/m…
Browse files Browse the repository at this point in the history
…ain to src/test

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Sep 19, 2023
1 parent 4e74e3a commit cee5d19
Show file tree
Hide file tree
Showing 33 changed files with 82 additions and 2 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,12 @@
<version>10.0.0-M2-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<version>10.0.0-M2-SNAPSHOT</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-velocity</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void collectProjectPackages() throws IOException
for (String dependency : dependencies)
{
// process only wicket-xyz.jar
if (dependency.contains("wicket-") && dependency.endsWith(".jar"))
if (dependency.contains("wicket-") && dependency.endsWith(".jar") && !dependency.endsWith("-tests.jar"))
{
JarFile jarFile = new JarFile(dependency);
try
Expand Down
5 changes: 5 additions & 0 deletions wicket-auth-roles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions wicket-bean-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions wicket-cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<osgi.import.package>!java*,!kotlin*,!sun.nio.ch,org.slf4j*;version="[1.7,3)",*</osgi.import.package>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions wicket-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ org.apache.wicket.validation.validator;-noimport:=true
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions wicket-devutils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-extensions</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions wicket-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-velocity</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.codelibs</groupId>
<artifactId>jhighlight</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions wicket-experimental/wicket-metrics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,10 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions wicket-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
5 changes: 5 additions & 0 deletions wicket-guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,10 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-ioc</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions wicket-ioc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
<artifactId>wicket-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions wicket-jmx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions wicket-request/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-util</artifactId>
<type>test-jar</type>
</dependency>
</dependencies>
</project>
15 changes: 15 additions & 0 deletions wicket-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,19 @@
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
1 change: 0 additions & 1 deletion wicket-util/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
exports org.apache.wicket.util.file;
exports org.apache.wicket.util.io;
exports org.apache.wicket.util.lang;
exports org.apache.wicket.util.license;
exports org.apache.wicket.util.listener;
exports org.apache.wicket.util.markup.xhtml;
exports org.apache.wicket.util.parse.metapattern;
Expand Down

0 comments on commit cee5d19

Please sign in to comment.