Skip to content

Commit 9f60663

Browse files
author
Alexander Pann
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into merge/mps20232
# Conflicts: # code/languages/org.iets3.opensource/languages/org.iets3.core.expr.collections/org.iets3.core.expr.collections.mpl # code/languages/org.iets3.opensource/languages/org.iets3.core.expr.genjava.util/org.iets3.core.expr.genjava.util.mpl # code/languages/org.iets3.opensource/languages/org.iets3.core.expr.simpleTypes/org.iets3.core.expr.simpleTypes.mpl # code/languages/org.iets3.opensource/languages/org.iets3.core.expr.typetags.lib/org.iets3.core.expr.typetags.lib.mpl # code/languages/org.iets3.opensource/solutions/org.iets3.core.expr.typetags.lib.interpreter/org.iets3.core.expr.typetags.lib.interpreter.msd # code/languages/org.iets3.opensource/solutions/org.iets3.core.expr.typetags.physunits.documentation/org.iets3.core.expr.typetags.physunits.documentation.msd # code/languages/org.iets3.opensource/tests/test.components.functional/test.components.functional.msd # code/languages/org.iets3.opensource/tests/test.in.expr.os/test.in.expr.os.msd # code/languages/org.iets3.opensource/tests/test.ts.components.core/test.ts.components.core.msd # code/languages/org.iets3.opensource/tests/test.ts.expr.os.comma/test.ts.expr.os.comma.msd # code/languages/org.iets3.opensource/tests/test.ts.expr.os/models/[email protected] # code/languages/org.iets3.opensource/tests/test.ts.expr.os/test.ts.expr.os.msd
2 parents 45d30a9 + c0e730b commit 9f60663

File tree

218 files changed

+1369
-1394
lines changed

Some content is hidden

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

218 files changed

+1369
-1394
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@06832c7b30a0129d7fb559bcc6e43d26f6374244 # 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: 25 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ import java.time.LocalDate
77
import java.time.format.DateTimeFormatter
88
import java.time.format.FormatStyle
99

10-
//will pull the groovy classes/types from nexus to the classpath
11-
buildscript {
12-
repositories {
13-
maven { url 'https://artifacts.itemis.cloud/repository/maven-mps/' }
14-
}
15-
}
16-
1710
plugins {
1811
id 'base'
1912
id 'maven-publish'
@@ -23,26 +16,19 @@ plugins {
2316
id "org.cyclonedx.bom" version "1.8.2"
2417
}
2518

26-
ext.dependencyRepositories = [
27-
'https://artifacts.itemis.cloud/repository/maven-mps/'
28-
]
29-
3019
repositories {
31-
// we don't use mavenLocal() repo, since it can cause various issues with resolving dependencies,
32-
// see https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:case-for-maven-local
33-
for (repoUrl in project.dependencyRepositories) {
34-
maven {
35-
url repoUrl
36-
}
20+
maven {
21+
url 'https://artifacts.itemis.cloud/repository/maven-mps/'
3722
}
23+
3824
mavenCentral()
3925
}
4026

4127
apply plugin: 'download-jbr'
4228

4329
// configure jbr download
4430
downloadJbr {
45-
jbrVersion = '17.0.8.1-b1000.32'
31+
jbrVersion = '17.0.11-b1207.30'
4632
}
4733

4834
// detect if we are in a CI build
@@ -55,27 +41,26 @@ if (project.hasProperty("forceCI")) {
5541

5642
def forceLocal = project.hasProperty("forceLocalDependencies")
5743

58-
def major = "2023"
59-
def minor = "2"
44+
def major = "2024"
45+
def minor = "1"
6046

6147
// Dependency versions
6248

63-
ext.mpsVersion = '2023.2.2'
64-
65-
def mbeddrVersion = "2023.2+"
66-
def mpsQAVersion = "$major.$minor+"
49+
ext.mpsVersion = '2024.1.2'
50+
ext.mpsQAVersion = "2024.1.1022.300f07a"
6751

6852
// if building a against a special branch from mbeddr is required add the name here
6953
// the name is enough no trailing "." is required, also the plain name from git can
7054
// be used here. No need to convert "/" the script will take care of that.
7155
def mbeddrBranch = ""
7256
def currentBranch = ""
7357

74-
75-
if (mbeddrBranch != null && !mbeddrBranch.trim().isEmpty()) {
76-
ext.mbeddrVersionSelector = "${mbeddrBranch.replace("/", "-")}.${mbeddrVersion}"
77-
} else {
78-
ext.mbeddrVersionSelector = mbeddrVersion
58+
if (!project.hasProperty('mbeddrVersion')) {
59+
if (mbeddrBranch != null && !mbeddrBranch.trim().isEmpty()) {
60+
ext.mbeddrVersion = "${mbeddrBranch.replace("/", "-")}.${major}.${minor}.+"
61+
} else {
62+
ext.mbeddrVersion = "2024.1.25300.dff1a9a"
63+
}
7964
}
8065

8166
// Project group
@@ -97,19 +82,14 @@ if (project.hasProperty('iets3OpenSourceVersion')) {
9782
} else {
9883
def isSnapshot = !(currentBranch.equals("master") || currentBranch.startsWith("datev-loon-staging-") || currentBranch.startsWith("datev-steuer-staging-"))
9984
version = GitBasedVersioning.getVersionWithCount(major, minor, buildNumber) + (isSnapshot ? "-SNAPSHOT" : "")
100-
}
85+
}
10186
println "##teamcity[buildNumber '${version}']"
10287
} else {
10388
version = "$major.$minor-SNAPSHOT"
10489
println "Local build detected, version will be $version"
10590
}
10691
}
10792

108-
if (project.hasProperty("mbeddrVersion")) {
109-
logger.log(LogLevel.WARN, "mbeddr version externally overwritten to $ext.mbeddrVersion")
110-
ext.mbeddrVersionSelector = ext.mbeddrVersion
111-
}
112-
11393
ext.releaseRepository = 'https://artifacts.itemis.cloud/repository/maven-mps-releases/'
11494
ext.snapshotRepository = 'https://artifacts.itemis.cloud/repository/maven-mps-snapshots'
11595
ext.publishingRepository = version.toString().endsWith("-SNAPSHOT") ? snapshotRepository : releaseRepository
@@ -119,12 +99,6 @@ ext.publishingRepository = version.toString().endsWith("-SNAPSHOT") ? snapshotRe
11999
// 'artifacts' is used in the generated ant scripts as build output directory
120100
ext.artifactsDir = new File(buildDir, 'artifacts')
121101

122-
123-
wrapper {
124-
gradleVersion '8.0.2'
125-
distributionType Wrapper.DistributionType.ALL
126-
}
127-
128102
configurations {
129103
mps
130104
rerunMigrationsBackend
@@ -136,11 +110,11 @@ configurations {
136110

137111
dependencies {
138112
mps "com.jetbrains:mps:$mpsVersion"
139-
rerunMigrationsBackend("de.itemis.mps.build-backends:remigrate:0.0.5.+")
113+
rerunMigrationsBackend("de.itemis.mps.build-backends:remigrate:0.2.0.+")
140114
languageLibs "org.mpsqa:all-in-one:$mpsQAVersion"
141-
languageLibs "com.mbeddr:platform:$mbeddrVersionSelector"
142-
junitAnt 'org.apache.ant:ant-junit:1.10.6'
143-
pcollections 'org.pcollections:pcollections:4.0.1'
115+
languageLibs "com.mbeddr:platform:$mbeddrVersion"
116+
junitAnt 'org.apache.ant:ant-junit:1.10.15'
117+
pcollections 'org.pcollections:pcollections:4.0.2'
144118
bigMath 'ch.obermuhlner:big-math:2.3.2'
145119
}
146120

@@ -202,6 +176,7 @@ ext.mpsHomeDir = resolveMps.destinationDir
202176
def defaultScriptArgs = [
203177
'mps.home' : resolveMps.destinationDir,
204178
'iets3.github.opensource.home' : rootDir,
179+
'mps.test.project.path' : "${rootDir}/code/languages/org.iets3.opensource",
205180
'build.jna.library.path' : new File(resolveMps.destinationDir, "lib/jna/${System.getProperty('os.arch')}"),
206181
'build.dir' : buildDir,
207182
'version' : version
@@ -263,7 +238,7 @@ task buildAndRunTests(type: TestLanguages, dependsOn: buildLanguages) {
263238
task failOnTestError() {
264239
description 'evaluate junit result and fail on error'
265240
doLast {
266-
241+
267242
def juniXml = file('TESTS-TestSuites.xml')
268243
if(juniXml.exists()){
269244
def junitResult = new XmlSlurper().parse(juniXml)
@@ -332,13 +307,15 @@ modelcheck {
332307
maxHeap = "4G"
333308
}
334309

335-
/*
310+
336311
afterEvaluate { project ->
312+
/*
337313
check.configure {
338314
dependsOn tasks.named('checkmodels')
339315
}
316+
*/
340317
}
341-
*/
318+
342319

343320
checkmodels {
344321
dependsOn(resolveMps)

0 commit comments

Comments
 (0)