I'm building a mixing project with java and clojure
The project woks well with leiningen but I not able to port it with gradle
I have to respect this build order
1- compile in.clj
2- compile java sourset
3- compile out.clj
I would like compile one file likes in java :
task compileOne (type: JavaCompile) {
source = sourceSets.main.java.srcDirs
include 'some/pkg/ClassTwo.java'
classpath = sourceSets.main.compileClasspath
destinationDir = sourceSets.main.output.classesDir
}
But it seems not working with ClojureCompile
task compileOne (type: ClosureCompile) {
source = sourceSets.main.clojure.srcDirs
include 'some/pkg/ClassTwo.clj'
classpath = sourceSets.main.compileClasspath
destinationDir = sourceSets.main.output.classesDir
}
Thank for help
Regards,
Sebastien