Skip to content

Commit 9c564c4

Browse files
committed
Refactor project: remove JavaFX dependencies, replace with JDBC and MySQL configurations. Adjusted .gitignore and updated pom.xml dependencies.
1 parent 998d1fb commit 9c564c4

File tree

8 files changed

+23
-106
lines changed

8 files changed

+23
-106
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target/
22
/.idea/
3+
*.iml

pom.xml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.example</groupId>
8-
<artifactId>javafx</artifactId>
8+
<artifactId>jdbc</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

1111
<properties>
1212
<maven.compiler.release>25</maven.compiler.release>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14-
<junit.jupiter.version>6.0.0</junit.jupiter.version>
14+
<junit.jupiter.version>6.0.1</junit.jupiter.version>
1515
<assertj.core.version>3.27.6</assertj.core.version>
1616
<mockito.version>5.20.0</mockito.version>
17-
<javafx.version>25</javafx.version>
1817
</properties>
1918
<dependencies>
19+
<dependency>
20+
<groupId>com.mysql</groupId>
21+
<artifactId>mysql-connector-j</artifactId>
22+
<version>9.5.0</version>
23+
<scope>runtime</scope>
24+
</dependency>
2025
<dependency>
2126
<groupId>org.junit.jupiter</groupId>
2227
<artifactId>junit-jupiter</artifactId>
@@ -36,33 +41,15 @@
3641
<scope>test</scope>
3742
</dependency>
3843
<dependency>
39-
<groupId>org.openjfx</groupId>
40-
<artifactId>javafx-controls</artifactId>
41-
<version>${javafx.version}</version>
44+
<groupId>org.testcontainers</groupId>
45+
<artifactId>junit-jupiter</artifactId>
46+
<version>1.21.3</version>
4247
</dependency>
4348
<dependency>
44-
<groupId>org.openjfx</groupId>
45-
<artifactId>javafx-fxml</artifactId>
46-
<version>${javafx.version}</version>
49+
<groupId>org.testcontainers</groupId>
50+
<artifactId>mysql</artifactId>
51+
<version>1.21.3</version>
52+
<scope>test</scope>
4753
</dependency>
4854
</dependencies>
49-
<build>
50-
<plugins>
51-
<plugin>
52-
<groupId>org.openjfx</groupId>
53-
<artifactId>javafx-maven-plugin</artifactId>
54-
<version>0.0.8</version>
55-
<configuration>
56-
<mainClass>com.example.HelloFX</mainClass>
57-
<options>
58-
<option>--enable-native-access=javafx.graphics</option>
59-
</options>
60-
<launcher>javafx</launcher>
61-
<stripDebug>true</stripDebug>
62-
<noHeaderFiles>true</noHeaderFiles>
63-
<noManPages>true</noManPages>
64-
</configuration>
65-
</plugin>
66-
</plugins>
67-
</build>
6855
</project>

src/main/java/com/example/HelloController.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/main/java/com/example/HelloFX.java

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/main/java/com/example/HelloModel.java

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.example;
2+
3+
public class Main {
4+
static void main() {
5+
6+
}
7+
}

src/main/java/module-info.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/main/resources/com/example/hello-view.fxml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)