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

Doesn't work with gradle 2.2 #109

Closed
berinle opened this issue Nov 11, 2014 · 2 comments
Closed

Doesn't work with gradle 2.2 #109

berinle opened this issue Nov 11, 2014 · 2 comments

Comments

@berinle
Copy link

berinle commented Nov 11, 2014

Hi,
I am attempting to update a couple of projects to gradle 2.2, but I get this error when the shadow jar plugin is included. This works fine with gradle 2.1.

Steps to reproduce:

  1. gradle init --type java-library
  2. edit the build.gradle file and add the shadow jar plugin
plugins {
    id "com.github.johnrengelman.shadow" version "1.1.2"
}
...
  1. attempt to build the project gradle build

Error:

 * What went wrong:
A problem occurred evaluating root project 'test-gradle'.
> Failed to apply plugin [id 'java']
   > No signature of method: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar_Decorated.getManifest() is applicable for argument types: () values: []
     Possible solutions: getManifest(), getManifest(), getManifest(), setManifest(org.gradle.api.java.archives.Manifest), setManifest(org.gradle.api.java.archives.Manifest),     manifest(groovy.lang.Closure) 

Here is a sample test project to test with https://github.com/berinle/test-shadowjar-plugin

Thanks!

@johnrengelman
Copy link
Owner

Duplicate of #106

@johnrengelman
Copy link
Owner

Thanks for the sampling project.

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

2 participants