-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (38 loc) · 1.4 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
42
43
44
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Scala library project to get you started.
* For more details take a look at the Scala plugin chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.3/userguide/scala_plugin.html
*/
plugins {
// Apply the scala plugin to add support for Scala
id 'scala'
id 'io.github.cosmicsilence.scalafix' version '0.1.2'
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// Use Scala 2.13 in our library project
implementation 'org.scala-lang:scala-library:2.13.1'
// Use Scalatest for testing our library
testImplementation 'junit:junit:4.12'
testImplementation 'org.scalatest:scalatest_2.13:3.1.0'
testImplementation 'org.scalatestplus:junit-4-12_2.13:3.1.0.0'
// Need scala-xml at test runtime
testRuntimeOnly 'org.scala-lang.modules:scala-xml_2.13:1.2.0'
}
compileScala {
options.compilerArgs = ['-Wunused',
'-Xcheckinit',
'-Xlint:adapted-args',
'-deprecation',
'-unchecked',
'-Xfatal-warnings',
'-Xfuture',
'-Ywarn-dead-code',
'-feature']
}