1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
12<project xmlns =" http://maven.apache.org/POM/4.0.0"
23 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0
4- http://maven.apache.org/xsd/maven-4.0.0.xsd " >
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd " >
5+
56 <modelVersion >4.0.0</modelVersion >
67
78 <groupId >com.mycmd</groupId >
8- <artifactId >MyCMD</artifactId >
9- <version >1.0</version >
10- <packaging >jar</packaging >
11-
12- <name >MyCMD</name >
13- <description >A custom CMD shell written in Java</description >
9+ <artifactId >MyCMD-GUI</artifactId >
10+ <version >1.0.0</version >
11+ <name >MyCMD-GUI</name >
12+ <description >Dark futuristic JavaFX shell for MyCMD</description >
1413
1514 <properties >
15+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1616 <maven .compiler.source>17</maven .compiler.source>
1717 <maven .compiler.target>17</maven .compiler.target>
18+ <javafx .version>21</javafx .version>
1819 </properties >
1920
2021 <dependencies >
22+ <!-- JavaFX -->
2123 <dependency >
22- <groupId >org.projectlombok</groupId >
23- <artifactId >lombok</artifactId >
24- <version >1.18.42</version >
25- <scope >provided</scope >
24+ <groupId >org.openjfx</groupId >
25+ <artifactId >javafx-controls</artifactId >
26+ <version >${javafx.version} </version >
27+ </dependency >
28+ <dependency >
29+ <groupId >org.openjfx</groupId >
30+ <artifactId >javafx-fxml</artifactId >
31+ <version >${javafx.version} </version >
2632 </dependency >
2733 </dependencies >
34+
2835 <build >
2936 <plugins >
37+ <!-- Compiler -->
3038 <plugin >
3139 <groupId >org.apache.maven.plugins</groupId >
3240 <artifactId >maven-compiler-plugin</artifactId >
33- <version >3.14 .1</version >
41+ <version >3.10 .1</version >
3442 <configuration >
3543 <source >${maven.compiler.source} </source >
3644 <target >${maven.compiler.target} </target >
37- <annotationProcessorPaths >
38- <path >
39- <groupId >org.projectlombok</groupId >
40- <artifactId >lombok</artifactId >
41- <version >1.18.42</version >
42- </path >
43- </annotationProcessorPaths >
4445 </configuration >
4546 </plugin >
46-
47+
48+ <!-- JavaFX Plugin -->
4749 <plugin >
48- <groupId >org.apache.maven.plugins </groupId >
49- <artifactId >maven-jar -plugin</artifactId >
50- <version >3.4.2 </version >
50+ <groupId >org.openjfx </groupId >
51+ <artifactId >javafx-maven -plugin</artifactId >
52+ <version >${javafx.version} </version >
5153 <configuration >
52- <archive >
53- <manifest >
54- <mainClass >com.mycmd.App</mainClass >
55- </manifest >
56- </archive >
54+ <mainClass >com.mycmd.gui.MainApp</mainClass >
5755 </configuration >
5856 </plugin >
5957
60- <!-- Spotless code formatter -->
6158 <plugin >
62- <groupId >com.diffplug.spotless</groupId >
63- <artifactId >spotless-maven-plugin</artifactId >
64- <version >3.0.0</version >
65- <configuration >
66- <java >
67- <googleJavaFormat >
68- <version >1.17.0</version >
69- <style >AOSP</style >
70- </googleJavaFormat >
71- </java >
72- </configuration >
59+ <groupId >org.apache.maven.plugins</groupId >
60+ <artifactId >maven-shade-plugin</artifactId >
61+ <version >3.3.0</version >
62+ <executions >
63+ <execution >
64+ <phase >package</phase >
65+ <goals >
66+ <goal >shade</goal >
67+ </goals >
68+ <configuration >
69+ <transformers >
70+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
71+ <mainClass >com.mycmd.gui.MainApp</mainClass >
72+ </transformer >
73+ </transformers >
74+ </configuration >
75+ </execution >
76+ </executions >
7377 </plugin >
7478 </plugins >
7579 </build >
76- </project >
80+ </project >
0 commit comments