ClojureCheck
Loads Clojure source to ensure valid code and (optionally) check for use of reflection.
Properties
| Property | Type | Description | 
|---|---|---|
| 
 | Classpath of the JVM | |
| 
 | Tree of source files (roots must be included in  | |
| 
 | Namespaces within  | |
| 
 | One of  | |
| 
 | 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('clojureCheck')
  classpath.from(configurations.other)
  source = project.filetree('src/other')
  namespaces.add('mygroup.myns')
  reflection = 'fail'
  forkOptions {
    jvmArgs = ['-Xmx4g']
  }
}build.gradle.kts
val clojureCheck by tasks.existing {
  classpath.from(configurations.other)
  source = project.filetree("src/other")
  namespaces.add("mygroup.myns")
  reflection = "fail"
  forkOptions {
    jvmArgs = listOf("-Xmx4g")
  }
}