Skip to content

Commit

Permalink
Fat jars/Testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Mar 2, 2024
1 parent 12b5248 commit 1f8b727
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 8 deletions.
29 changes: 27 additions & 2 deletions test/jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<main.class>org.meeuw.test.jackson.iso639</main.class>
</properties>


Expand All @@ -26,16 +27,40 @@
</dependency>
</dependencies>
<build>
<defaultGoal>compile exec:java</defaultGoal>
<defaultGoal>package exec:java</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<mainClass>org.meeuw.test.jackson.iso639</mainClass>
<mainClass>${main.class}</mainClass>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${main.class}</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
35 changes: 30 additions & 5 deletions test/simple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
<artifactId>i18n-iso-639-3-test-simple</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<main.class>org.meeuw.test.iso639</main.class>
</properties>


<dependencies>
<dependency>
<groupId>org.meeuw.i18n</groupId>
Expand All @@ -21,15 +22,39 @@
</dependency>
</dependencies>
<build>
<defaultGoal>compile exec:java</defaultGoal>
<defaultGoal>package exec:java</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<mainClass>org.meeuw.test.iso639</mainClass>
<mainClass>${main.class}</mainClass>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${main.class}</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
1 change: 0 additions & 1 deletion test/simple/src/main/java/org/meeuw/test/iso639.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public static void main(String[] args) {
final Predicate<ISO_639_Code> predicate;
if (args[0].equals("-")) {
predicate = c -> true;
ISO_639_Code.stream().forEach(iso639::print);
} else {
Scope scope = Scope.valueOf(args[0]);
predicate = c -> c.scope() == scope;
Expand Down

0 comments on commit 1f8b727

Please sign in to comment.