Skip to content

Commit

Permalink
STORY-2042: A CDM user can access the distribution from Maven Central (
Browse files Browse the repository at this point in the history
…#2198)

All maven artefacts published to maven central
  • Loading branch information
minesh-s-patel authored Jun 22, 2023
1 parent 49bd3b9 commit 388194c
Show file tree
Hide file tree
Showing 103 changed files with 1,149 additions and 876 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/license-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
module-folder: ["./", "./isda-demo", "./rosetta-source", "./rosetta-project", "./cdm-distribution", "./scheme-import"]
module-folder: ["./", "./examples", "./rosetta-source", "./rosetta-project", "./distribution", "./scheme-import"]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
Expand Down
63 changes: 55 additions & 8 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,61 @@
# *Infrastructure - Dependency Updates*
# *Infrastructure - CDM Artifacts published to Maven Central*

_What is being released?_
#### _What is being released?_

This release updates the `rosetta-dsl` dependency:
As part of the CDM migration to FINOS, all generated artifacts are now being published to Maven Central. The intention to make this change was presented to CDM community, and noted in the CDM transition document ["Common Domain Model becoming Open Source @ FINOS"](https://assets.isda.org/media/6fac704a/081f5537.pdf), earlier this year. This is a positive step for the CDM community and realizes a demand from implementers that the project has noted for some time.

- Versions:
- `7.10.0` Java code-generation update to allow the default condition implementation to be overridden (via Google Guice) by implementors, similar to how function implementations can be overridden. See also https://github.com/REGnosys/rosetta-dsl/issues/587 for more details.
#### _Downloading Source Code_

This release contains no changes to the model or test expectations.
Previously, only the latest CDM source code was available to download from the CDM Portal. After this release, the open source code is only available to be downloaded from [CDM GitHub](https://github.com/finos/common-domain-model). However, additional to the latest version, previously released versions are tagged and can be downloaded from [CDM GitHub Releases](https://github.com/finos/common-domain-model/releases) also.

_Review directions_
#### _CDM as Java_

CDM Java implementors should update their maven `pom.xml` to the latest CDM maven artefact (groupId com.isda, artifactId cdm) and recompile.
In order to use the latest version of CDM in a [Maven](https://maven.apache.org) project, the following dependency needs to be added to the project pom.xml:

```
<dependency>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>LATEST</version>
</dependency>
```

Going forward from this release, the "LATEST" value can be substituted for with any of the subqequent [CDM GitHub Releases](https://github.com/finos/common-domain-model/releases).

For implementation of CDM releases prior to today's release, dependencies in implementers' projects can still point to the version in [Artifactory](https://regnosys.jfrog.io/ui/repos/tree/General/libs-snapshot/com/isda/cdm) as they do today.

#### _CDM as Java Examples_

Examples of how you can use the CDM can be found in GitHub: [CDM GitHub Examples](https://github.com/finos/common-domain-model/tree/master/examples).

#### _CDM as Python_

CDM as Python is available as a set of `.tar.gz` file containing `.whl` files published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-python/).

#### _CDM as DAML_

CDM as DAML is available as a set of `.dar` files published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-daml/).

#### _CDM as Scala_

CDM as Scala is available as a `.jar` file published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-scala/).

#### _CDM as C# 8.0_

CDM as C# 8.0 is available as a `tar.gz` file containing compiled `.dll` files published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-csharp8/).

#### _CDM as C# 9.0_

CDM as C# 9.0 is available as a `tar.gz` file containing compiled `.dll` files published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-csharp9/).

#### _CDM as Go_

CDM as Go is available as a `tar.gz` file containing the `.go` files published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-golang/).

#### _CDM as TypeScript_

CDM as TypeScript is available as a `tar.gz` file containing the `.ts` files published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-typescript/).

#### _CDM as Kotlin_

CDM as Kotlin is available as a `.jar` file published [here](https://central.sonatype.com/artifact/org.finos.cdm/cdm-kotlin/).
303 changes: 83 additions & 220 deletions codefresh.yml

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
34 changes: 13 additions & 21 deletions cdm-distribution/csharp8-pom.xml → distribution/csharp8-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cdm-parent</artifactId>
<groupId>com.isda</groupId>
<version>0.0.0.master</version>
<groupId>org.finos.cdm</groupId>
<version>0.0.0.master-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>cdm-distribution-csharp8</artifactId>
<version>0.0.0.master</version>
<artifactId>distribution-csharp8</artifactId>
<version>0.0.0.master-SNAPSHOT</version>
<packaging>pom</packaging>
<name>cdm-distribution-csharp8</name>
<url>https://www.isda.org</url>
<name>distribution-csharp8</name>
<url>https://www.finos.org/common-domain-model</url>

<properties>
<junit.version>5.9.1</junit.version>
Expand All @@ -21,8 +21,8 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -37,8 +37,8 @@

<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -72,8 +72,8 @@
<outputDirectory>${project.build.directory}/cdm-artefacts</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
<includes>cdm/**,cdm-sample-files/**,schemas/**,config/**</includes>
</artifactItem>
Expand All @@ -90,7 +90,7 @@
<outputDirectory>${project.build.directory}/cdm-artefacts/lib</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.isda</groupId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-csharp8</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
Expand Down Expand Up @@ -150,12 +150,4 @@
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>snapshots</id>
<name>libs-snapshots</name>
<url>https://regnosys.jfrog.io/regnosys/libs-snapshot-local</url>
</repository>
</distributionManagement>
</project>
File renamed without changes.
34 changes: 13 additions & 21 deletions cdm-distribution/csharp9-pom.xml → distribution/csharp9-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cdm-parent</artifactId>
<groupId>com.isda</groupId>
<version>0.0.0.master</version>
<groupId>org.finos.cdm</groupId>
<version>0.0.0.master-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>cdm-distribution-csharp9</artifactId>
<version>0.0.0.master</version>
<artifactId>distribution-csharp9</artifactId>
<version>0.0.0.master-SNAPSHOT</version>
<packaging>pom</packaging>
<name>cdm-distribution-csharp9</name>
<url>https://www.isda.org</url>
<name>distribution-csharp9</name>
<url>https://www.finos.org/common-domain-model</url>

<properties>
<junit.version>5.9.1</junit.version>
Expand All @@ -21,8 +21,8 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -37,8 +37,8 @@

<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -72,8 +72,8 @@
<outputDirectory>${project.build.directory}/cdm-artefacts</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
<includes>cdm/**,cdm-sample-files/**,schemas/**,config/**</includes>
</artifactItem>
Expand All @@ -90,7 +90,7 @@
<outputDirectory>${project.build.directory}/cdm-artefacts/lib</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.isda</groupId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-csharp9</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
Expand Down Expand Up @@ -150,12 +150,4 @@
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>snapshots</id>
<name>libs-snapshots</name>
<url>https://regnosys.jfrog.io/regnosys/libs-snapshot-local</url>
</repository>
</distributionManagement>
</project>
File renamed without changes.
34 changes: 13 additions & 21 deletions cdm-distribution/daml-pom.xml → distribution/daml-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cdm-parent</artifactId>
<groupId>com.isda</groupId>
<version>0.0.0.master</version>
<groupId>org.finos.cdm</groupId>
<version>0.0.0.master-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>cdm-distribution-daml</artifactId>
<version>0.0.0.master</version>
<artifactId>distribution-daml</artifactId>
<version>0.0.0.master-SNAPSHOT</version>
<packaging>pom</packaging>
<name>cdm-distribution-daml</name>
<url>https://www.isda.org</url>
<name>distribution-daml</name>
<url>https://www.finos.org/common-domain-model</url>

<properties>
<junit.version>5.9.1</junit.version>
Expand All @@ -21,8 +21,8 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -37,8 +37,8 @@

<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -72,8 +72,8 @@
<outputDirectory>${project.build.directory}/cdm-artefacts</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
<includes>cdm/**,cdm-sample-files/**,schemas/**,config/**</includes>
</artifactItem>
Expand All @@ -90,7 +90,7 @@
<outputDirectory>${project.build.directory}/cdm-artefacts/lib</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.isda</groupId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-daml</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
Expand Down Expand Up @@ -150,12 +150,4 @@
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>snapshots</id>
<name>libs-snapshots</name>
<url>https://regnosys.jfrog.io/regnosys/libs-snapshot-local</url>
</repository>
</distributionManagement>
</project>
File renamed without changes.
32 changes: 12 additions & 20 deletions cdm-distribution/golang-pom.xml → distribution/golang-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cdm-parent</artifactId>
<groupId>com.isda</groupId>
<version>0.0.0.master</version>
<groupId>org.finos.cdm</groupId>
<version>0.0.0.master-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>cdm-distribution-golang</artifactId>
<version>0.0.0.master</version>
<artifactId>distribution-golang</artifactId>
<version>0.0.0.master-SNAPSHOT</version>
<packaging>pom</packaging>
<name>cdm-distribution-golang</name>
<url>https://www.isda.org</url>
<name>distribution-golang</name>
<url>https://www.finos.org/common-domain-model</url>

<properties>
<junit.version>5.9.1</junit.version>
Expand All @@ -21,8 +21,8 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -37,8 +37,8 @@

<dependencies>
<dependency>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -72,8 +72,8 @@
<outputDirectory>${project.build.directory}/cdm-artefacts</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.isda</groupId>
<artifactId>cdm</artifactId>
<groupId>org.finos.cdm</groupId>
<artifactId>cdm-java</artifactId>
<version>${project.version}</version>
<includes>cdm/**,cdm-sample-files/**,schemas/**,config/**</includes>
</artifactItem>
Expand Down Expand Up @@ -132,12 +132,4 @@
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>snapshots</id>
<name>libs-snapshots</name>
<url>https://regnosys.jfrog.io/regnosys/libs-snapshot-local</url>
</repository>
</distributionManagement>
</project>
File renamed without changes.
Loading

0 comments on commit 388194c

Please sign in to comment.