groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Schalk Cronjé <>
Subject Re: building a jar from groovy script with gradle
Date Tue, 08 Mar 2016 10:45:22 GMT
I can spot a number of issues in your Gradle script, howver I need to 
understand context.

[1] Are you trying to put a single Groovy script + required Groovy JARs 
into a JAR?


[2] Are you trying to build a proper Groovy application consisting of a 
coouple of class files en dependent JARs?

On 08/03/2016 10:33, Raphael Bauduin wrote:
> Hi,
> I'm trying to package a groovy script as a jar with the help of gradle,
> I use this gradle config:
> it builds fine, but when I try to run it with java -jar path_to.jar
> I get this error:
> Error: A JNI error has occurred, please check your installation and 
> try again
> Exception in thread "main" java.lang.SecurityException: Invalid 
> signature file digest for Manifest main attributes
> The only suggestions I found online applied when people repackaged 
> jars, which is not my case.
> Any suggestion?
> Thanks
> Rb

Schalk W. Cronjé
Twitter / Ello / Toeter : @ysb33r

View raw message