Skip to content

Commit 97ddb01

Browse files
Fix JLabel issue
1 parent 04e00e3 commit 97ddb01

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

pom.xml

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,25 @@
6060
<profiles>
6161
<profile>
6262
<id>debug</id>
63+
<activation>
64+
<property>
65+
<name>idea.maven.embedder.version</name>
66+
</property>
67+
</activation>
68+
<build>
69+
<plugins>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-compiler-plugin</artifactId>
73+
<configuration>
74+
<release>16</release>
75+
<compilerArgs>
76+
<arg>--enable-preview</arg>
77+
</compilerArgs>
78+
</configuration>
79+
</plugin>
80+
</plugins>
81+
</build>
6382
<properties>
6483
<mvn.build.ver>${pluginver}-SNAPSHOT</mvn.build.ver>
6584
<!-- Disable signature in local env, deploy phrase never will running in local env -->
@@ -103,11 +122,15 @@
103122
<artifactId>maven-compiler-plugin</artifactId>
104123
<version>3.8.1</version>
105124
<configuration>
106-
<source>1.8</source>
107-
<target>1.8</target>
125+
<release>8</release>
126+
<source>16</source>
127+
<target>16</target>
108128
<encoding>UTF-8</encoding>
109129
<!--Use this comments args when compiler is NullPointerException-->
110130
<!--<forceJavacCompilerUse>true</forceJavacCompilerUse>-->
131+
<compilerArgs>
132+
<arg>-Xplugin:jabel</arg>
133+
</compilerArgs>
111134
</configuration>
112135
</plugin>
113136
<plugin>
@@ -948,5 +971,33 @@
948971
<systemPath>${project.basedir}/lib/IridiumSkyblock-3.1.1.jar</systemPath>
949972
<scope>system</scope>
950973
</dependency>
974+
<dependency>
975+
<groupId>com.github.bsideup.jabel</groupId>
976+
<artifactId>jabel-javac-plugin</artifactId>
977+
<version>0.4.1</version>
978+
<scope>provided</scope>
979+
<exclusions>
980+
<exclusion>
981+
<groupId>net.bytebuddy</groupId>
982+
<artifactId>byte-buddy</artifactId>
983+
</exclusion>
984+
<exclusion>
985+
<groupId>net.bytebuddy</groupId>
986+
<artifactId>byte-buddy-agent</artifactId>
987+
</exclusion>
988+
</exclusions>
989+
</dependency>
990+
<dependency>
991+
<groupId>net.bytebuddy</groupId>
992+
<artifactId>byte-buddy</artifactId>
993+
<version>1.11.17</version>
994+
<scope>provided</scope>
995+
</dependency>
996+
<dependency>
997+
<groupId>net.bytebuddy</groupId>
998+
<artifactId>byte-buddy-agent</artifactId>
999+
<version>1.11.17</version>
1000+
<scope>provided</scope>
1001+
</dependency>
9511002
</dependencies>
9521003
</project>

0 commit comments

Comments
 (0)