forked from lombardo-chcg/scala-gradle-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
41 lines (34 loc) · 1.17 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
plugins {
id "scala"
// test runner for scalatest
id "com.github.maiflai.scalatest" version "0.22"
// create a "fat jar" similar to the sbt assembly plugin
id "com.github.johnrengelman.shadow" version "2.0.1"
// make application runnable from the terminal with a `run` task
id "application"
}
// inform the 'application' plugin where the app entry point is located
mainClassName = "com.lombardo.Main"
shadowJar {
// creates a fat jar at build/libs/scala-gradle-starter-all.jar
baseName = "scala-gradle-starter"
}
repositories {
mavenCentral()
}
ext {
scalaVersion = "2.12.7"
scalacVersion = "2.12"
log4jVersion = "2.9.1"
}
dependencies {
compile "org.scala-lang:scala-library:$scalaVersion"
compile "org.scala-lang:scala-reflect:$scalaVersion"
// logging
compile "org.apache.logging.log4j:log4j-api:$log4jVersion"
runtime "org.apache.logging.log4j:log4j-core:$log4jVersion"
runtime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
// test
testCompile "org.scalatest:scalatest_$scalacVersion:3.0.1"
testRuntime "org.pegdown:pegdown:1.4.2" // used by scalatest plugin to generate html reports
}