-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
108 lines (89 loc) · 3.1 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import java.util.concurrent.TimeUnit
// to trigger a full tycho build please use 'gradle deleteFromClassPath completeInstall'
project.ext {
targetRepositories = [
"https://download.eclipse.org/releases/2023-12/",
"https://rodin-b-sharp.sourceforge.net/core-updates/",
"https://rodin-b-sharp.sourceforge.net/updates",
]
groupID = "de.prob"
}
apply from: 'tycho_build.gradle'
allprojects {
configurations.all {
resolutionStrategy {
cacheChangingModulesFor(0, TimeUnit.SECONDS)
}
}
}
project(':de.prob.core') {
apply plugin: "java"
repositories {
mavenCentral()
maven {
name "Sonatype snapshots"
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
def parser_version = "2.13.5"
dependencies {
// Note: After changing/updating dependencies or their versions here,
// run "./gradlew clean setClassPath prepareMaven".
// This downloads the dependencies and configures them in all appropriate places.
// If you updated or removed any dependencies,
// you also need to *manually* delete the old dependencies/versions
// from the relevant .classpath and META-INF/MANIFEST.MF files.
implementation group: "de.hhu.stups", name: "answerparser", version: parser_version
implementation group: "de.hhu.stups", name: "bparser", version: parser_version
implementation group: "de.hhu.stups", name: "ltlparser", version: parser_version
implementation group: "de.hhu.stups", name: "parserbase", version: parser_version
implementation group: "de.hhu.stups", name: "prologlib", version: parser_version
implementation group: "de.hhu.stups", name: "unicode", version: parser_version
implementation group: "de.hhu.stups", name: "theorymapping", version: parser_version
}
}
project(":de.bmotionstudio.gef.editor") {
apply(plugin: "java")
repositories {
mavenCentral()
}
dependencies {
implementation group: "com.thoughtworks.xstream", name: "xstream", version: "1.4.20"
// Current versions of XStream depend on MXParser, but not any specific version of it.
// To avoid the version number changing unexpectedly and breaking the MANIFEST.MF classpath entries,
// hardcode a specific MXParser version here.
// It *should* be safe to update this when a new version is released.
implementation group: "io.github.x-stream", name: "mxparser", version: "1.2.2"
}
}
def download(address,target) {
def file = new FileOutputStream(target)
def out = new BufferedOutputStream(file)
out << new URL(address).openStream()
out.close()
}
task downloadCli {
doLast{
def dir = workspacePath + 'de.prob.core/prob/'
delete file(dir)
new File(dir).mkdirs()
['macos':'macos', 'linux64':'linux64', 'windows64':'windows'].each {
def n = it.getKey()
def targetdir = dir + it.getValue()
def targetzip = dir + "probcli_${n}.zip"
def url = "https://stups.hhu-hosting.de/downloads/prob/cli/nightly/probcli_${n}.zip"
download(url, targetzip)
FileTree zip = zipTree(targetzip)
copy {
from zip
into targetdir
}
delete file(targetzip)
}
}
}
prepareMaven.dependsOn downloadCli
task deleteCli(type: Delete) {
delete("de.prob.core/prob")
}
clean.dependsOn(deleteCli)