Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (59 loc) · 2 KB
/
Copy pathbuild.gradle
File metadata and controls
66 lines (59 loc) · 2 KB
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
/* (c) https://github.com/MontiCore/monticore */
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'de.monticore.lang.sysml_v2'
// Needs to be after java plugin
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
project.buildDir = "target"
repositories {
if(("true").equals(getProperty('useLocalRepo'))){
mavenLocal()
}
// SE-Nexus also caches maven central
maven {
name "SE Nexus"
url = publicNexus
}
if(isPipelineFullBuild) {
// required for sysml interactive published on GitHub
maven {
name "Official SysMLv2 Github Package Registry"
url sysmlGithub
credentials {
username = githubUser
password = githubToken
}
}
}
}
// Java JDK Warning
if (JavaVersion.current() > sourceCompatibility) {
logger.warn("\u001B[33m Warning: You are currently using JDK Version " + JavaVersion.current() + ". " + "Higher JDK versions may cause compatibility problems. JDK 21 is recommended. \u001B[0m")
}
configurations {
ecjCompiler
}
// Use the same testing framework for all modules
dependencies {
implementation "org.slf4j:slf4j-simple:2.0.0-beta1"
ecjCompiler "org.eclipse.jdt:ecj:3.44.0"
// Test annotations, api
testImplementation "org.junit.jupiter:junit-jupiter:$junit_version"
// Parametrized tests
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit_version"
// Runtime
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// AssertJ fluent assertions "assertThat(subject).has(...).is(...).throws(...)
testImplementation "org.assertj:assertj-core:$assertj_version"
}
}
evaluationDependsOnChildren()
if(("true").equals(getProperty('isPipelineFullBuild'))){
project(":language-server").tasks.generateSysMLv2LanguageServer.dependsOn project(":cc").tasks.grammarsJar,
project(':cc').tasks.jar, project(":language").tasks.grammarsJar, project(':language').tasks.jar
}