4.7 to 4.8 Migration Guide

To migrate a project from version 4.7 to v4.8, we must change the pom.xml files and the class imports.

This is a short example guide to demonstrate the principles.

 

As a general rule, you should change all packages starting with:

io.ol

org.openlegacy

To be:

io.openlegacy


All connectors were changed to the following:

<groupId>io.openlegacy.springboot</groupId> <artifactId><CONNECTOR NAME>-autoconfiguration</artifactId>

  • Edit SDK pom.xml, like:

<parent> <groupId>io.openlegacy.springboot</groupId> <artifactId>openlegacy-spring-bom</artifactId> <version>4.8.2</version> <relativePath /> </parent>
  • Also, in SDK pom.xml, change:

<dependency> <groupId>io.openlegacy.connector</groupId> <artifactId>mf-cics-ts</artifactId> <version>${openlegacy.version}</version> </dependency>

To:

  • Edit API pom.xml, from:

To:

  • Then we have to edit the imports in the classes.
    The main change is moving from org to io. Here is an example:

    Old Itemde.java:



    New Itemde.java:

  • Also, in the service, we have to add the following:

 

 

Note that if you are using the OL JUnit tests, you will need to change the constructors:

In the SDK it should be updated as follows:

In the API: