How to compile *.java into *.class and not include it in result *.jar, but locate it near result *.jar?


(Igor Lunin) #1

I am write program, that dynamicly load *.class files. Using Eclipse.

How to config Gradle to compile appropriate *.java to *.class, not include it to result *.jar, but locate it near result *.jar?


(René Groeschke) #2

What do you mean by “locate it near result *.jar”? In general, you can exclude class files from the jar by using the exclude statement:

jar {
    exclude '**/*staging*'
 }

cheers, René