Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatJar is not working properly with gradle 1.12 #27

Open
dparshin opened this issue Jun 19, 2014 · 2 comments
Open

fatJar is not working properly with gradle 1.12 #27

dparshin opened this issue Jun 19, 2014 · 2 comments

Comments

@dparshin
Copy link

with gradle 1.12, fatJar builds successfully, but it does not contain necessary 'lib' and 'org' directories:

gradle 1.11 fat jar content:

META-INF
lib
mods
org

gradle 1.12 fat jar content:

META-INF
mods
@kriscs
Copy link

kriscs commented Sep 2, 2014

gradle 1.12 changed internal classloader structure and DefaultPlatformManager.locateJars does not work properly anymore. And it seems to me that it searching for jars in that way is no longer possible with gradle class loaders....

@slambour
Copy link

Discover the same problem today, solved with this task in vertx.gradle

task fatJar(dependsOn: modZip, type: JavaExec, description: 'Creates a fat executable jar which   contains everything needed to run the module' ) {
  main = "org.vertx.java.platform.impl.cli.Starter"
  classpath = buildscript.configurations.classpath
  args = ['fatjar', moduleName, '-d', 'build/libs']
  systemProperties = ["vertx.clusterManagerFactory":"org.vertx.java.spi.cluster.impl.hazelcast.HazelcastClusterManagerFactory","vertx.mods":"build/mods"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants