Skip to content

Commit

Permalink
Üpdate to Lyo 6.0.0-SNAPSHOT and Java 17 (#185)
Browse files Browse the repository at this point in the history
Update to Lyo 6.0.0-SNAPSHOT and Java 17
  • Loading branch information
jadelkhoury authored Oct 5, 2023
1 parent 0f2ab05 commit 83d768a
Show file tree
Hide file tree
Showing 23 changed files with 100 additions and 71 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Autobuild
uses: github/codeql-action/autobuild@v2

Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ jobs:
strategy:
fail-fast: false
matrix:
jdk: ['11', '17', '20']
distribution: ['zulu']
jdk: ['17']
distribution: ['temurin']
experimental: [false]
include:
- jdk: '21-ea'
- jdk: '20'
distribution: zulu
experimental: true
- jdk: '21'
distribution: zulu
experimental: true
continue-on-error: ${{ matrix.experimental }}

steps:
- uses: actions/checkout@v3
- name: Checkout Code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
Expand All @@ -53,7 +59,7 @@ jobs:
fail-fast: false
matrix:
jdk: ['17']
distribution: ['zulu']
distribution: ['temurin']
experimental: [false]
# include:
# - jdk: '21-ea'
Expand All @@ -62,7 +68,10 @@ jobs:
continue-on-error: ${{ matrix.experimental }}

steps:
- uses: actions/checkout@v3
- name: Checkout Code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ There are multiple options to run the OSLC Server.

This is the simplest option if you don't want to use anything except JDK and a Maven installation. Prerequisites:

- JDK 11
- JDK 17
- Maven 3

Follow these steps to start 4 servers:
Expand Down
8 changes: 4 additions & 4 deletions model/toolchain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<requiredAdaptors xsi:type="oslc4j_ai:GenericRequiredAdaptor" serviceProviderCatalogURI="http://your.host.com/adaptor/services/catalog/singleton" name="GenericRequiredAdaptor"/>
<configuration xsi:type="oslc4j_ai:MavenServerConfiguration" rootServerBaseUrl="http://localhost:8800/" applicationContextPath="/" servletUrlPattern="/services/*" jettyPort="8800">
<generalConfiguration doNotGenerateFromImportedModels="true" filesBasePath="../src/server-rm/" javaBasePackageName="co.oslc.refimpl.rm.gen"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="5.1.0-alpha" groupId="co.oslc.refimpl" artifactId="server-rm" version="0.3.0-SNAPSHOT"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="6.0.0-SNAPSHOT" groupId="co.oslc.refimpl" artifactId="server-rm" version="0.3.0-SNAPSHOT"/>
<authenticationConfiguration applicationName="RM" oauthRealm="RM"/>
</configuration>
</adaptorInterfaces>
Expand Down Expand Up @@ -116,7 +116,7 @@
<requiredAdaptors xsi:type="oslc4j_ai:GenericRequiredAdaptor" serviceProviderCatalogURI="http://your.host.com/adaptor/services/catalog/singleton" name="GenericRequiredAdaptor"/>
<configuration xsi:type="oslc4j_ai:MavenServerConfiguration" rootServerBaseUrl="http://localhost:8801/" applicationContextPath="/" servletUrlPattern="/services/*" generateJspFilesForOslcUI="true" jettyPort="8801">
<generalConfiguration doNotGenerateFromImportedModels="true" filesBasePath="../src/server-cm/" javaBasePackageName="co.oslc.refimpl.cm.gen"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="5.1.0-alpha" groupId="co.oslc.refimpl" artifactId="server-cm" version="0.3.0-SNAPSHOT"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="6.0.0-SNAPSHOT" groupId="co.oslc.refimpl" artifactId="server-cm" version="0.3.0-SNAPSHOT"/>
<authenticationConfiguration applicationName="CM" oauthRealm="CM"/>
</configuration>
</adaptorInterfaces>
Expand Down Expand Up @@ -209,7 +209,7 @@
<requiredAdaptors xsi:type="oslc4j_ai:GenericRequiredAdaptor" serviceProviderCatalogURI="http://your.host.com/adaptor/services/catalog/singleton" name="GenericRequiredAdaptor"/>
<configuration xsi:type="oslc4j_ai:MavenServerConfiguration" rootServerBaseUrl="http://localhost:8802/" applicationContextPath="/" servletUrlPattern="/services/*" jettyPort="8802">
<generalConfiguration doNotGenerateFromImportedModels="true" filesBasePath="../src/server-qm/" javaBasePackageName="co.oslc.refimpl.qm.gen"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="5.1.0-alpha" groupId="co.oslc.refimpl" artifactId="server-qm" version="0.3.0-SNAPSHOT"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="6.0.0-SNAPSHOT" groupId="co.oslc.refimpl" artifactId="server-qm" version="0.3.0-SNAPSHOT"/>
<authenticationConfiguration applicationName="QM" oauthRealm="QM"/>
</configuration>
</adaptorInterfaces>
Expand Down Expand Up @@ -254,7 +254,7 @@
<requiredAdaptors xsi:type="oslc4j_ai:GenericRequiredAdaptor" serviceProviderCatalogURI="http://your.host.com/adaptor/services/catalog/singleton" name="GenericRequiredAdaptor"/>
<configuration xsi:type="oslc4j_ai:MavenServerConfiguration" rootServerBaseUrl="http://localhost:8803/" applicationContextPath="/" servletUrlPattern="/services/*" jettyPort="8803">
<generalConfiguration doNotGenerateFromImportedModels="true" filesBasePath="../src/server-am/" javaBasePackageName="co.oslc.refimpl.am.gen"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="5.1.0-alpha" groupId="co.oslc.refimpl" artifactId="server-am" version="0.3.0-SNAPSHOT"/>
<projectConfiguration xsi:type="oslc4j_ai:MavenProjectConfiguration" lyoVersion="6.0.0-SNAPSHOT" groupId="co.oslc.refimpl" artifactId="server-am" version="0.3.0-SNAPSHOT"/>
<authenticationConfiguration applicationName="AM" oauthRealm="AM"/>
</configuration>
</adaptorInterfaces>
Expand Down
6 changes: 3 additions & 3 deletions src/client-toolchain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

<v.kotlin>1.8.20</v.kotlin>
<v.lyo>5.2.0-SNAPSHOT</v.lyo>
<v.lyo>6.0.0-SNAPSHOT</v.lyo>
<!-- <v.lyo.oslc-ui>${v.lyo}</v.lyo.oslc-ui>-->
<v.jersey>2.35</v.jersey>
<v.kotlin.coroutines>1.6.4</v.kotlin.coroutines>
Expand Down
6 changes: 3 additions & 3 deletions src/lib-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

<version.lyo>5.2.0-SNAPSHOT</version.lyo>
<version.lyo>6.0.0-SNAPSHOT</version.lyo>
<!-- <version.lyo>5.0.1.CR</version.lyo>-->
<version.jersey>2.35</version.jersey>
</properties>
Expand Down
4 changes: 2 additions & 2 deletions src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>

<modules>
Expand Down
11 changes: 7 additions & 4 deletions src/server-am/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<version.lyo>5.2.0-SNAPSHOT</version.lyo>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<version.lyo>6.0.0-SNAPSHOT</version.lyo>
<jersey.version>2.35</jersey.version>
<swagger.version>2.2.7</swagger.version>
<swagger-ui.version>3.52.5</swagger-ui.version>
Expand Down Expand Up @@ -272,6 +272,9 @@
<configuration>
<webApp>
<contextPath>${application.contextpath}</contextPath>
<_initParams>
<org.eclipse.jetty.servlet.Default.useFileMappedBuffer>false</org.eclipse.jetty.servlet.Default.useFileMappedBuffer>
</_initParams>
</webApp>
<httpConnector>
<port>${servlet.port}</port>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.eclipse.lyo.oslc4j.core.OSLC4JUtils;
import co.oslc.refimpl.am.gen.ServerConstants;
import co.oslc.refimpl.am.gen.servlet.ServiceProviderCatalogSingleton;
import co.oslc.refimpl.am.gen.auth.AuthenticationApplication;;
import co.oslc.refimpl.am.gen.auth.AuthenticationApplication;

// Start of user code imports
// End of user code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
// End of user code

/**
* Generated by Lyo Designer 5.0.1.qualifier
* Generated by Lyo Designer 6.0.0.202310032221
*/

@OpenAPIDefinition(info = @Info(title = "AM", version = "1.0.0"), servers = @Server(url = "/services/"))
Expand Down
17 changes: 9 additions & 8 deletions src/server-am/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Start of user code webxml3
-->
<!-- TODO: Add additional configurations here to avoid them be overrriden upon future re-generation -->
<!-- End of user code
<!-- Start of user code webxml_servlet
-->
<!-- TODO: Add additional configurations here to avoid them be overridden upon future re-generation -->
<!-- End of user code
-->
<servlet-mapping>
<servlet-name>JAX-RS Servlet</servlet-name>
Expand All @@ -55,9 +55,10 @@
<filter-name>CredentialsFilter</filter-name>
<url-pattern>/services/*</url-pattern>
</filter-mapping>
<!-- Start of user code webxml4
-->
<!-- TODO: Add additional configurations here to avoid them be overrriden upon future re-generation -->
<!-- End of user code

<!-- Start of user code webxml_final
-->
<!-- TODO: Add additional configurations here to avoid them be overridden upon future re-generation -->
<!-- End of user code
-->
</web-app>
11 changes: 7 additions & 4 deletions src/server-cm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<version.lyo>5.2.0-SNAPSHOT</version.lyo>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<version.lyo>6.0.0-SNAPSHOT</version.lyo>
<jersey.version>2.35</jersey.version>
<swagger.version>2.2.7</swagger.version>
<swagger-ui.version>3.52.5</swagger-ui.version>
Expand Down Expand Up @@ -278,6 +278,9 @@
<configuration>
<webApp>
<contextPath>${application.contextpath}</contextPath>
<_initParams>
<org.eclipse.jetty.servlet.Default.useFileMappedBuffer>false</org.eclipse.jetty.servlet.Default.useFileMappedBuffer>
</_initParams>
</webApp>
<httpConnector>
<port>${servlet.port}</port>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.eclipse.lyo.oslc4j.core.OSLC4JUtils;
import co.oslc.refimpl.cm.gen.ServerConstants;
import co.oslc.refimpl.cm.gen.servlet.ServiceProviderCatalogSingleton;
import co.oslc.refimpl.cm.gen.auth.AuthenticationApplication;;
import co.oslc.refimpl.cm.gen.auth.AuthenticationApplication;

// Start of user code imports
// End of user code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
// End of user code

/**
* Generated by Lyo Designer 5.0.1.qualifier
* Generated by Lyo Designer 6.0.0.202310032221
*/

@OpenAPIDefinition(info = @Info(title = "CM", version = "1.0.0"), servers = @Server(url = "/services/"))
Expand Down
17 changes: 9 additions & 8 deletions src/server-cm/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Start of user code webxml3
-->
<!-- TODO: Add additional configurations here to avoid them be overrriden upon future re-generation -->
<!-- End of user code
<!-- Start of user code webxml_servlet
-->
<!-- TODO: Add additional configurations here to avoid them be overridden upon future re-generation -->
<!-- End of user code
-->
<servlet-mapping>
<servlet-name>JAX-RS Servlet</servlet-name>
Expand All @@ -55,9 +55,10 @@
<filter-name>CredentialsFilter</filter-name>
<url-pattern>/services/*</url-pattern>
</filter-mapping>
<!-- Start of user code webxml4
-->
<!-- TODO: Add additional configurations here to avoid them be overrriden upon future re-generation -->
<!-- End of user code

<!-- Start of user code webxml_final
-->
<!-- TODO: Add additional configurations here to avoid them be overridden upon future re-generation -->
<!-- End of user code
-->
</web-app>
11 changes: 7 additions & 4 deletions src/server-qm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<version.lyo>5.2.0-SNAPSHOT</version.lyo>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<version.lyo>6.0.0-SNAPSHOT</version.lyo>
<jersey.version>2.35</jersey.version>
<swagger.version>2.2.7</swagger.version>
<swagger-ui.version>3.52.5</swagger-ui.version>
Expand Down Expand Up @@ -272,6 +272,9 @@
<configuration>
<webApp>
<contextPath>${application.contextpath}</contextPath>
<_initParams>
<org.eclipse.jetty.servlet.Default.useFileMappedBuffer>false</org.eclipse.jetty.servlet.Default.useFileMappedBuffer>
</_initParams>
</webApp>
<httpConnector>
<port>${servlet.port}</port>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.eclipse.lyo.oslc4j.core.OSLC4JUtils;
import co.oslc.refimpl.qm.gen.ServerConstants;
import co.oslc.refimpl.qm.gen.servlet.ServiceProviderCatalogSingleton;
import co.oslc.refimpl.qm.gen.auth.AuthenticationApplication;;
import co.oslc.refimpl.qm.gen.auth.AuthenticationApplication;

// Start of user code imports
// End of user code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
// End of user code

/**
* Generated by Lyo Designer 5.0.1.qualifier
* Generated by Lyo Designer 6.0.0.202310032221
*/

@OpenAPIDefinition(info = @Info(title = "QM", version = "1.0.0"), servers = @Server(url = "/services/"))
Expand Down
17 changes: 9 additions & 8 deletions src/server-qm/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Start of user code webxml3
-->
<!-- TODO: Add additional configurations here to avoid them be overrriden upon future re-generation -->
<!-- End of user code
<!-- Start of user code webxml_servlet
-->
<!-- TODO: Add additional configurations here to avoid them be overridden upon future re-generation -->
<!-- End of user code
-->
<servlet-mapping>
<servlet-name>JAX-RS Servlet</servlet-name>
Expand All @@ -55,9 +55,10 @@
<filter-name>CredentialsFilter</filter-name>
<url-pattern>/services/*</url-pattern>
</filter-mapping>
<!-- Start of user code webxml4
-->
<!-- TODO: Add additional configurations here to avoid them be overrriden upon future re-generation -->
<!-- End of user code

<!-- Start of user code webxml_final
-->
<!-- TODO: Add additional configurations here to avoid them be overridden upon future re-generation -->
<!-- End of user code
-->
</web-app>
11 changes: 7 additions & 4 deletions src/server-rm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<version.lyo>5.2.0-SNAPSHOT</version.lyo>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<version.lyo>6.0.0-SNAPSHOT</version.lyo>
<jersey.version>2.35</jersey.version>
<swagger.version>2.2.7</swagger.version>
<swagger-ui.version>3.52.5</swagger-ui.version>
Expand Down Expand Up @@ -298,6 +298,9 @@
<configuration>
<webApp>
<contextPath>${application.contextpath}</contextPath>
<_initParams>
<org.eclipse.jetty.servlet.Default.useFileMappedBuffer>false</org.eclipse.jetty.servlet.Default.useFileMappedBuffer>
</_initParams>
</webApp>
<httpConnector>
<port>${servlet.port}</port>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.eclipse.lyo.oslc4j.core.OSLC4JUtils;
import co.oslc.refimpl.rm.gen.ServerConstants;
import co.oslc.refimpl.rm.gen.servlet.ServiceProviderCatalogSingleton;
import co.oslc.refimpl.rm.gen.auth.AuthenticationApplication;;
import co.oslc.refimpl.rm.gen.auth.AuthenticationApplication;

// Start of user code imports
// End of user code
Expand Down
Loading

0 comments on commit 83d768a

Please sign in to comment.