Questions tagged [shadowjar]

About

Shadow is an extension of the Gradle Jar task that optimizes FatJar/UberJar creation by using JarInputStream and JarOutputStream to copy file contents. This avoids the unnecessary I/O overhead of expanding jar files to disk before recombining them. Shadow provides the similar filtering, relocation, and transformation capabilities as the Maven Shade plugin.

Links

101 questions
0
votes
0 answers

Why jar cannot find org.xml.sax.driver for apache poi?

I have build a jar with this following build.gradle. buildscript { repositories { jcenter() } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4' } } apply plugin:…
Ashik
  • 1,204
  • 12
  • 22
0
votes
1 answer

How to specify the entry point, Main-Class, for a FatJar using Gradle Kotlin DSL?

How do I specify the Main-Class attribute in the ShadowJar once it's imported? import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { kotlin("jvm") version "1.2.51" …
Thufir
  • 8,216
  • 28
  • 125
  • 273
0
votes
1 answer

gradle shadowJar combine configuration files in HOCON format

How can I combine application.con HOCON formatted files for lightben/typesafe configuration https://github.com/lightbend/config when creating a fat jar using gradle with the shadow plugin? I.e. there are > 1 module which provide a application.conf…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
0
votes
1 answer

Fat Jar to Implement a Language Server

I am trying to build a language server to be implemented as a sidecar for eclipse che. I built a fat jar from a xtext language server that I've created. Can I use this fat jar to implement my language server in a dockerfile in order to run my…
SharkJ
  • 49
  • 1
  • 12
0
votes
1 answer

"Plugin with id 'org.xtext.xtend' not found." Error

I was building a language server following this tutorial https://www.eclipse.org/community/eclipse_newsletter/2017/may/article5.php But, when I tried to build the shadowJar, I kept getting this error: D:\leaf\org.xtext.example.mydsl1.parent>gradle…
SharkJ
  • 49
  • 1
  • 12
0
votes
1 answer

Uberjar with dependencies only

I'm using google cloud dataflow to run an apache beam job with a lot of dependencies. Normally, unless I uberjar up the entire project, dataflow will refuse to execute the graph because the dependency list is too long. Is there a way to only put…
shadow chris
  • 391
  • 3
  • 13
0
votes
1 answer

Adding custom command to gradle script

I'm using the shadowJar plugin for Gradle (4.2.1) to build the so-called fatJar or uberJar. This works as expected but I would like to to add some actions after the building is done. More precisely, I'd like to make the resulting file executable (in…
menteith
  • 596
  • 14
  • 51
0
votes
3 answers

build/install/-shadow directory -- what is it?

What is build/install/gradleHelloWorld-shadow? What should or shouldn't be in that directory? simplest possible "hello world" fails to build: thufir@dur:~/NetBeansProjects/gradleHelloWorld$ thufir@dur:~/NetBeansProjects/gradleHelloWorld$ gradle…
Thufir
  • 8,216
  • 28
  • 125
  • 273
0
votes
2 answers

Controlling gradle runtime dependencies with build parameter

I use Gradle and its ShadowJar plugin to build a fat jar for my application, which is deployed in one of two contexts. In one context, the environment provides dependencies A,B and C (and all their transitive dependencies), and these classes should…
Russ Weeks
  • 363
  • 1
  • 11
-1
votes
1 answer

Execution optimizations have been disabled for shadowJar and reobfShadowJar task

I have been having trouble getting shadowJar working properly it either gives me warning or doesn't get applied when I fix the warning by adding jar.dependsOn shadowJar. anyone knows why this happens and how I can fix the warning and get a working…
POQDavid
  • 195
  • 1
  • 15
-1
votes
1 answer

Why my java api won't work with gradle 'from components.java' but with 'from components.kotlin'

Using the repository https://repo.theprogramsrc.xyz/repository/maven-public/ if you import the artifact xyz.theprogramsrc:simplecoreapi:0.0.1.1-SNAPSHOT and try to import the class xyz.theprogramsrc.simplecoreapi.global.module.Module you'll notice…
Francisco Solis
  • 342
  • 4
  • 10
1 2 3 4 5 6
7