This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (72 loc) · 1.66 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
defaultTasks 'run'
apply plugin: 'java'
apply plugin: 'maven-publish'
version '1.2'
group = 'com.github.chon-group'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
maven { url "https://raw.githubusercontent.com/jacamo-lang/mvn-repo/master" }
maven { url "https://repo.gradle.org/gradle/libs-releases" }
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation('org.jacamo:jacamo:1.2-SNAPSHOT')
implementation('com.github.chon-group:velluscinum:24.3.5')
}
sourceSets {
main {
java {
srcDir 'src/env'
srcDir 'src/agt'
srcDir 'src/org'
srcDir 'src/int'
srcDir 'src/java'
}
resources {
srcDir 'src/resources'
}
}
}
task run (type: JavaExec, dependsOn: 'classes') {
group ' JaCaMo'
description 'runs the JaCaMo application'
doFirst {
mkdir 'log'
}
mainClass = 'jacamo.infra.JaCaMoLauncher'
args 'velluscinum.jcm'
// jvmArgs '-Xss15m'
classpath sourceSets.main.runtimeClasspath
}
jar {
duplicatesStrategy 'exclude'
archiveBaseName = project.name
from (project.projectDir.absolutePath + '/src') {
include '**/*.asl'
include '**/*.xml'
include '**/*.sai'
include '**/*.ptl'
include '**/*.jcm'
exclude 'test'
}
from (project.buildDir.absolutePath + '/classes') {
include '**/*'
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
clean {
delete 'bin'
delete 'build'
delete 'log'
}