Skip to content

Commit

Permalink
Merge pull request #456 from researchgate/master
Browse files Browse the repository at this point in the history
Remove ShadowJar MetaClass implementation. Fix for gradle 5.2
  • Loading branch information
johnrengelman authored Feb 28, 2019
2 parents c47b255 + 4d5a29b commit 500c003
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 500c003

Please sign in to comment.