ClojureCompile
Compiles Clojure source to class files.
Properties
Property | Type | Description |
---|---|---|
|
Directory the class files will be written to |
|
|
Classpath of the JVM |
|
|
Tree of source files (roots must be included in |
|
|
Options provided to the Clojure compiler |
|
|
Namespaces within |
|
|
Overrides the Java executable to use for the task’s JVM |
|
|
Configure JVM settings |
Example
Besides JVM options, all other settings are better controlled in the ClojureBuild. |
To configure a check task:
build.gradle
tasks.named('clojureCompile')
destinationDir = project.layout.buildDirectory.dir('mytarget')
classpath.from(configurations.other)
source = project.filetree('src/other')
namespaces.add('mygroup.myns')
forkOptions {
jvmArgs = ['-Xmx4g']
}
// options should be configured on the ClojureBuild
}
build.gradle.kts
val clojureCompile by tasks.existing {
destinationDir = project.layout.buildDirectory.dir("mytarget")
classpath.from(configurations.other)
source = project.filetree("src/other")
namespaces.add("mygroup.myns")
forkOptions {
jvmArgs = listOf("-Xmx4g")
}
// options should be configured on the ClojureBuild
}