Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
3546bfd
Update dependency com.regnosys.rosetta:com.regnosys.rosetta to v9.64.1
github-actions[bot] Aug 12, 2025
05e1e51
Merge pull request #36 from finos/renovate/rosetta.dsl.version
dschwartz-ftadvisory Aug 13, 2025
2cfe374
Merge pull request #38 from finos/develop
plamen-neykov Aug 13, 2025
570de90
Update pom.xml
dschwartz-ftadvisory Aug 14, 2025
2922dcf
Merge pull request #39 from finos/dschwartznyc-patch-1
plamen-neykov Aug 14, 2025
35db600
Update dependency com.regnosys.rosetta:com.regnosys.rosetta to v9.64.1
github-actions[bot] Aug 15, 2025
70fd051
Merge pull request #40 from finos/renovate/rosetta.dsl.version
dschwartz-ftadvisory Aug 19, 2025
fbb918e
Update renovate.yml
dschwartz-ftadvisory Aug 27, 2025
afc6f59
Update renovate.json
dschwartz-ftadvisory Aug 27, 2025
990325e
Update renovate.json
dschwartz-ftadvisory Aug 28, 2025
d8f556e
Update renovate.json
dschwartz-ftadvisory Aug 29, 2025
bbf3888
Migrate config .github/renovate.json
github-actions[bot] Aug 29, 2025
87fc091
Merge pull request #42 from finos/renovate/migrate-config
dschwartz-ftadvisory Aug 29, 2025
5839238
Update renovate.json
dschwartz-ftadvisory Aug 29, 2025
d0d30ce
Update dependency org.apache.maven.plugins:maven-gpg-plugin to v3.2.8
github-actions[bot] Aug 29, 2025
187e714
Update dependency com.google.guava:guava to v32.1.3-jre
github-actions[bot] Aug 29, 2025
b6c81dd
Update dependency org.apache.maven.plugins:maven-checkstyle-plugin to…
github-actions[bot] Aug 29, 2025
9b4f187
Update renovate.json
dschwartz-ftadvisory Aug 29, 2025
fe910f0
Update renovate.json
dschwartz-ftadvisory Aug 29, 2025
3a54683
Update pom.xml
dschwartz-ftadvisory Aug 29, 2025
183e05e
Merge pull request #48 from finos/renovate/guava-monorepo
dschwartz-ftadvisory Aug 29, 2025
0d243f1
Merge pull request #52 from finos/renovate/maven-checkstyle-plugin.ve…
dschwartz-ftadvisory Sep 4, 2025
f6cbc1f
Merge pull request #45 from finos/renovate/maven-gpg-plugin.version
dschwartz-ftadvisory Sep 4, 2025
b9f23c6
update maven plugin and github actions workflow versions
dschwartz-ftadvisory Sep 4, 2025
212b7d0
Remove submodule build/common-domain-model
dschwartz-ftadvisory Sep 4, 2025
db36554
Merge pull request #54 from finos/feature/plugin-workflow-version-update
dschwartz-ftadvisory Sep 4, 2025
0e09377
Remove submodule build/common-domain-model and clean up .gitmodules
dschwartz-ftadvisory Sep 4, 2025
15dd7a1
Merge pull request #55 from finos/chore/remove-common-domain-model-su…
dschwartz-ftadvisory Sep 4, 2025
bfb13f7
Update dependency org.finos:finos to v9
github-actions[bot] Sep 4, 2025
6995513
Merge pull request #57 from finos/renovate/org.finos-finos-9.x
dschwartz-ftadvisory Sep 4, 2025
12a6cfc
Migrate config .github/renovate.json
github-actions[bot] Sep 4, 2025
5f7d29d
Update build-and-test.yml
dschwartz-ftadvisory Sep 4, 2025
04e8080
Merge pull request #58 from finos/renovate/migrate-config
dschwartz-ftadvisory Sep 4, 2025
2cf50d0
clean up javadoc warning
dschwartz-ftadvisory Sep 4, 2025
fd73236
Merge pull request #59 from finos/feature/clean-up-build
dschwartz-ftadvisory Sep 4, 2025
d68d8b7
back out javadoc cleanup
dschwartz-ftadvisory Sep 4, 2025
526a63c
Merge pull request #60 from finos/feature/javadoc-cleanup
dschwartz-ftadvisory Sep 4, 2025
840d170
Update rosetta.dsl.version to v9.65.0
github-actions[bot] Sep 12, 2025
2132d84
Merge pull request #62 from finos/renovate/rosetta.dsl.version
dschwartznyc Sep 12, 2025
f6c54c1
Revert "Update rosetta.dsl.version to v9.65.0"
dschwartznyc Sep 15, 2025
02d79e2
Merge pull request #64 from finos/revert-62-renovate/rosetta.dsl.version
dschwartznyc Sep 15, 2025
f350a2c
Update rosetta.dsl.version to v9.65.1
github-actions[bot] Sep 16, 2025
398e996
refactor switchguard to changes in the DSL v 9.65.x
dschwartz-ftadvisory Sep 17, 2025
b28521e
Merge pull request #63 from finos/renovate/rosetta.dsl.version
plamen-neykov Sep 17, 2025
7bcd9ad
update java action to v5
dschwartz-ftadvisory Sep 17, 2025
fca7761
Merge pull request #67 from finos/chore/update-action-versions
dschwartznyc Sep 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 40 additions & 10 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,56 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"extends": [
"config:recommended"
],
"prConcurrentLimit": 10,
"prHourlyLimit": 20,
"dependencyDashboard": true,
"dependencyDashboardApproval": false,
"vulnerabilityAlerts": {
"enabled": false
},
"enabledManagers": [
"maven",
"github-actions"
],
"packageRules": [
{
"description": "Update the Maven property rosetta.dsl.version when com.regnosys.rosetta releases a new version",
"matchManagers": ["maven"],
"description": "Highlight and prioritize rosetta.dsl.version updates",
"matchManagers": [
"maven"
],
"matchPackageNames": [
"com.regnosys.rosetta:com.regnosys.rosetta",
"rosetta.dsl.version"
],
"enabled": true
"labels": [
"rosetta"
],
"prPriority": 1,
"automerge": false
},
{
"description": "Disable all that are not maven AND not those names",
"matchManagers": ["maven"],
"excludePackageNames": [
"com.regnosys.rosetta:com.regnosys.rosetta",
"rosetta.dsl.version"
"description": "Label GitHub Actions updates",
"matchManagers": [
"github-actions"
],
"enabled": false
"labels": [
"github-actions"
]
},
{
"description": "Label all other Maven dependency updates",
"matchManagers": [
"maven"
],
"labels": [
"maven"
],
"matchPackageNames": [
"!com.regnosys.rosetta:com.regnosys.rosetta",
"!rosetta.dsl.version"
]
}
]
}
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

# Java
- name: Set up Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ inputs.java-version }}
Expand All @@ -41,7 +41,7 @@ jobs:

# Python
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
cache: pip
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
artifact_id: ${{ steps.get_artifact_id.outputs.artifact_id }}
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
Expand Down Expand Up @@ -75,12 +75,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# It uses the configuration file located at .github/renovate.json

name: Renovate

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -13,25 +14,26 @@ on:
jobs:
renovate:
runs-on: ubuntu-latest
# Grants the GITHUB_TOKEN the necessary permissions for Renovate to read repository content and create pull requests.
# 👇 Expanded permissions so Renovate can do everything it needs
permissions:
contents: write
pull-requests: write
contents: write # push branches, update files
pull-requests: write # open/update PRs
issues: write # create/update Dependency Dashboard issue
security-events: read # read Dependabot vulnerability alerts
steps:
# Checks out the repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Checks out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v5

# Runs the Renovate GitHub Action
- name: Renovate
# Using a slightly newer version of the action
uses: renovatebot/[email protected]
uses: renovatebot/[email protected]
with:
# The token is required to create pull requests.
token: ${{ secrets.GITHUB_TOKEN }}
# Specifies the path to your Renovate configuration file.
token: ${{ secrets.GITHUB_TOKEN }} # required to create PRs/issues
configurationFile: .github/renovate.json
env:
RENOVATE_REPOSITORIES: ${{ github.repository }} # This tells Renovate to scan the current repo
# Add a build and test job that depends on renovate
RENOVATE_REPOSITORIES: ${{ github.repository }} # scan current repo

# Optional: run your build/test workflow after Renovate finishes
build_and_test:
needs: renovate
uses: ./.github/workflows/build-and-test.yml
4 changes: 2 additions & 2 deletions .github/workflows/scan-cve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
name: depecheck_test
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Setup JDK 21
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scan-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: 21
cache: maven
Expand Down
32 changes: 16 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.finos</groupId>
<artifactId>finos</artifactId>
<version>7</version>
<version>9</version>
</parent>

<groupId>com.regnosys.rosetta.code-generators</groupId>
Expand Down Expand Up @@ -74,14 +74,14 @@
<apache.commons.lang.version>3.13.0</apache.commons.lang.version>
<apache.commons.text.version>1.11.0</apache.commons.text.version>
<commons-io.version>2.19.0</commons-io.version>
<guava.version>32.0.1-jre</guava.version>
<guava.version>33.3.1-jre</guava.version>

<!-- Release -->
<gpg.keyname>configured-by-release-profile</gpg.keyname>
<repoServerHost>s01.oss.sonatype.org</repoServerHost>
<stagingTimeoutInMinutes>20</stagingTimeoutInMinutes>

<rosetta.dsl.version>9.64.1</rosetta.dsl.version>
<rosetta.dsl.version>9.65.1</rosetta.dsl.version>

<xtext.version>2.38.0</xtext.version>
<guice.version>6.0.0</guice.version>
Expand All @@ -90,22 +90,22 @@
<logback.version>1.5.6</logback.version>

<!-- test -->
<junit.version>5.8.1</junit.version>
<hamcrest.version>2.2</hamcrest.version>
<junit.version>5.13.4</junit.version>
<hamcrest.version>3.0</hamcrest.version>

<!-- plugin -->
<maven-enforcer-plugin.version>3.3.0</maven-enforcer-plugin.version>
<maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version>
<maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<maven-enforcer-plugin.version>3.6.1</maven-enforcer-plugin.version>
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
<maven-clean-plugin.version>3.5.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
<maven-install-plugin.version>2.5.2</maven-install-plugin.version>
<maven-install-plugin.version>3.1.4</maven-install-plugin.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version>
<maven-javadoc-plugin.version>3.11.3</maven-javadoc-plugin.version>
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<maven-gpg-plugin.version>3.2.4</maven-gpg-plugin.version>
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<!-- Used by the Python generator -->
<cdm.rosetta.source.path>build/common-domain-model/rosetta-source/src/main/rosetta</cdm.rosetta.source.path>
Expand Down Expand Up @@ -318,7 +318,7 @@
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>13.0</version>
<version>26.0.2-1</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -454,7 +454,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
</configuration>
Expand Down Expand Up @@ -505,7 +505,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<configuration combine.self="override">
<failOnError>false</failOnError>
</configuration>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,26 @@ class PythonExpressionGenerator {
}

private def getGuardExpression(SwitchCaseGuard caseGuard, boolean isLambda){
val enumGuard= caseGuard.getEnumGuard
if (enumGuard!==null){
return '''switchAttribute == rune_resolve_attr(«generateEnumString(enumGuard)»,"«caseGuard.getEnumGuard.getName()»")'''
if (caseGuard === null) {
throw new UnsupportedOperationException("Null SwitchCaseGuard")
}
if (caseGuard.getChoiceOptionGuard!==null){
return '''rune_resolve_attr(switchAttribute,"«caseGuard.getChoiceOptionGuard.getName()»")'''
val literalGuard = caseGuard.getLiteralGuard();
if (literalGuard !== null) {
return '''switchAttribute == «generateExpression(literalGuard, 0, isLambda)»'''
}
if (caseGuard.getSymbolGuard!==null){
return '''rune_resolve_attr(switchAttribute,"«caseGuard.getSymbolGuard.getName()»")'''
val enumGuard = caseGuard.getEnumGuard
if (enumGuard !== null){
return '''switchAttribute == rune_resolve_attr(«generateEnumString(enumGuard)»,"«enumGuard.getName()»")'''
}
val optionGuard = caseGuard.getChoiceOptionGuard
if (optionGuard !== null){
return '''rune_resolve_attr(switchAttribute,"«optionGuard.getName()»")'''
}
val dataGuard = caseGuard.getDataGuard
if (dataGuard !== null){
return '''rune_resolve_attr(switchAttribute,"«dataGuard.getName()»")'''
}
throw new UnsupportedOperationException("Unsupported SwitchCaseGuard type")
}

private def String generateSwitchOperation(SwitchOperation expr, int ifLevel, boolean isLambda) {
Expand All @@ -204,8 +214,8 @@ class PythonExpressionGenerator {

for (pair : expr.cases.indexed) {
val currentCase = pair.value
val funcName= (currentCase.isDefault()) ? "_then_default" : "_then_"+ (pair.key+1)
val thenExprDef= (currentCase.isDefault()) ? generateExpression(expr.getDefault(), 0, isLambda) : generateExpression(currentCase.getExpression(), ifLevel + 1, isLambda)
val funcName = (currentCase.isDefault()) ? "_then_default" : "_then_"+ (pair.key+1)
val thenExprDef = (currentCase.isDefault()) ? generateExpression(expr.getDefault(), 0, isLambda) : generateExpression(currentCase.getExpression(), ifLevel + 1, isLambda)

_thenFuncsBuilder.append(indent)
_thenFuncsBuilder.append("def "+funcName + "():")
Expand All @@ -214,7 +224,7 @@ class PythonExpressionGenerator {
_thenFuncsBuilder.append(" return "+ thenExprDef)
_thenFuncsBuilder.newLine

if(currentCase.isDefault()){
if (currentCase.isDefault()) {
// Default else
_switchLogicBuilder.append(indent)
_switchLogicBuilder.append("else:")
Expand All @@ -223,21 +233,12 @@ class PythonExpressionGenerator {
_switchLogicBuilder.append(" return ")
_switchLogicBuilder.append(funcName)
_switchLogicBuilder.append("()")
}
else{
val guard =currentCase.getGuard()

} else {
val guard = currentCase.getGuard()
val prefix = (pair.key == 0) ? "if " : "elif "
_switchLogicBuilder.append(indent)
_switchLogicBuilder.append(prefix)
if (guard.getLiteralGuard() !== null) {
val guardExpr = generateExpression(guard.getLiteralGuard(), 0, isLambda)
_switchLogicBuilder.append("switchAttribute == ")
_switchLogicBuilder.append(guardExpr)
} else {
val guardExpr = getGuardExpression(guard, isLambda)
_switchLogicBuilder.append(guardExpr)
}
_switchLogicBuilder.append(getGuardExpression(guard, isLambda))
_switchLogicBuilder.append(":")
_switchLogicBuilder.newLine()
_switchLogicBuilder.append(indent)
Expand Down
Loading