-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
62 lines (52 loc) · 1.69 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
/*
Project mission-planner-ia
Gradle build file for Jason Application
November 30, 2023 - 06:30:44
*/
defaultTasks 'run'
apply plugin: 'java'
// set version of group for your project
//version '1.0'
//group 'io.github.jason-lang'
repositories {
mavenCentral()
maven { url "https://raw.githubusercontent.com/jacamo-lang/mvn-repo/master" }
//maven { url "https://jade.tilab.com/maven/" }
}
dependencies {
implementation 'io.github.jason-lang:jason-interpreter:3.3.0-SNAPSHOT'
// to use locally installed jars:
implementation fileTree(dir: 'lib', include: '*.jar')
}
sourceSets {
main {
java {
srcDir 'src/java'
srcDir 'src/env'
srcDir '.' // some old jason apps store .java files in project root
}
resources {
srcDir 'src/resources'
}
}
}
task run (type: JavaExec, dependsOn: 'classes') {
group = 'Jason'
description 'runs the application'
mainClass = 'jason.infra.local.RunLocalMAS'
args = ['mission_planner_ia.mas2j']
// options:
// args = ['mission-planner-ia.mas2j', '--debug', '--no-net', '--empty-mas']
// args = ['mission-planner-ia.mas2j', '--log-conf', 'l.p'] // to use file l.p to configure logging
classpath sourceSets.main.runtimeClasspath
}
task runJade (type: JavaExec, dependsOn: 'classes') {
group = 'Jason'
description 'runs the application with Jade infrastructure'
mainClass = 'jason.infra.jade.RunJadeMAS'
args = [ 'mission-planner-ia.mas2j', '-gui' ]
// options:
// args = ['mission-planner-ia.mas2j', '-gui', '-sniffer' ]
// and all usual JADE options for jade.Boot
classpath sourceSets.main.runtimeClasspath
}