build: compile config depends on quasar, add comment on local .jar dep

This commit is contained in:
Andras Slemmer 2016-06-17 10:33:13 +01:00
parent 6f70affc6f
commit 8b2211ee0f

View File

@ -14,9 +14,10 @@ class QuasarPlugin implements Plugin<Project> {
}
project.configurations.create("quasar")
// To add a local .jar dependency:
// project.dependencies.add("quasar", project.files("${project.rootProject.projectDir}/lib/quasar.jar"))
project.dependencies.add("quasar", "co.paralleluniverse:quasar-core:${project.rootProject.ext.quasar_version}:jdk8@jar")
project.dependencies.add("compile", "co.paralleluniverse:quasar-core:${project.rootProject.ext.quasar_version}:jdk8")
project.dependencies.add("compile", project.configurations.getByName("quasar"))
project.tasks.withType(Test) {
jvmArgs "-javaagent:${project.configurations.quasar.singleFile}"