|
8 | 8 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
9 | 9 | <maven.compiler.source>13</maven.compiler.source> |
10 | 10 | <maven.compiler.target>13</maven.compiler.target> |
| 11 | + <javafx.version>13.0.1</javafx.version> |
11 | 12 | </properties> |
12 | 13 | <dependencies> |
13 | 14 | <dependency> |
14 | 15 | <groupId>org.openjfx</groupId> |
15 | 16 | <artifactId>javafx-controls</artifactId> |
16 | | - <version>13.0.1</version> |
| 17 | + <version>${javafx.version}</version> |
17 | 18 | </dependency> |
18 | 19 | <dependency> |
19 | 20 | <groupId>org.openjfx</groupId> |
20 | 21 | <artifactId>javafx-fxml</artifactId> |
21 | | - <version>13.0.1</version> |
| 22 | + <version>${javafx.version}</version> |
| 23 | + </dependency> |
| 24 | + <!-- https://mvnrepository.com/artifact/commons-codec/commons-codec --> |
| 25 | + <dependency> |
| 26 | + <groupId>commons-codec</groupId> |
| 27 | + <artifactId>commons-codec</artifactId> |
| 28 | + <version>1.13</version> |
| 29 | + </dependency> |
| 30 | + |
| 31 | + <!-- Uncomment for cross-platform fat jar--> |
| 32 | + <dependency> |
| 33 | + <groupId>org.openjfx</groupId> |
| 34 | + <artifactId>javafx-graphics</artifactId> |
| 35 | + <version>${javafx.version}</version> |
| 36 | + <classifier>win</classifier> |
| 37 | + </dependency> |
| 38 | + <dependency> |
| 39 | + <groupId>org.openjfx</groupId> |
| 40 | + <artifactId>javafx-graphics</artifactId> |
| 41 | + <version>${javafx.version}</version> |
| 42 | + <classifier>linux</classifier> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>org.openjfx</groupId> |
| 46 | + <artifactId>javafx-graphics</artifactId> |
| 47 | + <version>${javafx.version}</version> |
| 48 | + <classifier>mac</classifier> |
22 | 49 | </dependency> |
23 | 50 | </dependencies> |
24 | 51 | <build> |
|
36 | 63 | <artifactId>javafx-maven-plugin</artifactId> |
37 | 64 | <version>0.0.3</version> |
38 | 65 | <configuration> |
39 | | - <stripDebug>true</stripDebug> |
40 | | - <compress>2</compress> |
41 | | - <noHeaderFiles>true</noHeaderFiles> |
42 | | - <noManPages>true</noManPages> |
43 | | - <launcher>dotmatrix</launcher> |
44 | | - <jlinkImageName>dotmatrix</jlinkImageName> |
45 | | - <jlinkZipName>dotmatrix.zip</jlinkZipName> |
46 | 66 | <mainClass>ee.ant.dotmatrix.App</mainClass> |
47 | 67 | </configuration> |
48 | 68 | </plugin> |
| 69 | + <plugin> |
| 70 | + <groupId>org.apache.maven.plugins</groupId> |
| 71 | + <artifactId>maven-shade-plugin</artifactId> |
| 72 | + <version>3.2.0</version> |
| 73 | + <executions> |
| 74 | + <execution> |
| 75 | + <phase>package</phase> |
| 76 | + <goals> |
| 77 | + <goal>shade</goal> |
| 78 | + </goals> |
| 79 | + <configuration> |
| 80 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 81 | + <shadedClassifierName>project-classifier</shadedClassifierName> |
| 82 | + <outputFile>shade\${project.artifactId}.jar</outputFile> |
| 83 | + <transformers> |
| 84 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 85 | + <mainClass>ee.ant.dotmatrix.Launcher</mainClass> |
| 86 | + </transformer> |
| 87 | + </transformers> |
| 88 | + </configuration> |
| 89 | + </execution> |
| 90 | + </executions> |
| 91 | + </plugin> |
49 | 92 | </plugins> |
50 | 93 | </build> |
51 | 94 | </project> |
0 commit comments