2020 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2121 <docker-java .version>3.5.0</docker-java .version>
2222 <commons-cli .version>1.9.0</commons-cli .version>
23+ <native-maven-plugin .version>0.10.6</native-maven-plugin .version>
2324 </properties >
2425
2526 <dependencies >
3738 <groupId >com.github.docker-java</groupId >
3839 <artifactId >docker-java-core</artifactId >
3940 <version >${docker-java.version} </version >
41+ <exclusions >
42+ <exclusion >
43+ <groupId >org.bouncycastle</groupId >
44+ <artifactId >bcpkix-jdk18on</artifactId >
45+ </exclusion >
46+ </exclusions >
47+ </dependency >
48+ <!-- https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk18on -->
49+ <dependency >
50+ <groupId >org.bouncycastle</groupId >
51+ <artifactId >bcpkix-jdk18on</artifactId >
52+ <version >1.80</version >
4053 </dependency >
4154 <dependency >
4255 <groupId >com.github.docker-java</groupId >
99112 </execution >
100113 </executions >
101114 </plugin >
115+ <plugin >
116+ <groupId >org.graalvm.buildtools</groupId >
117+ <artifactId >native-maven-plugin</artifactId >
118+ <version >${native-maven-plugin.version} </version >
119+ </plugin >
102120 </plugins >
103121 </build >
122+
123+ <profiles >
124+ <profile >
125+ <id >native</id >
126+ <build >
127+ <plugins >
128+ <plugin >
129+ <groupId >org.graalvm.buildtools</groupId >
130+ <artifactId >native-maven-plugin</artifactId >
131+ <version >${native-maven-plugin.version} </version >
132+ <extensions >true</extensions >
133+ <configuration >
134+ <agent >
135+ <enabled >true</enabled >
136+ <options >
137+ <enableExperimentalPredefinedClasses >true</enableExperimentalPredefinedClasses >
138+ <enableExperimentalUnsafeAllocationTracing >true</enableExperimentalUnsafeAllocationTracing >
139+ <trackReflectionMetadata >true</trackReflectionMetadata >
140+ </options >
141+ </agent >
142+ <fallback >false</fallback >
143+ <agentResourceDirectory >graal-config</agentResourceDirectory >
144+ </configuration >
145+ <executions >
146+ <execution >
147+ <id >build-native</id >
148+ <goals >
149+ <goal >compile-no-fork</goal >
150+ </goals >
151+ <phase >package</phase >
152+ </execution >
153+ </executions >
154+ </plugin >
155+ </plugins >
156+ </build >
157+ </profile >
158+ </profiles >
104159</project >
0 commit comments