[GRADLE-3154] Gradle 2.1 RC1 Failed to apply plugin [id 'ear'] Created: 21/Aug/14  Updated: 26/Aug/14  Resolved: 26/Aug/14

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 2.1-rc-2

Type: Bug
Reporter: Gradle Forums Assignee: Marcin Erdmann
Resolution: Fixed Votes: 0


I upgraded from Gradle 2.0 to 2.1RC1 this morning. It seems the EAR plugin may be broken:

FAILURE: Build failed with an exception.

  • Where:
    Build file 'J:\git\gradledemo\access\WASApps\AwardsAutomationEAR\build.gradle' line: 1
  • What went wrong:
    A problem occurred evaluating project ':WASApps:AwardsAutomationEAR'.
    > Failed to apply plugin [id 'ear']
    > Could not create an instance of type org.gradle.plugins.ear.EarPluginConvention_Decorated.
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

This build.gradle worked fine with 2.0

apply plugin: 'ear'
apply plugin: 'eclipse-wtp'

dependencies {
deploy project(

Comment by Gradle Forums [ 21/Aug/14 ]

Confirmed problem is in also in latest gradle 2.2 nightly.

Here is a stacktrace from 2.1-rc1

I believe the problem lies in gradle-ear-2.1-rc-1.jar. If I replace that jar with gradle-ear-2.0.jar the build once again works. (I realize this is a "frankenbuild" of sorts. This was just a troubleshooting step).
[1] https://gist.github.com/bradthurber/d06759bc0fb63e576894

Generated at Wed Jun 30 12:41:23 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.