generated from pikalab-unibo/ise-lab-code-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (39 loc) · 1.07 KB
/
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
import org.gradle.configurationcache.extensions.capitalized
plugins {
java
}
allprojects {
apply<JavaPlugin>()
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
group = "it.unibo.ise"
}
subprojects {
sourceSets {
main {
resources {
srcDir("src/main/asl")
}
}
}
dependencies {
implementation("io.github.jason-lang:interpreter:3.2.0")
testImplementation("junit", "junit", "4.13.2")
}
file(projectDir).listFiles().filter { it.extension == "mas2j" }.forEach { mas2jFile ->
task<JavaExec>("run${mas2jFile.nameWithoutExtension.capitalized()}Mas") {
group = "run"
classpath = sourceSets.getByName("main").runtimeClasspath
mainClass.set("jason.infra.centralised.RunCentralisedMAS")
args(mas2jFile.path)
standardInput = System.`in`
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}
}
}