-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
50 lines (41 loc) · 976 Bytes
/
build.gradle.kts
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
plugins {
application
java
scala
}
sourceSets {
main {
withConvention(ScalaSourceSet::class) {
scala {
setSrcDirs(listOf("src/main/scala", "src/main/java"))
}
}
java {
setSrcDirs(listOf("/none"))
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.scala-lang:scala-library:2.12.8")
implementation("it.unibo.alice.tuprolog:2p-core:4.1.1")
implementation("it.unibo.alice.tuprolog:2p-ui:4.1.1")
}
tasks.withType<ScalaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
application {
// Define the main class for the application
mainClassName = "it.unibo.u12lab.code.TicTacToeApp"
}
val jobClass: String by project
tasks.register<JavaExec>("runJob") {
main = "$jobClass"
classpath = sourceSets["main"].runtimeClasspath
doFirst {
println("* main job class : $jobClass")
}
}