Skip to content

Commit f5a902b

Browse files
author
Alexander Pann
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into merge/mps20232
# Conflicts: # code/languages/org.iets3.opensource/languages/test.org.iets3.core.trace/test.org.iets3.core.trace.mpl # code/languages/org.iets3.opensource/solutions/org.iets3.opensource.build/models/org/iets3/opensource/build/build.mps
2 parents 6c41583 + 9c4d06c commit f5a902b

File tree

227 files changed

+1922
-1967
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+1922
-1967
lines changed

.github/renovate.json5

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"packageRules": [
7+
// Rules are evaluated top to bottom, all matching rules are applied
8+
9+
{
10+
"matchPackageNames": [
11+
"com.jetbrains:mps",
12+
"org.mpsqa:all-in-one",
13+
"com.mbeddr:platform"
14+
],
15+
16+
// Update patch versions (2024.1.x -> 2024.1.y) separately from minor.
17+
"separateMinorPatch": true,
18+
19+
// Commit hashes containing 'a' or 'b' are interpreted by Gradle/Renovate as 'alpha' or 'beta' versions,
20+
// and Renovate would normally refuse to update to them. In our case they are stable versions.
21+
"ignoreUnstable": false
22+
},
23+
24+
{
25+
// Disable major and minor updates of MPS libraries and MPS (e.g. 2024.1 -> 2024.3). Leave patch updates enabled
26+
// thanks to the previous rule.
27+
"matchPackageNames": [
28+
"com.jetbrains:mps",
29+
"org.mpsqa:all-in-one",
30+
"com.mbeddr:platform"
31+
],
32+
"matchUpdateTypes": ["major", "minor"],
33+
"enabled": false
34+
},
35+
36+
// Disallow mps-gradle-plugin v2
37+
{
38+
"matchPackageNames": ["de.itemis.mps:mps-gradle-plugin"],
39+
"allowedVersions": "!/^2\\./"
40+
}
41+
],
42+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on: [pull_request]
2+
3+
jobs:
4+
depchecktest:
5+
runs-on: ubuntu-latest
6+
name: depecheck_test
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
10+
- name: Setup Java
11+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4
12+
with:
13+
distribution: temurin
14+
java-version: 17
15+
- name: Setup Gradle
16+
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4
17+
- name: Call setup
18+
run: ./gradlew dependencies
19+
- name: Dependency Check
20+
uses: dependency-check/Dependency-Check_Action@3102a65fd5f36d0000297576acc56a475b0de98d
21+
env:
22+
# actions/setup-java changes JAVA_HOME, so it needs to be reset to match the depcheck image
23+
JAVA_HOME: /opt/jdk
24+
id: Depcheck
25+
with:
26+
project: 'iets3.opensource'
27+
format: 'HTML'
28+
out: 'reports'
29+
- name: Upload Test results
30+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
31+
with:
32+
name: Dependency Check Report
33+
path: ${{github.workspace}}/reports

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ We take care of porting changes done in older supported MPS versions to the newe
2121
For details see [wiki](https://github.com/IETS3/iets3.opensource/wiki/Supported-MPS-Versions).
2222

2323
### What MPS versions are currently supported?
24-
- MPS 2023.2 (branch: [master](https://github.com/IETS3/iets3.opensource/tree/master))
24+
- MPS 2024.1 (branch: [master](https://github.com/IETS3/iets3.opensource/tree/master))
25+
- MPS 2023.2 (branch: [maintenance/mps20232](https://github.com/IETS3/iets3.opensource/tree/maintenance/mps20232))
2526
- MPS 2022.3 (branch: [maintenance/mps20223](https://github.com/IETS3/iets3.opensource/tree/maintenance/mps20223))
2627
- MPS 2022.2 (branch: [maintenance/mps20222](https://github.com/IETS3/iets3.opensource/tree/maintenance/mps20222))
2728
- MPS 2021.3 (branch: [maintenance/mps20213](https://github.com/IETS3/iets3.opensource/tree/maintenance/mps20213))

build.gradle

Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ buildscript {
1010
maven { url 'https://artifacts.itemis.cloud/repository/maven-mps/' }
1111
}
1212
dependencies {
13-
classpath 'de.itemis.mps:mps-gradle-plugin:1.23.1.412.a54f29f'
13+
classpath 'de.itemis.mps:mps-gradle-plugin:1.29.1.1.d7f2744'
1414
}
1515
}
1616

@@ -21,17 +21,9 @@ plugins {
2121
id "org.cyclonedx.bom" version "1.8.2"
2222
}
2323

24-
ext.dependencyRepositories = [
25-
'https://artifacts.itemis.cloud/repository/maven-mps/'
26-
]
27-
2824
repositories {
29-
// we don't use mavenLocal() repo, since it can cause various issues with resolving dependencies,
30-
// see https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:case-for-maven-local
31-
for (repoUrl in project.dependencyRepositories) {
32-
maven {
33-
url repoUrl
34-
}
25+
maven {
26+
url 'https://artifacts.itemis.cloud/repository/maven-mps/'
3527
}
3628
mavenCentral()
3729
}
@@ -40,7 +32,7 @@ apply plugin: 'download-jbr'
4032

4133
// configure jbr download
4234
downloadJbr {
43-
jbrVersion = '17.0.8.1-b1000.32'
35+
jbrVersion = '17.0.11-b1207.30'
4436
}
4537

4638
// detect if we are in a CI build
@@ -53,27 +45,26 @@ if (project.hasProperty("forceCI")) {
5345

5446
def forceLocal = project.hasProperty("forceLocalDependencies")
5547

56-
def major = "2023"
57-
def minor = "2"
48+
def major = "2024"
49+
def minor = "1"
5850

5951
// Dependency versions
6052

61-
ext.mpsVersion = '2023.2.2'
62-
63-
def mbeddrVersion = "2023.2+"
64-
def mpsQAVersion = "$major.$minor+"
53+
ext.mpsVersion = '2024.1.2'
54+
ext.mpsQAVersion = "2024.1.1000.0c9288f"
6555

6656
// if building a against a special branch from mbeddr is required add the name here
6757
// the name is enough no trailing "." is required, also the plain name from git can
6858
// be used here. No need to convert "/" the script will take care of that.
6959
def mbeddrBranch = ""
7060
def currentBranch = ""
7161

72-
73-
if (mbeddrBranch != null && !mbeddrBranch.trim().isEmpty()) {
74-
ext.mbeddrVersionSelector = "${mbeddrBranch.replace("/", "-")}.${mbeddrVersion}"
75-
} else {
76-
ext.mbeddrVersionSelector = mbeddrVersion
62+
if (!project.hasProperty('mbeddrVersion')) {
63+
if (mbeddrBranch != null && !mbeddrBranch.trim().isEmpty()) {
64+
ext.mbeddrVersion = "${mbeddrBranch.replace("/", "-")}.${major}.${minor}.+"
65+
} else {
66+
ext.mbeddrVersion = "2024.1.25258.ccb451a"
67+
}
7768
}
7869

7970
// Project group
@@ -95,19 +86,14 @@ if (project.hasProperty('iets3OpenSourceVersion')) {
9586
} else {
9687
def isSnapshot = !(currentBranch.equals("master") || currentBranch.startsWith("datev-loon-staging-") || currentBranch.startsWith("datev-steuer-staging-"))
9788
version = GitBasedVersioning.getVersionWithCount(major, minor, buildNumber) + (isSnapshot ? "-SNAPSHOT" : "")
98-
}
89+
}
9990
println "##teamcity[buildNumber '${version}']"
10091
} else {
10192
version = "$major.$minor-SNAPSHOT"
10293
println "Local build detected, version will be $version"
10394
}
10495
}
10596

106-
if (project.hasProperty("mbeddrVersion")) {
107-
logger.log(LogLevel.WARN, "mbeddr version externally overwritten to $ext.mbeddrVersion")
108-
ext.mbeddrVersionSelector = ext.mbeddrVersion
109-
}
110-
11197
ext.releaseRepository = 'https://artifacts.itemis.cloud/repository/maven-mps-releases/'
11298
ext.snapshotRepository = 'https://artifacts.itemis.cloud/repository/maven-mps-snapshots'
11399
ext.publishingRepository = version.toString().endsWith("-SNAPSHOT") ? snapshotRepository : releaseRepository
@@ -117,12 +103,6 @@ ext.publishingRepository = version.toString().endsWith("-SNAPSHOT") ? snapshotRe
117103
// 'artifacts' is used in the generated ant scripts as build output directory
118104
ext.artifactsDir = new File(buildDir, 'artifacts')
119105

120-
121-
wrapper {
122-
gradleVersion '8.0.2'
123-
distributionType Wrapper.DistributionType.ALL
124-
}
125-
126106
configurations {
127107
mps
128108
languageLibs
@@ -134,8 +114,8 @@ configurations {
134114
dependencies {
135115
mps "com.jetbrains:mps:$mpsVersion"
136116
languageLibs "org.mpsqa:all-in-one:$mpsQAVersion"
137-
languageLibs "com.mbeddr:platform:$mbeddrVersionSelector"
138-
junitAnt 'org.apache.ant:ant-junit:1.10.6'
117+
languageLibs "com.mbeddr:platform:$mbeddrVersion"
118+
junitAnt 'org.apache.ant:ant-junit:1.10.15'
139119
pcollections 'org.pcollections:pcollections:4.0.1'
140120
bigMath 'ch.obermuhlner:big-math:2.3.2'
141121
}
@@ -196,6 +176,7 @@ task resolveDependencies(dependsOn: ['downloadJbr', resolveMps, resolveLanguageL
196176
def defaultScriptArgs = [
197177
'mps.home' : resolveMps.destinationDir,
198178
'iets3.github.opensource.home' : rootDir,
179+
'mps.test.project.path' : "${rootDir}/code/languages/org.iets3.opensource",
199180
'build.jna.library.path' : new File(resolveMps.destinationDir, "lib/jna/${System.getProperty('os.arch')}"),
200181
'build.dir' : buildDir,
201182
'version' : version
@@ -257,7 +238,7 @@ task buildAndRunTests(type: TestLanguages, dependsOn: buildLanguages) {
257238
task failOnTestError() {
258239
description 'evaluate junit result and fail on error'
259240
doLast {
260-
241+
261242
def juniXml = file('TESTS-TestSuites.xml')
262243
if(juniXml.exists()){
263244
def junitResult = new XmlSlurper().parse(juniXml)
@@ -295,9 +276,11 @@ modelcheck {
295276

296277

297278
afterEvaluate { project ->
279+
/*
298280
check.configure {
299281
dependsOn tasks.named('checkmodels')
300282
}
283+
*/
301284
}
302285

303286
checkmodels {

0 commit comments

Comments
 (0)