Commits
md_5 authored a211660e7ad
88 88 | <groupId>com.jeff-media</groupId> |
89 89 | <artifactId>javafinder</artifactId> |
90 90 | <version>1.4.2</version> |
91 91 | <scope>compile</scope> |
92 92 | </dependency> |
93 93 | </dependencies> |
94 94 | |
95 95 | <build> |
96 96 | <finalName>${project.name}</finalName> |
97 97 | <plugins> |
98 + | <plugin> |
99 + | <groupId>org.apache.maven.plugins</groupId> |
100 + | <artifactId>maven-enforcer-plugin</artifactId> |
101 + | <version>3.4.1</version> |
102 + | <executions> |
103 + | <execution> |
104 + | <goals> |
105 + | <goal>enforce</goal> |
106 + | </goals> |
107 + | <configuration> |
108 + | <rules> |
109 + | <requireJavaVersion> |
110 + | <version>[9,)</version> |
111 + | </requireJavaVersion> |
112 + | </rules> |
113 + | </configuration> |
114 + | </execution> |
115 + | </executions> |
116 + | </plugin> |
98 117 | <plugin> |
99 118 | <groupId>net.md-5</groupId> |
100 119 | <artifactId>scriptus</artifactId> |
101 120 | <version>0.5.0</version> |
102 121 | <configuration> |
103 122 | <format>git-${project.name}-%s-${build.number}</format> |
104 123 | </configuration> |
105 124 | <executions> |
106 125 | <execution> |
107 126 | <phase>initialize</phase> |
150 169 | <filter> |
151 170 | <artifact>com.formdev:flatlaf</artifact> |
152 171 | <includes> |
153 172 | <include>**</include> |
154 173 | </includes> |
155 174 | </filter> |
156 175 | </filters> |
157 176 | <minimizeJar>true</minimizeJar> |
158 177 | </configuration> |
159 178 | </plugin> |
179 + | <plugin> |
180 + | <groupId>com.github.wvengen</groupId> |
181 + | <artifactId>proguard-maven-plugin</artifactId> |
182 + | <version>2.6.0</version> |
183 + | <executions> |
184 + | <execution> |
185 + | <phase>package</phase> |
186 + | <goals> |
187 + | <goal>proguard</goal> |
188 + | </goals> |
189 + | </execution> |
190 + | </executions> |
191 + | <configuration> |
192 + | <includeDependency>false</includeDependency> |
193 + | <obfuscate>false</obfuscate> |
194 + | <options> |
195 + | <option>-dontoptimize</option> |
196 + | <option>-dontwarn</option> |
197 + | <option>-keep class org.spigotmc.** { *; }</option> |
198 + | <option>-keep class com.formdev.flatlaf.** { *; }</option> |
199 + | <option>-keepclassmembers enum * { *; }</option> |
200 + | <option>-libraryjars ${java.home}/jmods(!**.jar;!module-info.class)</option> |
201 + | </options> |
202 + | </configuration> |
203 + | </plugin> |
160 204 | <plugin> |
161 205 | <groupId>org.codehaus.mojo</groupId> |
162 206 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
163 207 | <version>1.23</version> |
164 208 | <executions> |
165 209 | <execution> |
166 210 | <phase>process-classes</phase> |
167 211 | <goals> |
168 212 | <goal>check</goal> |
169 213 | </goals> |