60 lines
1.2 KiB
Groovy
60 lines
1.2 KiB
Groovy
/*
|
|
Project airSeaRescue
|
|
|
|
Gradle build file for Jason Application
|
|
május 18, 2022 - 12:02:16
|
|
*/
|
|
|
|
defaultTasks 'run'
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
version '1.0'
|
|
group 'org.jason'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(15)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
|
|
//maven { url "http://jacamo.sourceforge.net/maven2" }
|
|
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 run (type: JavaExec, dependsOn: 'classes') {
|
|
description 'runs the application'
|
|
main = 'jason.infra.local.RunLocalMAS'
|
|
args 'airSeaRescue.mas2j'
|
|
// options:
|
|
// args = ['airSeaRescue.mas2j', '--debug']
|
|
// args = ['airSeaRescue.mas2j', '--log-conf', 'l.p'] // to use file l.p to configure logging
|
|
classpath sourceSets.main.runtimeClasspath
|
|
}
|
|
|
|
clean {
|
|
delete 'bin'
|
|
delete 'build'
|
|
}
|