mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-21 13:23:05 +01:00
51 lines
1.1 KiB
Groovy
51 lines
1.1 KiB
Groovy
group = 'com.lbs'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
ext {
|
|
scalaVersion = "2.12.6"
|
|
}
|
|
|
|
allprojects {
|
|
group = 'com.lbs'
|
|
version = '1.0.0-SNAPSHOT'
|
|
}
|
|
|
|
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
|
|
} |