Files
luxmed-bot/build.gradle
2018-12-05 18:08:46 +01:00

49 lines
1.0 KiB
Groovy

group = 'com.lbs'
ext {
scalaVersion = "2.12.6"
}
allprojects {
group = 'com.lbs'
}
apply plugin: 'idea'
subprojects {
idea {
module {
downloadSources = true
}
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://repo.spring.io/libs-milestone' }
}
apply plugin: 'java'
apply plugin: 'scala'
dependencies {
compile group: 'org.scala-lang', name: "scala-library", version: scalaVersion
testCompile('org.scalatest:scalatest_2.12:3.0.4')
testCompile('org.mockito:mockito-core:2.13.0')
testCompile('org.pegdown:pegdown:1.6.0')
}
task scalaTest(dependsOn: ['testClasses'], type: JavaExec) {
main = 'org.scalatest.tools.Runner'
args = ['-R', "build/classes/scala/test",
'-u', "build/test-results/$name",
'-h', "build/resports/scalaTests/$name",
'-o'
]
classpath = sourceSets.test.runtimeClasspath
}
test.dependsOn scalaTest
}