java - Put libraries for spring boot application in extra lib dir -
i building spring boot application fat jar. because building docker image these, have pull jar dependencies every time change of code. question is: how have change gradle files task called 'buildwithexternallibs' has dependencies in lib folder, can still started using java -jar ...
long lib folder right next jar?
i have done in maven project. can use same logic in gradle too. when clean install, copy jar file too.
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-install-plugin</artifactid> <executions> <execution> <phase>install</phase> <id>install-jar-lib</id> <goals> <goal>install-file</goal> </goals> <configuration> <groupid>com.***.*</groupid> <artifactid>abc-library</artifactid> <version>*.*.*</version> <packaging>jar</packaging> <file>${project.basedir}/src/lib/***.jar</file> </configuration> </execution> </executions> <inherited>false</inherited> </plugin>
wiki
Comments
Post a Comment