Skip to content

Commit e829de7

Browse files
Merge pull request #855 from ie3-institute/rel/sp/#854-release-4.0
Release version 4.0
2 parents 7f5b170 + 1d0c0c9 commit e829de7

File tree

277 files changed

+10778
-7669
lines changed

Some content is hidden

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

277 files changed

+10778
-7669
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
src/test/resources/edu/ie3/datamodel/io/source/influxdb/_weather/cosmo/weather.txt eol=lf
44
src/test/resources/edu/ie3/datamodel/io/source/influxdb/_weather/icon/weather.txt eol=lf
55

6+
gradlew eol=lf

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ updates:
1313
- sebastian-peter
1414
- danielfeismann
1515
- jo-bao
16-
ignore:
17-
- dependency-name: org.spockframework:spock-core
18-
versions:
19-
- 2.3-groovy-4.0
2016

2117
- package-ecosystem: pip
2218
directory: "/docs/readthedocs"

.readthedocs.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
os: ubuntu-20.04
10+
os: ubuntu-22.04
1111
tools:
12-
python: "3.9"
12+
python: "3.11"
1313

1414
# Configure python
1515
python:
@@ -18,4 +18,5 @@ python:
1818

1919
# Build documentation in the docs/ directory with Sphinx
2020
sphinx:
21-
configuration: docs/readthedocs/conf.py
21+
configuration: docs/readthedocs/conf.py
22+
fail_on_warning: true

CHANGELOG.md

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased/Snapshot]
88

9+
## [4.0.0] - 2023-08-01
10+
11+
### Added
12+
- Copy methods for container classes [#726](https://github.com/ie3-institute/PowerSystemDataModel/issues/726)
13+
- Allow hierarchic grid structure for JointGridContainer [#768](https://github.com/ie3-institute/PowerSystemDataModel/issues/768)
14+
- Adding SQL id coordinate sources (``IdCoordinateSource``) [#689](https://github.com/ie3-institute/PowerSystemDataModel/issues/689)
15+
- Added some standard asset types to documentation [#642](https://github.com/ie3-institute/PowerSystemDataModel/issues/642)
16+
17+
### Fixed
18+
- Fixed wrong rated power unit hint [#804](https://github.com/ie3-institute/PowerSystemDataModel/issues/804)
19+
- Fixed wrong hash code generation of ConnectorResult [#817](https://github.com/ie3-institute/PowerSystemDataModel/issues/817)
20+
21+
### Changed
22+
- Removing deprecated classes and methods [#540](https://github.com/ie3-institute/PowerSystemDataModel/issues/540)
23+
- Refactor CSV data sources [#716](https://github.com/ie3-institute/PowerSystemDataModel/issues/716)
24+
- Deleted parameter initFiles, set parameter append to false by default [#791](https://github.com/ie3-institute/PowerSystemDataModel/issues/791)
25+
- Use nio paths instead of strings for file path [#723](https://github.com/ie3-institute/PowerSystemDataModel/issues/723)
26+
- Data source will throw an exceptions instead of returning an empty optionals [#707](https://github.com/ie3-institute/PowerSystemDataModel/issues/707)
27+
- Improving `ValidationUtils` [#758](https://github.com/ie3-institute/PowerSystemDataModel/issues/758)
28+
29+
930
## [3.0.0] - 2023-02-16
1031

1132
### Added
@@ -25,26 +46,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2546

2647
### Fixed
2748
- Reduced code smells [#492](https://github.com/ie3-institute/PowerSystemDataModel/issues/492)
28-
- Protected constructors for abstract classes
29-
- Use pattern matching
30-
- Remove unused imports
31-
- Use enhanced switch statements
32-
- Replace lambdas with method references
33-
- Use `Stream#toList`
34-
- Adapt visibility for JUnit 5
49+
- Protected constructors for abstract classes
50+
- Use pattern matching
51+
- Remove unused imports
52+
- Use enhanced switch statements
53+
- Replace lambdas with method references
54+
- Use `Stream#toList`
55+
- Adapt visibility for JUnit 5
3556
- More code smell fixing [#633](https://github.com/ie3-institute/PowerSystemDataModel/issues/633)
36-
- Use `List#of`
37-
- Use direct assignment with switch/case structures
38-
- Turn some classes into records
39-
- Making abstract classes' constructor protected
40-
- Improving some RegExs
41-
- Replacing `filter(Optional::isPresent).map(Optional::get)` on streams with `flatMap(Optional::stream)`
42-
- instanceof variable declarations
43-
- Removing unnecessary parentheses
44-
- Miscellaneous code smells
57+
- Use `List#of`
58+
- Use direct assignment with switch/case structures
59+
- Turn some classes into records
60+
- Making abstract classes' constructor protected
61+
- Improving some RegExs
62+
- Replacing `filter(Optional::isPresent).map(Optional::get)` on streams with `flatMap(Optional::stream)`
63+
- instanceof variable declarations
64+
- Removing unnecessary parentheses
65+
- Miscellaneous code smells
4566
- Fix JavaDoc creation
46-
- Create JavaDoc with java 17 instead of java 8
47-
- Let JavDoc pass, if there are warnings **ATTENTION:** Should be removed, when JavaDoc is fixed! (cf. Issue [#494](https://github.com/ie3-institute/PowerSystemDataModel/issues/494))
67+
- Create JavaDoc with java 17 instead of java 8
68+
- Let JavDoc pass, if there are warnings **ATTENTION:** Should be removed, when JavaDoc is fixed! (cf. Issue [#494](https://github.com/ie3-institute/PowerSystemDataModel/issues/494))
4869
- `BufferedCsvWriter` writes columns in the order, that the headline elements are defined [#434](https://github.com/ie3-institute/PowerSystemDataModel/issues/393)
4970
- Cleaned up `IndividualTimeSeriesMetaInformation`-related methods in `CsvFileConnector` [#544](https://github.com/ie3-institute/PowerSystemDataModel/issues/544)
5071
- Fixed spotlessApply handling for `.groovy` files [#637](https://github.com/ie3-institute/PowerSystemDataModel/issues/637)
@@ -65,18 +86,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6586
- `edu.ie3.datamodel.io.connectors.CsvFileConnector.CsvIndividualTimeSeriesMetaInformation`
6687
- and related methods
6788
- BREAKING: Comprehensive harmonization around weather sources [#267](https://github.com/ie3-institute/PowerSystemDataModel/issues/267)
68-
- Adapted the expected column scheme
69-
- General weather model
70-
- `coordinate` to `coordinateid`
71-
- DWD COSMO model
72-
- `diffuseirradiation` to `diffuseirradiance`
73-
- `directirradiation` to `directirradiance`
74-
- ICON model:
75-
- `"datum"` to `"time"`
76-
- Force user to provide time stamp pattern to `CouchbaseWeatherSource` to ensure harmonized querying
89+
- Adapted the expected column scheme
90+
- General weather model
91+
- `coordinate` to `coordinateid`
92+
- DWD COSMO model
93+
- `diffuseirradiation` to `diffuseirradiance`
94+
- `directirradiation` to `directirradiance`
95+
- ICON model:
96+
- `"datum"` to `"time"`
97+
- Force user to provide time stamp pattern to `CouchbaseWeatherSource` to ensure harmonized querying
7798
- BREAKING: Updating PowerSystemUtils dependency to 2.0-SNAPSHOT [#595](https://github.com/ie3-institute/PowerSystemDataModel/issues/595)
7899
- BREAKING: Generified the `LoadInput` attribute `standardLoadProfile` to `loadProfile` as it should also address the newly added `TemperatureDependantLoadProfile`s [#601](https://github.com/ie3-institute/PowerSystemDataModel/issues/601)
79100
- Adapted to new double converters in PSU [#705](https://github.com/ie3-institute/PowerSystemDataModel/issues/705)
101+
- Setting fixed groovy version and updating groovy [#788](https://github.com/ie3-institute/PowerSystemDataModel/issues/788)
80102

81103
## [2.1.0] - 2022-01-05
82104

@@ -92,6 +114,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
92114
- Writers used to write time series are closed right away
93115
- Changed class name in FlexOptionsResult.toString [#693](https://github.com/ie3-institute/PowerSystemDataModel/issues/693)
94116
- Deleted parameter decimalPlaces and changed naming of serialization method [#710](https://github.com/ie3-institute/PowerSystemDataModel/issues/710)
117+
- Changed switch result documentation according to the implementation [#757](https://github.com/ie3-institute/PowerSystemDataModel/issues/757)
118+
- Added documentation for EmResult and FlexOptionResult [#656](https://github.com/ie3-institute/PowerSystemDataModel/issues/656)
95119

96120
## [2.0.1] - 2021-07-08
97121

@@ -195,7 +219,8 @@ coordinates or multiple exactly equal coordinates possible
195219
- CsvDataSource now stops trying to get an operator for empty operator uuid field in entities
196220
- CsvDataSource now parsing multiple geoJson strings correctly
197221

198-
[Unreleased/Snapshot]: https://github.com/ie3-institute/powersystemdatamodel/compare/3.0.0...HEAD
222+
[Unreleased/Snapshot]: https://github.com/ie3-institute/powersystemdatamodel/compare/4.0.0...HEAD
223+
[4.0.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/3.0.0...4.0.0
199224
[3.0.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/2.1.0...3.0.0
200225
[2.1.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/2.0.1...2.1.0
201226
[2.0.1]: https://github.com/ie3-institute/powersystemdatamodel/compare/2.0.0...2.0.1

build.gradle

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ plugins {
44
id 'maven-publish'
55
id 'signing'
66
id 'pmd' // code check, working on source code
7-
id 'com.diffplug.spotless' version '6.15.0'//code format
8-
id 'com.github.spotbugs' version '5.0.13' // code check, working on byte code
9-
id 'de.undercouch.download' version '5.3.1'
7+
id 'com.diffplug.spotless' version '6.20.0'//code format
8+
id 'com.github.spotbugs' version '5.1.0' // code check, working on byte code
9+
id 'de.undercouch.download' version '5.4.0'
1010
id 'kr.motd.sphinx' version '2.10.1' // documentation generation
1111
id 'jacoco' // java code coverage plugin
12-
id "org.sonarqube" version "3.5.0.2730" // sonarqube
12+
id "org.sonarqube" version "4.3.0.3225" // sonarqube
1313
id 'net.thauvin.erik.gradle.semver' version '1.0.4' // semantic versioning
1414
}
1515

1616
ext {
1717
//version (changing these should be considered thoroughly!)
1818
javaVersion = JavaVersion.VERSION_17
19-
testcontainersVersion = '1.17.6'
19+
groovyVersion = "4.0"
20+
groovyBinaryVersion = "4.0.13"
21+
testcontainersVersion = '1.18.3'
2022

2123
scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator //location of script plugins
2224
}
@@ -43,15 +45,14 @@ repositories {
4345

4446
// sonatype snapshot repo
4547
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
46-
4748
}
4849

4950
dependencies {
5051

5152
// ie³ power system utils
5253
implementation 'com.github.ie3-institute:PowerSystemUtils:2.0'
5354

54-
implementation 'tech.units:indriya:2.1.4'
55+
implementation 'tech.units:indriya:2.2'
5556

5657
// JTS Topology Suite for GeoPositions, License: EPL 1.0 / EDL 1.0
5758
implementation ('org.locationtech.jts:jts-core:1.19.0'){
@@ -61,13 +62,15 @@ dependencies {
6162
implementation 'org.locationtech.jts.io:jts-io-common:1.19.0'
6263

6364
// Graphs
64-
implementation 'org.jgrapht:jgrapht-core:1.5.1'
65+
implementation 'org.jgrapht:jgrapht-core:1.5.2'
6566

6667
// testing
67-
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
68-
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
68+
testImplementation "org.apache.groovy:groovy:$groovyBinaryVersion"
69+
70+
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
71+
testImplementation "org.spockframework:spock-core:2.3-groovy-$groovyVersion"
6972
testImplementation 'org.objenesis:objenesis:3.3' // Mock creation with constructor parameters
70-
testImplementation 'net.bytebuddy:byte-buddy:1.13.0' // Mocks of classes
73+
testImplementation 'net.bytebuddy:byte-buddy:1.14.5' // Mocks of classes
7174

7275
// testcontainers (docker framework for testing)
7376
testImplementation "org.testcontainers:testcontainers:$testcontainersVersion"
@@ -77,20 +80,19 @@ dependencies {
7780
testImplementation "org.testcontainers:couchbase:$testcontainersVersion"
7881

7982
// logging
80-
implementation platform('org.apache.logging.log4j:log4j-bom:2.19.0')
83+
implementation platform('org.apache.logging.log4j:log4j-bom:2.20.0')
8184
implementation 'org.apache.logging.log4j:log4j-api' // log4j
8285
implementation 'org.apache.logging.log4j:log4j-core' // log4j
8386
implementation 'org.apache.logging.log4j:log4j-slf4j-impl' // log4j -> slf4j
8487

8588
// Databases
8689
implementation 'org.influxdb:influxdb-java:2.23'
87-
implementation 'com.couchbase.client:java-client:3.4.3'
88-
runtimeOnly 'org.postgresql:postgresql:42.5.3' // postgresql jdbc driver required during runtime
89-
90-
implementation 'commons-io:commons-io:2.11.0' // I/O functionalities
91-
implementation 'org.apache.commons:commons-compress:1.22' // I/O functionalities
92-
implementation 'org.apache.commons:commons-lang3:3.12.0'
90+
implementation 'com.couchbase.client:java-client:3.4.8'
91+
runtimeOnly 'org.postgresql:postgresql:42.6.0' // postgresql jdbc driver required during runtime
9392

93+
implementation 'commons-io:commons-io:2.13.0' // I/O functionalities
94+
implementation 'org.apache.commons:commons-compress:1.23.0' // I/O functionalities
95+
implementation 'org.apache.commons:commons-lang3:3.13.0'
9496
}
9597

9698
tasks.withType(JavaCompile) {
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)