From 4d5a29b7858590f6b1db0a893872dadc41e88ac2 Mon Sep 17 00:00:00 2001 From: Dennis Schumann Date: Wed, 6 Feb 2019 10:11:07 +0100 Subject: [PATCH] Remove ShadowJar MetaClass implementation that is done by groovy. Fix for gradle 5.2 --- .../plugins/shadow/tasks/ShadowJar.java | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.java b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.java index 6130a3cdc..9918bac2f 100644 --- a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.java +++ b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.java @@ -347,31 +347,4 @@ public DependencyFilter getDependencyFilter() { public void setDependencyFilter(DependencyFilter filter) { this.dependencyFilter = filter; } - - // This code is only to make IntelliJ happy. - private transient MetaClass metaClass = InvokerHelper.getMetaClass(this.getClass()); - - public Object getProperty(String property) { - return this.getMetaClass().getProperty(this, property); - } - - public void setProperty(String property, Object newValue) { - this.getMetaClass().setProperty(this, property, newValue); - } - - public Object invokeMethod(String name, Object args) { - return this.getMetaClass().invokeMethod(this, name, args); - } - - public MetaClass getMetaClass() { - if(this.metaClass == null) { - this.metaClass = InvokerHelper.getMetaClass(this.getClass()); - } - - return this.metaClass; - } - - public void setMetaClass(MetaClass metaClass) { - this.metaClass = metaClass; - } }