Skip to content

Commit 677ab67

Browse files
committed
Updates AAS4J to Snapshot
1 parent bb01310 commit 677ab67

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

basyx.aasxfileserver/basyx.aasxfileserver-backend/src/main/java/org/eclipse/digitaltwin/basyx/aasxfileserver/backend/CrudAASXFileServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private String fullyDeletePackage(Package pkg) {
156156
}
157157

158158
private boolean containsShellId(PackageDescription packageDesc, String shellId) {
159-
return packageDesc.getItems().stream().anyMatch(aasId -> aasId.equals(shellId));
159+
return packageDesc.getAasIds().stream().anyMatch(aasId -> aasId.equals(shellId));
160160
}
161161

162162
private Stream<Package> getPackages() {
@@ -167,7 +167,7 @@ private Stream<Package> getPackages() {
167167
private static PackageDescription createPackageDescription(List<String> shellIds, String newPackageId) {
168168
PackageDescription packageDescription = new DefaultPackageDescription();
169169
packageDescription.setPackageId(newPackageId);
170-
packageDescription.setItems(shellIds);
170+
packageDescription.setAasIds(shellIds);
171171

172172
return packageDescription;
173173
}

basyx.aasxfileserver/basyx.aasxfileserver-core/src/test/java/org/eclipse/digitaltwin/basyx/aasxfileserver/core/AASXFileServerSuite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void updateExistingAASXByPackageId() throws IOException {
123123

124124
PackageDescription expectedPackageDescription = new DefaultPackageDescription();
125125
expectedPackageDescription.setPackageId(initialPackageDescription.getPackageId());
126-
expectedPackageDescription.setItems(DummyAASXFileServerFactory.SECOND_SHELL_IDS);
126+
expectedPackageDescription.setAasIds(DummyAASXFileServerFactory.SECOND_SHELL_IDS);
127127

128128
CursorResult<List<PackageDescription>> pagedPackageDescriptions = server.getAllAASXPackageIds("", PaginationInfo.NO_LIMIT);
129129
List<PackageDescription> actualPackageDescription = pagedPackageDescriptions.getResult();

basyx.aasxfileserver/basyx.aasxfileserver-core/src/test/java/org/eclipse/digitaltwin/basyx/aasxfileserver/core/DummyAASXFileServerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static List<PackageDescription> createMultipleDummyAASXPackagesOnServer(A
7878
public static PackageDescription createDummyPackageDescription(String packageId, List<String> shellIds) {
7979
PackageDescription expectedDescription1 = new DefaultPackageDescription();
8080
expectedDescription1.setPackageId(packageId);
81-
expectedDescription1.setItems(shellIds);
81+
expectedDescription1.setAasIds(shellIds);
8282

8383
return expectedDescription1;
8484
}

pom.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<docker.target.platforms>linux/amd64, linux/arm64, linux/arm/v7</docker.target.platforms>
6868
<docker.host.port>8081</docker.host.port>
6969
<docker.container.port>8081</docker.container.port>
70-
<aas4j-version>1.0.5</aas4j-version>
70+
<aas4j-version>2.0.0-SNAPSHOT</aas4j-version>
7171
<querydsl-version>5.1.0</querydsl-version>
7272
<jakarta-version>3.2.0</jakarta-version>
7373
</properties>
@@ -82,7 +82,19 @@
8282
</snapshots>
8383
</pluginRepository>
8484
</pluginRepositories>
85-
85+
<repositories>
86+
<repository>
87+
<name>Central Portal Snapshots</name>
88+
<id>central-portal-snapshots</id>
89+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
90+
<releases>
91+
<enabled>false</enabled>
92+
</releases>
93+
<snapshots>
94+
<enabled>true</enabled>
95+
</snapshots>
96+
</repository>
97+
</repositories>
8698
<build>
8799
<plugins>
88100
<plugin>

0 commit comments

Comments
 (0)