Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not create task of type 'ShadowJar'

Tags:

gradle

I have this error: ERROR

I checked my Eclipse preferences/Gradle, and the the Gradle directory is well set.
Besides, I have this stack error in my console when I try to refresh my project:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\java\admin\build.gradle' line: 6

* What went wrong:
A problem occurred evaluating project ':admin'.
> Failed to apply plugin [class 'com.github.jengelman.gradle.plugins.shadow.ShadowJavaPlugin']
   > Could not create task of type 'ShadowJar'.

Do you have any idea of what's happening here?

Thanks!

like image 206
dardy Avatar asked Feb 11 '16 15:02

dardy


1 Answers

Gradle 2.11 breaks compatibility with shadowjar version 1.2.2. You can fix this by updating to shadowjar version 1.2.3.

Source: https://github.com/johnrengelman/shadow/commit/918a649b608f34dc0902d8d7aba21326ae5dfe8d

like image 83
Landon Alder Avatar answered Nov 08 '22 14:11

Landon Alder