-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
94 lines (78 loc) · 2.01 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
Project morchestra
Gradle build file for JaCaMo Applications
November 04, 2019 - 19:08:11
*/
defaultTasks 'run'
apply plugin: 'java'
apply plugin: 'eclipse'
version '1.0'
group 'org.jacamo'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "http://jacamo.sourceforge.net/maven2" }
maven { url "https://raw.github.com/jacamo-lang/mvn-repo/master" }
//maven { url "https://jade.tilab.com/maven/" }
flatDir {
dirs 'lib'
}
}
dependencies {
compile group: 'org.jacamo', name: 'jacamo', version: '0.8'
}
sourceSets {
main {
java {
srcDir 'src/env'
srcDir 'src/agt'
srcDir 'src/org'
srcDir 'src/java'
}
resources {
srcDir 'src/resources'
}
}
}
task run (type: JavaExec, dependsOn: 'classes') {
group ' JaCaMo'
description 'runs the JaCaMo application'
doFirst {
mkdir 'log'
}
main 'jacamo.infra.JaCaMoLauncher'
args 'morchestra.jcm'
classpath sourceSets.main.runtimeClasspath
}
task uberJar(type: Jar, dependsOn: 'classes') {
group ' JaCaMo'
description 'creates a single runnable jar file with all dependencies'
manifest {
attributes 'Main-Class': 'jacamo.infra.JaCaMoLauncher'
}
baseName = 'jacamo-morchestra' // the name must start with jacamo so that jacamo...jar is found in the classpath
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from (project.projectDir.absolutePath) {
include '**/*.asl'
include '**/*.xml'
include '**/*.jcm'
include '*.properties'
}
from (project.buildDir.absolutePath + '/jcm') {
include '**/*'
}
with jar
doFirst {
copy {
from 'morchestra.jcm'
rename 'morchestra.jcm','default.jcm'
into project.buildDir.absolutePath + '/jcm'
}
}
}
clean {
delete 'bin'
delete 'build'
delete 'log'
}