-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
56 lines (46 loc) · 1.16 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
45
46
47
48
49
50
51
52
53
54
55
56
plugins {
id 'java'
id 'application'
}
group 'it.unitn.disi.ds1'
version '1.0-VERSION'
mainClassName = 'it.unitn.disi.ds1.Main'
repositories {
mavenCentral()
mavenLocal()
}
// Dependencies: Akka, Oracle Cli and JUnitTests
dependencies {
implementation platform("com.typesafe.akka:akka-bom_2.13:2.6.13")
implementation "com.typesafe.akka:akka-actor_2.13"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation "org.junit.jupiter:junit-jupiter-params:5.8.2"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
implementation 'org.scala-lang:scala-library:2.13.8'
implementation 'commons-cli:commons-cli:1.5.0'
}
// Gradle test
test {
useJUnitPlatform()
}
// The main class in the manifest
jar {
manifest {
attributes 'Main-Class': 'it.unitn.disi.ds1.Main'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
// Javadoc
javadoc {
source = sourceSets.main.allJava
}
// Compile options
compileJava {
options.compilerArgs += ["-Xlint:deprecation"]
}
// Gradle run task
run {
standardInput = System.in
}