cuba-platform / cuba-gradle-plugin

Gradle plugin for building CUBA platform and applications
https://www.cuba-platform.com
Apache License 2.0
15 stars 18 forks source link

Create an option not to unpack the dependencies #160

Open r0main opened 2 years ago

r0main commented 2 years ago

Environment

Description of the bug or enhancement

Sometimes this behavior is not desired, for example when you have two dependencies with the same filename, it will result with one of the two files that will not be present in the final uberJar. See problems with Camel when you try to unpack the JARs : https://developer.jboss.org/thread/245397

And if you merge many .jars -> 1 jar then the TypeConverter file should be merged as well to include all the package names from all the jars. Right now I bet it just add the TypeConverter file from either the first or last .jar.

Here is how we call the CubaUberJarBuilding plugin :

task buildUberJar(type: CubaUberJarBuilding) {
    singleJar = true
    appProperties = ['cuba.automaticDatabaseUpdate': false]
}
r0main commented 2 years ago

Just to mentioned we have Jmix RAD licenses for JMIX. I can give you my license number in private if needed to have more reactivity.