Create a jar of chaos with external dependencies using Gradle

How to create a jar of chaos that includes all the dependencies in the lib folder using Gradle? Basically, it looks like what makes bold.

+3
source share
1 answer

I thought! Hadoop is looking for libraries inside the "lib" folder in the last jar. So, add the following to the jar task.

 jar {
     doFirst {
         into('lib') {
             from configurations.runtime
         }
     }
 }
+4
source

Source: https://habr.com/ru/post/1764991/


All Articles