Questions tagged [gradle-shadow-plugin]

A Gradle plugin for collapsing all dependencies and project code into a single Jar file.

Shadow is a port of the Maven Shade plugin to Gradle. It allows Gradle to create a Jar artifact containing the contents of all dependencies. Existing infrastructure from Shade is kept where possible in order to support configuration as close to the Maven syntax as possible.

Link to Github repo here

Link to Gradle Plugin page here

53 questions
0
votes
1 answer

NetBeans Gradle shadow dependency not added at runtime

I've imported a Gradle project into NetBeans 12.4. This project uses shadow plugin and sets the JDBC driver as a shadow excluded dependency: shadow files('lib/sqljdbc.jar') When I hit the Run or Debug button in NetBeans, the program fails when…
JuanKB1024
  • 324
  • 1
  • 17
0
votes
1 answer

Gradle not running copy task after jar

I am trying to do something like this: jar { doLast{ from "build/libs/TheJar.jar" into "." } } So far, I have tried various tutorials including all forms from this answer but non have worked. The only thing that works is calling a…
JuanKB1024
  • 324
  • 1
  • 17
0
votes
1 answer

How to rename jar file that's being published using Gradle with maven-publish and shadow plugins?

Basically what I'm trying to do is publish a jar file to GitHub Packages with a certain name. What I have now is: shadowJar { archiveFileName = "Some-Name-${parent.version}.${extension}" } publishing { ... publications { …
Lynx
  • 105
  • 9
0
votes
1 answer

Configure Gradle Shadow plugin to create library jar with only one relocated dependency

My use case: Use the Gradle Shadow plugin to build a Java library with a relocated Google Guice dependency (could be every other dep) to avoid dependency problems in the downstream project but leaves the other dependencies how they are. This means…
David
  • 177
  • 2
  • 11
0
votes
0 answers

Shading Elastic search high level java rest client

Can I shade high level rest client? bascially I want to use latest Elastic Search Rest client (7.4) and Lucene 5.3.0 (Legacy) in my project. It's possible with Low level client (link), I want to know if it's available for High level client.
0
votes
0 answers

Dependency distribution using Gradle

I'm writing a Minecraft mod and no, I don't need help with Java. I've gotten that all working :). However, I am having some troubles with dependancies. You see, my mod requires JGit. I attempted to include JGit using "shade" in the build.gradle,…
0
votes
2 answers

manifest issue for shadow plugin with gradle

I am using gradle v3.4 & shadow plugin v1.2.4. I am publishing a jar file to my local maven repo using the following inside my build.gradle file mainClassName = 'some.thing.SomeClient' jar { manifest { attributes( …
ali haider
  • 19,175
  • 17
  • 80
  • 149
0
votes
1 answer

How to use the gradle shdow plugin offline?

I want to compile a vertx project with gradle. I want to compile it into a standalone jar, and I read this can be accomplished with gradle's shadow plugin. Now, I need to be able to do this in an offline environment. I downloaded the plugin's source…
akir94
  • 55
  • 1
  • 8
1 2 3
4