This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns liquidity.controller | |
(:import org.springframework.stereotype.Controller | |
(org.springframework.web.bind.annotation RequestMapping RequestMethod ResponseBody)) | |
(:gen-class | |
:name ^{Controller ""} ch.hedgesphere.liquidity.controller.LiquidityController | |
:methods [[^{RequestMapping {:value ["/liquidity"] :method [RequestMethod/GET]} ResponseBody {}} hello [] String]])) | |
(defn -hello [this] | |
"Hello world from a Clojure-based controller!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
apply plugin: 'java' | |
configurations { | |
codeCoverage | |
} | |
dependencies { | |
codeCoverage files("${rootProject.projectDir.path}/lib/jacocoagent.jar") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task generateCoverageReport << { | |
ant { | |
taskdef(name:'jacocoreport', classname: 'org.jacoco.ant.ReportTask') { | |
classpath path: "${rootProject.projectDir.path}/lib/jacocoant.jar" | |
} | |
mkdir dir: "${buildDirName}/reports/coverage" | |
jacocoreport { | |
executiondata { |