|
6 | 6 |
|
7 | 7 | <groupId>org.example</groupId>
|
8 | 8 | <artifactId>demo-java-swing</artifactId>
|
9 |
| - <version>1.0-SNAPSHOT</version> |
| 9 | + <version>1.0.1</version> |
10 | 10 |
|
11 | 11 | <name>demo-java-swing</name>
|
12 | 12 | <url>https://djvelimir.github.io</url>
|
|
19 | 19 |
|
20 | 20 | <dependencies>
|
21 | 21 | <dependency>
|
22 |
| - <groupId>junit</groupId> |
23 |
| - <artifactId>junit</artifactId> |
24 |
| - <version>4.13.2</version> |
| 22 | + <groupId>org.junit.jupiter</groupId> |
| 23 | + <artifactId>junit-jupiter-api</artifactId> |
| 24 | + <version>5.11.4</version> |
| 25 | + <scope>test</scope> |
| 26 | + </dependency> |
| 27 | + <dependency> |
| 28 | + <groupId>org.junit.jupiter</groupId> |
| 29 | + <artifactId>junit-jupiter-engine</artifactId> |
| 30 | + <version>5.11.4</version> |
| 31 | + <scope>test</scope> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>org.mockito</groupId> |
| 35 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 36 | + <version>5.14.2</version> |
| 37 | + <scope>test</scope> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>org.mockito</groupId> |
| 41 | + <artifactId>mockito-core</artifactId> |
| 42 | + <version>5.14.2</version> |
| 43 | + <scope>test</scope> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>net.bytebuddy</groupId> |
| 47 | + <artifactId>byte-buddy-agent</artifactId> |
| 48 | + <version>1.15.4</version> |
25 | 49 | <scope>test</scope>
|
26 | 50 | </dependency>
|
27 | 51 | <dependency>
|
|
37 | 61 | <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
|
38 | 62 | <plugin>
|
39 | 63 | <artifactId>maven-clean-plugin</artifactId>
|
40 |
| - <version>3.1.0</version> |
| 64 | + <version>3.4.0</version> |
41 | 65 | </plugin>
|
42 | 66 | <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
|
43 | 67 | <plugin>
|
44 | 68 | <artifactId>maven-resources-plugin</artifactId>
|
45 |
| - <version>3.0.2</version> |
| 69 | + <version>3.3.1</version> |
46 | 70 | </plugin>
|
47 | 71 | <plugin>
|
48 | 72 | <artifactId>maven-compiler-plugin</artifactId>
|
49 |
| - <version>3.8.0</version> |
| 73 | + <version>3.13.0</version> |
50 | 74 | </plugin>
|
51 | 75 | <plugin>
|
52 | 76 | <artifactId>maven-surefire-plugin</artifactId>
|
53 |
| - <version>2.22.1</version> |
| 77 | + <version>3.5.1</version> |
54 | 78 | </plugin>
|
55 | 79 | <plugin>
|
56 | 80 | <artifactId>maven-jar-plugin</artifactId>
|
57 |
| - <version>3.0.2</version> |
58 |
| - <configuration> |
59 |
| - <archive> |
60 |
| - <manifest> |
61 |
| - <mainClass>org.example.AppImpl</mainClass> |
62 |
| - </manifest> |
63 |
| - </archive> |
64 |
| - </configuration> |
| 81 | + <version>3.4.2</version> |
| 82 | + </plugin> |
| 83 | + <plugin> |
| 84 | + <artifactId>maven-dependency-plugin</artifactId> |
| 85 | + <version>3.7.0</version> |
65 | 86 | </plugin>
|
66 | 87 | <plugin>
|
67 | 88 | <artifactId>maven-install-plugin</artifactId>
|
68 |
| - <version>2.5.2</version> |
| 89 | + <version>3.1.2</version> |
69 | 90 | </plugin>
|
70 | 91 | <plugin>
|
71 | 92 | <artifactId>maven-deploy-plugin</artifactId>
|
72 |
| - <version>2.8.2</version> |
| 93 | + <version>3.1.2</version> |
73 | 94 | </plugin>
|
74 | 95 | <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
|
75 | 96 | <plugin>
|
76 | 97 | <artifactId>maven-site-plugin</artifactId>
|
77 |
| - <version>3.7.1</version> |
| 98 | + <version>3.20.0</version> |
78 | 99 | </plugin>
|
79 | 100 | <plugin>
|
80 | 101 | <artifactId>maven-project-info-reports-plugin</artifactId>
|
81 |
| - <version>3.0.0</version> |
| 102 | + <version>3.6.2</version> |
82 | 103 | </plugin>
|
83 | 104 | </plugins>
|
84 | 105 | </pluginManagement>
|
| 106 | + <plugins> |
| 107 | + <plugin> |
| 108 | + <groupId>org.apache.maven.plugins</groupId> |
| 109 | + <artifactId>maven-surefire-plugin</artifactId> |
| 110 | + <configuration> |
| 111 | + <argLine>-javaagent:${settings.localRepository}/net/bytebuddy/byte-buddy-agent/1.15.4/byte-buddy-agent-1.15.4.jar</argLine> |
| 112 | + </configuration> |
| 113 | + </plugin> |
| 114 | + <plugin> |
| 115 | + <groupId>org.apache.maven.plugins</groupId> |
| 116 | + <artifactId>maven-jar-plugin</artifactId> |
| 117 | + <configuration> |
| 118 | + <archive> |
| 119 | + <manifest> |
| 120 | + <addClasspath>true</addClasspath> |
| 121 | + <classpathPrefix>lib/</classpathPrefix> |
| 122 | + <mainClass>org.example.AppImpl</mainClass> |
| 123 | + </manifest> |
| 124 | + </archive> |
| 125 | + </configuration> |
| 126 | + </plugin> |
| 127 | + <plugin> |
| 128 | + <groupId>org.apache.maven.plugins</groupId> |
| 129 | + <artifactId>maven-dependency-plugin</artifactId> |
| 130 | + <executions> |
| 131 | + <execution> |
| 132 | + <id>copy-libs</id> |
| 133 | + <phase>package</phase> |
| 134 | + <goals> |
| 135 | + <goal>copy-dependencies</goal> |
| 136 | + </goals> |
| 137 | + <configuration> |
| 138 | + <includeScope>runtime</includeScope> |
| 139 | + <overWriteReleases>false</overWriteReleases> |
| 140 | + <overWriteSnapshots>true</overWriteSnapshots> |
| 141 | + <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| 142 | + </configuration> |
| 143 | + </execution> |
| 144 | + </executions> |
| 145 | + </plugin> |
| 146 | + </plugins> |
85 | 147 | </build>
|
86 | 148 | </project>
|
0 commit comments