generated from NASA-AMMOS/aerie-mission-model-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (54 loc) · 2.05 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
plugins {
id 'java-library'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
// The runtime environment this JAR will be deployed to doesn't know what this model depends on.
// So the generated JAR must include its dependencies. (Except `merlin-sdk`, which is marked `compileTimeApi` by
// `merlin-framework`, so that the runtime system and model JAR can agree on the same interfaces.)
jar {
from {
configurations.runtimeClasspath.filter{ it.exists() }.collect{ it.isDirectory() ? it : zipTree(it) }
} {
exclude 'META-INF/LICENSE.txt', 'META-INF/LICENSE', 'META-INF/NOTICE.txt', 'META-INF/NOTICE', 'META-INF/versions/11/module-info.class', 'META-INF/versions/9/module-info.class'
}
}
repositories {
flatDir { dirs "$rootDir/third-party" }
mavenCentral()
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/nasa-ammos/aerie"
credentials {
username = System.getenv('GITHUB_USER')
password = System.getenv('GITHUB_TOKEN')
}
}
}
tasks.named('test') {
useJUnitPlatform()
}
def aerieVersion = "2.16.0" // getAerieVersion()
static String getAerieVersion() {
def dockerTag = System.getenv("DOCKER_TAG")
if (dockerTag == null || !dockerTag.startsWith('v')) {
return "+"
}
return dockerTag.substring(1)
}
dependencies {
annotationProcessor 'gov.nasa.jpl.aerie:merlin-framework-processor:' + aerieVersion
implementation 'gov.nasa.jpl.aerie:contrib:' + aerieVersion
implementation 'gov.nasa.jpl.aerie:merlin-framework:' + aerieVersion
implementation 'gov.nasa.jpl.aerie:merlin-sdk:' + aerieVersion
implementation 'gov.nasa.jpl.aerie:merlin-driver:' + aerieVersion
implementation 'gov.nasa.jpl.aerie:parsing-utilities:' + aerieVersion
implementation 'com.google.code.gson:gson:+'
implementation files("src/main/resources/jplTime-2022-08.jar")
testImplementation 'gov.nasa.jpl.aerie:merlin-framework-junit:' + aerieVersion
testImplementation 'org.junit.jupiter:junit-jupiter:+'
testImplementation files("src/main/resources/jplTime-2022-08.jar")
}