-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (56 loc) · 1.25 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
57
58
59
60
61
62
63
64
65
66
67
/*
Project jason_MARL
Gradle build file for Jason Application
September 28, 2022 - 15:14:51
*/
defaultTasks 'run'
apply plugin: 'java'
version '1.0'
group 'org.jason'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
maven { url "https://raw.githubusercontent.com/jacamo-lang/mvn-repo/master" }
maven { url "https://jade.tilab.com/maven/" }
flatDir { dirs 'lib' }
}
dependencies {
implementation('org.jason:jason:3.1')
}
sourceSets {
main {
java {
srcDir 'src/java'
}
resources {
srcDir 'src/resources'
}
}
}
task runDefaultAgent (type: JavaExec, dependsOn: 'classes') {
description 'runs the application'
main = 'jason.infra.local.RunLocalMAS'
args 'default_agent.mas2j'
doFirst {
mkdir 'log'
}
classpath sourceSets.main.runtimeClasspath
}
task runCustomizedAgent (type: JavaExec, dependsOn: 'classes') {
description 'runs the application'
main = 'jason.infra.local.RunLocalMAS'
args 'customized_agent.mas2j'
doFirst {
mkdir 'log'
}
classpath sourceSets.main.runtimeClasspath
}
clean {
delete 'bin'
delete 'build'
delete 'log'
}