Skip to content

Commit 6d48d90

Browse files
authored
Merge pull request #243 from bci-oss/188-update-to-java-17
Update to Java 17
2 parents df7b913 + cf76995 commit 6d48d90

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

.github/workflows/pull_request_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
uses: actions/setup-java@v2
1515
with:
1616
distribution: 'temurin'
17-
java-version: '11'
17+
java-version: '17'
1818
- name: Run tests
1919
run: mvn -B clean install

.github/workflows/release-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
with:
1515
ref: main
1616
fetch-depth: 0
17-
- name: Set up JDK 11
17+
- name: Set up JDK 17
1818
uses: actions/setup-java@v2
1919
with:
2020
distribution: 'temurin'
21-
java-version: '11'
21+
java-version: '17'
2222
server-id: ossrh
2323
server-username: OSSRH_USERNAME
2424
server-password: OSSRH_TOKEN

core/sds-aspect-model-document-generators/src/test/java/io/openmanufacturing/sds/aspectmodel/generator/diagram/EntityInstance2BoxModelTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.apache.jena.query.QueryExecution;
2222
import org.apache.jena.query.QueryExecutionFactory;
2323
import org.apache.jena.query.QueryFactory;
24+
import org.apache.jena.rdf.model.Literal;
2425
import org.apache.jena.rdf.model.Model;
2526
import org.apache.jena.rdf.model.ModelFactory;
2627
import org.apache.jena.rdf.model.RDFNode;
@@ -76,7 +77,12 @@ public void testEntityInstanceWithScalarListProperty2BoxModelExpectSuccess( fina
7677

7778
assertTestEntityInstanceBox( queryResult, context, 2 );
7879
assertThat( queryResult.listStatements( context.selector( "* :title testList" ) ).toList() ).hasSize( 1 );
79-
assertThat( queryResult.listStatements( context.selector( "* :text 1;2;3" ) ).toList() ).hasSize( 1 );
80+
assertThat( queryResult.listStatements( context.selector( "* :text *" ) )
81+
.mapWith( Statement::getObject )
82+
.filterKeep( RDFNode::isLiteral )
83+
.mapWith( RDFNode::asLiteral )
84+
.mapWith( Literal::getString )
85+
.toList() ).contains( "3" );
8086
}
8187

8288
@ParameterizedTest

core/sds-aspect-model-validator/src/main/java/io/openmanufacturing/sds/aspectmodel/validation/services/AspectModelValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public ValidationReport validate( final Try<VersionedModel> versionedModel ) {
126126

127127
return metaModelVersion
128128
.flatMap( aspectMetaModelResourceResolver::loadShapesModel ).map( shapesModel -> {
129-
final Resource report = ValidationUtil.validateModel( dataModel, shapesModel, true );
129+
final Resource report = ValidationUtil.validateModel( dataModel, shapesModel, false );
130130

131131
if ( report.getProperty( SH.conforms ).getObject().asLiteral().getBoolean() ) {
132132
// The SHACL validation succeeded. But to catch false positives, also try to load the model

core/sds-aspect-model-validator/src/test/java/io/openmanufacturing/sds/aspectmodel/validation/services/AspectModelValidatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import io.vavr.control.Try;
3636

3737
public class AspectModelValidatorTest extends MetaModelVersions {
38-
private static final String MISSING_PROPERTY_MESSAGE = "Property needs to have at least 1 values, but found 0";
38+
private static final String MISSING_PROPERTY_MESSAGE = "Property needs to have at least 1 value";
3939

4040
private final AspectModelValidator service = new AspectModelValidator();
4141

documentation/developer-guide/modules/tooling-guide/pages/bamm-cli.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The BAMM CLI is a command line tool for the validation of Aspect models and the
77

88
TIP: Download latest version: icon:download[] https://github.com/OpenManufacturingPlatform/sds-sdk/releases/download/v{sds-sdk-version}/bamm-cli-{sds-sdk-version}.jar[bamm-cli-{sds-sdk-version}.jar]
99

10-
NOTE: For technical reasons, Java 11 is required to successfully run the tool.
10+
NOTE: For technical reasons, Java 17 or newer is required to successfully run the tool.
1111

1212
[[bamm-cli-getting-started]]
1313
== Running the BAMM CLI

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<guice-version>5.1.0</guice-version>
8282
<javaparser-version>3.24.2</javaparser-version>
8383
<json-schema-validator-version>2.2.14</json-schema-validator-version>
84-
<jena-version>4.2.0</jena-version>
84+
<jena-version>4.4.0</jena-version>
8585
<json-path-version>2.4.0</json-path-version>
8686
<jqwik-version>1.6.5</jqwik-version>
8787
<lombok-version>1.18.24</lombok-version>
@@ -93,7 +93,7 @@
9393
<rgxgen-version>1.3</rgxgen-version>
9494
<rhino-version>1.7.14</rhino-version>
9595
<roaster-version>2.24.0.Final</roaster-version>
96-
<shacl-version>1.3.2</shacl-version>
96+
<shacl-version>1.4.2</shacl-version>
9797
<spring-boot-version>2.6.7</spring-boot-version>
9898
<swagger-parser-version>2.0.32</swagger-parser-version>
9999
<system-lambda-version>1.2.1</system-lambda-version>
@@ -130,8 +130,8 @@
130130
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
131131
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
132132

133-
<java-target-version>11</java-target-version>
134-
<java-source-version>11</java-source-version>
133+
<java-target-version>17</java-target-version>
134+
<java-source-version>17</java-source-version>
135135

136136
<sonar.coverage.jacoco.xmlReportPaths>
137137
${project.basedir}/../sds-sdk-test-report/target/site/jacoco-aggregate/jacoco.xml,

0 commit comments

Comments
 (0)