Skip to content

Commit

Permalink
added javafx-maven-plugin to all projects, closes AlmasB#19
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Jul 15, 2021
1 parent 311b8bb commit 5c58d37
Show file tree
Hide file tree
Showing 25 changed files with 255 additions and 423 deletions.
35 changes: 15 additions & 20 deletions Asteroids/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<!-- plugins -->
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.shade.version>3.0.0</maven.shade.version>

<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<fxgl.version>11.14</fxgl.version>
<mainClassName>com.almasb.fxglgames.AsteroidsApp</mainClassName>
</properties>

<dependencies>
Expand All @@ -39,25 +40,19 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.almasb.fxglgames.AsteroidsApp</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${jfx.maven.plugin.version}</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>Start-game</launcher>
<jlinkImageName>game</jlinkImageName>
<jlinkZipName>asteroid-game</jlinkZipName>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
35 changes: 15 additions & 20 deletions BattleTanks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<!-- plugins -->
<maven.compiler.version>3.8.0</maven.compiler.version>
<maven.shade.version>3.0.0</maven.shade.version>

<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<fxgl.version>dev-SNAPSHOT</fxgl.version>
<mainClassName>com.almasb.fxglgames.tanks.BattleTanksApp</mainClassName>
</properties>

<dependencies>
Expand Down Expand Up @@ -45,25 +46,19 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.almasb.fxglgames.tanks.BattleTanksApp</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${jfx.maven.plugin.version}</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>Start-game</launcher>
<jlinkImageName>game</jlinkImageName>
<jlinkZipName>tanks-game</jlinkZipName>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
35 changes: 15 additions & 20 deletions Bomberman/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<!-- plugins -->
<maven.compiler.version>3.8.0</maven.compiler.version>
<maven.shade.version>3.0.0</maven.shade.version>

<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<fxgl.version>dev-SNAPSHOT</fxgl.version>
<mainClassName>com.almasb.fxglgames.bomberman.BombermanApp</mainClassName>
</properties>

<dependencies>
Expand Down Expand Up @@ -45,25 +46,19 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.almasb.fxglgames.bomberman.BombermanApp</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${jfx.maven.plugin.version}</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>Start-game</launcher>
<jlinkImageName>game</jlinkImageName>
<jlinkZipName>bomberman-game</jlinkZipName>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
26 changes: 2 additions & 24 deletions Breakout/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<maven.shade.version>3.0.0</maven.shade.version>

<fxgl.version>dev-SNAPSHOT</fxgl.version>
<jfx.maven.plugin.version>0.0.4</jfx.maven.plugin.version>
<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<client.plugin.version>0.1.35</client.plugin.version>
<attach.version>4.0.9</attach.version>
<mainClassName>com.almasb.fxglgames.breakout.BreakoutApp</mainClassName>
<mainClassName>breakout.main/com.almasb.fxglgames.breakout.BreakoutApp</mainClassName>
</properties>

<dependencies>
Expand Down Expand Up @@ -87,28 +87,6 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.almasb.fxglgames.breakout.BreakoutApp</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
Expand Down
35 changes: 15 additions & 20 deletions Cannon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<!-- plugins -->
<maven.compiler.version>3.8.0</maven.compiler.version>
<maven.shade.version>3.0.0</maven.shade.version>

<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<fxgl.version>dev-SNAPSHOT</fxgl.version>
<mainClassName>com.almasb.fxglgames.cannon.CannonApp</mainClassName>
</properties>

<dependencies>
Expand Down Expand Up @@ -46,25 +47,19 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.almasb.fxglgames.cannon.CannonApp</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${jfx.maven.plugin.version}</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>Start-game</launcher>
<jlinkImageName>game</jlinkImageName>
<jlinkZipName>cannon-game</jlinkZipName>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
35 changes: 15 additions & 20 deletions CrystalChase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<!-- plugins -->
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.shade.version>3.0.0</maven.shade.version>

<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<fxgl.version>11.16</fxgl.version>
<mainClassName>com.almasb.fxglgames.cc.CrystalApp</mainClassName>
</properties>

<repositories>
Expand Down Expand Up @@ -46,25 +47,19 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.almasb.fxglgames.cc.CrystalApp</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${jfx.maven.plugin.version}</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>Start-game</launcher>
<jlinkImageName>game</jlinkImageName>
<jlinkZipName>crystal-game</jlinkZipName>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion Drop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<maven.shade.version>3.0.0</maven.shade.version>

<fxgl.version>11.15</fxgl.version>
<jfx.maven.plugin.version>0.0.4</jfx.maven.plugin.version>
<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<client.plugin.version>0.1.35</client.plugin.version>
<attach.version>4.0.8</attach.version>
<mainClassName>com.almasb.fxglgames.drop.DropApp</mainClassName>
Expand Down
35 changes: 15 additions & 20 deletions FlappyBird/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<!-- plugins -->
<maven.compiler.version>3.8.0</maven.compiler.version>
<maven.shade.version>3.0.0</maven.shade.version>

<jfx.maven.plugin.version>0.0.6</jfx.maven.plugin.version>
<fxgl.version>dev-SNAPSHOT</fxgl.version>
<mainClassName>com.almasb.fxglgames.flappy.FlappyBirdApp</mainClassName>
</properties>

<dependencies>
Expand Down Expand Up @@ -45,25 +46,19 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.almasb.fxglgames.flappy.FlappyBirdApp</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${jfx.maven.plugin.version}</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>Start-game</launcher>
<jlinkImageName>game</jlinkImageName>
<jlinkZipName>flappybirds-game</jlinkZipName>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Loading

0 comments on commit 5c58d37

Please sign in to comment.