Skip to content

Commit 875505f

Browse files
Merge branch 'dev' into df/#1352-air-condition-input
2 parents 9cbe5c7 + 321d72c commit 875505f

File tree

74 files changed

+400
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+400
-165
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/setup-java@v4
3535
with:
3636
distribution: 'temurin'
37-
java-version: 17
37+
java-version: 21
3838

3939
- name: Setup Gradle
4040
uses: gradle/actions/setup-gradle@v4

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
### Changed
2020
- Updated CI-Pipeline to run task `Deploy` and `Staging` only for `Main` [#1403](https://github.com/ie3-institute/PowerSystemDataModel/issues/1403)
2121
- Extend `GermanVoltageLevelUtils` with more synonymousIds [#143](https://github.com/ie3-institute/PowerSystemDataModel/issues/143)
22+
- Change spotless to use googleJavaFormat('1.28.0') [#1409](https://github.com/ie3-institute/PowerSystemDataModel/issues/1409)
2223

2324
## [8.1.0] - 2025-07-25
2425

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616

1717
ext {
1818
//version (changing these should be considered thoroughly!)
19-
javaVersion = JavaVersion.VERSION_17
19+
javaVersion = JavaVersion.VERSION_21
2020
groovyVersion = "4.0"
2121
groovyBinaryVersion = "4.0.28"
2222

docs/readthedocs/gettingstarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ If you feel, something is missing, please contact us!
55

66
## Requirements
77

8-
Java > v 17
8+
PowerSystemDataModel requires Java to be at least Version 21.
99

1010
## Where to get
1111

gradle/scripts/spotless.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spotless {
1010
//sets a license header, removes unused imports and formats conforming to the google java format
1111
java {
1212
removeUnusedImports() // removes any unused imports
13-
googleJavaFormat('1.13.0')
13+
googleJavaFormat('1.28.0')
1414
licenseHeader ie3LicHead
1515
}
1616

src/main/java/edu/ie3/datamodel/exceptions/FailedValidationException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public FailedValidationException(String message) {
2121
super(message);
2222
}
2323

24-
/** @param exceptions List of exceptions, which must not be empty */
24+
/**
25+
* @param exceptions List of exceptions, which must not be empty
26+
*/
2527
public FailedValidationException(List<? extends Exception> exceptions) {
2628
super("Validation failed due to:\n " + ExceptionUtils.combineExceptions(exceptions));
2729
}

src/main/java/edu/ie3/datamodel/graph/SubGridGate.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ public static SubGridGate fromTransformer3W(
4343
return switch (inferiorPort) {
4444
case B -> new SubGridGate(transformer, transformer.getNodeA(), transformer.getNodeB());
4545
case C -> new SubGridGate(transformer, transformer.getNodeA(), transformer.getNodeC());
46-
default -> throw new IllegalArgumentException(
47-
"Only port "
48-
+ ConnectorPort.B
49-
+ " or "
50-
+ ConnectorPort.C
51-
+ " can be "
52-
+ "chosen as inferior port.");
46+
default ->
47+
throw new IllegalArgumentException(
48+
"Only port "
49+
+ ConnectorPort.B
50+
+ " or "
51+
+ ConnectorPort.C
52+
+ " can be "
53+
+ "chosen as inferior port.");
5354
};
5455
}
5556

src/main/java/edu/ie3/datamodel/io/DbGridMetadata.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public String toString() {
2121
return GRID_NAME_COLUMN + "=" + gridName + ", " + GRID_UUID_COLUMN + "=" + uuid.toString();
2222
}
2323

24-
/** @return Stream with grid uuid */
24+
/**
25+
* @return Stream with grid uuid
26+
*/
2527
public Stream<String> getStreamForQuery() {
2628
return Stream.of(quote(uuid.toString(), "'"));
2729
}

src/main/java/edu/ie3/datamodel/io/SqlUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ private static String beginQueryCreateTable(String schemaName, String tableName)
2323
return "CREATE TABLE " + schemaName + "." + tableName + "\n(\n";
2424
}
2525

26-
/** @return query to create a SQL table for a grid */
26+
/**
27+
* @return query to create a SQL table for a grid
28+
*/
2729
public static String queryCreateGridTable(String schemaName) {
2830
return beginQueryCreateTable(schemaName, DbGridMetadata.GRID_TABLE_COLUMN)
2931
+ "\tuuid uuid PRIMARY KEY,\n\tname TEXT NOT NULL\n"

src/main/java/edu/ie3/datamodel/io/connectors/CouchbaseConnector.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ public void shutdown() {
137137
cluster.disconnect();
138138
}
139139

140-
/** @return the bucket name */
140+
/**
141+
* @return the bucket name
142+
*/
141143
public String getBucketName() {
142144
return bucketName;
143145
}

0 commit comments

Comments
 (0)