Skip to content

Commit 46e571f

Browse files
Merge pull request #921 from ie3-institute/rel/sp/#920-release-4.1
Release version 4.1
2 parents 12ca283 + c2b092c commit 46e571f

24 files changed

+434
-233
lines changed

CHANGELOG.md

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

77
## [Unreleased/Snapshot]
88

9+
### Added
10+
11+
### Fixed
12+
13+
### Changed
14+
15+
## [4.1.0] - 2023-11-02
16+
17+
### Fixed
18+
- Making constructor of `CsvDataSource` public [#894](https://github.com/ie3-institute/PowerSystemDataModel/issues/894)
19+
- Fixing spotless groovy [#918](https://github.com/ie3-institute/PowerSystemDataModel/issues/918)
20+
21+
### Changed
22+
- `SqlIdCoordinateSource.createCooridinateValue` now throws an exception when the coordinate can not be built [#911](https://github.com/ie3-institute/PowerSystemDataModel/issues/911)
23+
- CleanUp `BufferedCsvWriterTest` only after all tests are completed [#809](https://github.com/ie3-institute/PowerSystemDataModel/issues/809)
24+
- Update gradle to version 8.4 [#891](https://github.com/ie3-institute/PowerSystemDataModel/issues/891)
25+
926
## [4.0.0] - 2023-08-01
1027

1128
### Added
@@ -26,7 +43,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2643
- Data source will throw an exceptions instead of returning an empty optionals [#707](https://github.com/ie3-institute/PowerSystemDataModel/issues/707)
2744
- Improving `ValidationUtils` [#758](https://github.com/ie3-institute/PowerSystemDataModel/issues/758)
2845

29-
3046
## [3.0.0] - 2023-02-16
3147

3248
### Added
@@ -116,6 +132,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
116132
- Deleted parameter decimalPlaces and changed naming of serialization method [#710](https://github.com/ie3-institute/PowerSystemDataModel/issues/710)
117133
- Changed switch result documentation according to the implementation [#757](https://github.com/ie3-institute/PowerSystemDataModel/issues/757)
118134
- Added documentation for EmResult and FlexOptionResult [#656](https://github.com/ie3-institute/PowerSystemDataModel/issues/656)
135+
- Added method that checks if the transformer nodes are located on the correct voltage side [#803](https://github.com/ie3-institute/PowerSystemDataModel/issues/803)
119136

120137
## [2.0.1] - 2021-07-08
121138

@@ -219,7 +236,8 @@ coordinates or multiple exactly equal coordinates possible
219236
- CsvDataSource now stops trying to get an operator for empty operator uuid field in entities
220237
- CsvDataSource now parsing multiple geoJson strings correctly
221238

222-
[Unreleased/Snapshot]: https://github.com/ie3-institute/powersystemdatamodel/compare/4.0.0...HEAD
239+
[Unreleased/Snapshot]: https://github.com/ie3-institute/powersystemdatamodel/compare/4.1.0...HEAD
240+
[4.1.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/4.0.0...4.1.0
223241
[4.0.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/3.0.0...4.0.0
224242
[3.0.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/2.1.0...3.0.0
225243
[2.1.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/2.0.1...2.1.0

build.gradle

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,32 @@ plugins {
44
id 'maven-publish'
55
id 'signing'
66
id 'pmd' // code check, working on source code
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'
7+
id 'com.diffplug.spotless' version '6.22.0' //code format
8+
id 'com.github.spotbugs' version '5.2.1' // code check, working on byte code
9+
id 'de.undercouch.download' version '5.5.0'
1010
id 'kr.motd.sphinx' version '2.10.1' // documentation generation
1111
id 'jacoco' // java code coverage plugin
12-
id "org.sonarqube" version "4.3.0.3225" // sonarqube
12+
id "org.sonarqube" version "4.4.1.3373" // 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
1919
groovyVersion = "4.0"
20-
groovyBinaryVersion = "4.0.13"
21-
testcontainersVersion = '1.18.3'
20+
groovyBinaryVersion = "4.0.15"
21+
testcontainersVersion = '1.19.1'
2222

2323
scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator //location of script plugins
2424
}
2525

2626
group = 'com.github.ie3-institute'
2727
description = 'PowerSystemDataModel'
28-
sourceCompatibility = javaVersion
29-
targetCompatibility = javaVersion
28+
29+
java {
30+
sourceCompatibility = javaVersion
31+
targetCompatibility = javaVersion
32+
}
3033

3134
apply from: scriptsLocation + 'tests.gradle'
3235
apply from: scriptsLocation + 'pmd.gradle'
@@ -70,7 +73,7 @@ dependencies {
7073
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
7174
testImplementation "org.spockframework:spock-core:2.3-groovy-$groovyVersion"
7275
testImplementation 'org.objenesis:objenesis:3.3' // Mock creation with constructor parameters
73-
testImplementation 'net.bytebuddy:byte-buddy:1.14.5' // Mocks of classes
76+
testImplementation 'net.bytebuddy:byte-buddy:1.14.9' // Mocks of classes
7477

7578
// testcontainers (docker framework for testing)
7679
testImplementation "org.testcontainers:testcontainers:$testcontainersVersion"
@@ -80,18 +83,18 @@ dependencies {
8083
testImplementation "org.testcontainers:couchbase:$testcontainersVersion"
8184

8285
// logging
83-
implementation platform('org.apache.logging.log4j:log4j-bom:2.20.0')
86+
implementation platform('org.apache.logging.log4j:log4j-bom:2.21.1')
8487
implementation 'org.apache.logging.log4j:log4j-api' // log4j
8588
implementation 'org.apache.logging.log4j:log4j-core' // log4j
8689
implementation 'org.apache.logging.log4j:log4j-slf4j-impl' // log4j -> slf4j
8790

8891
// Databases
8992
implementation 'org.influxdb:influxdb-java:2.23'
90-
implementation 'com.couchbase.client:java-client:3.4.8'
93+
implementation 'com.couchbase.client:java-client:3.4.11'
9194
runtimeOnly 'org.postgresql:postgresql:42.6.0' // postgresql jdbc driver required during runtime
9295

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
96+
implementation 'commons-io:commons-io:2.15.0' // I/O functionalities
97+
implementation 'org.apache.commons:commons-compress:1.24.0' // I/O functionalities
9598
implementation 'org.apache.commons:commons-lang3:3.13.0'
9699
}
97100

docs/readthedocs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
commonmark==0.9.1
22
recommonmark==0.7.1
3-
Sphinx==6.2.1
4-
sphinx-rtd-theme==1.2.2
3+
Sphinx==7.2.6
4+
sphinx-rtd-theme==1.3.0
55
myst-parser==2.0.0
66
markdown-it-py==3.0.0

gradle/scripts/documentation.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
def docBaseDirPath = project.projectDir.toString() + File.separator + project.docsDirName.toString() + File.separator
2-
31
/*
42
* Additional tasks, that are defined by default:
53
* - sphinx -> Generate HTML output of *.rst files in <projectDir>/docs/readthedocs
@@ -12,8 +10,8 @@ sphinx {
1210
description 'Generate high level HTML documentation output.'
1311
group 'Documentation'
1412

15-
sourceDirectory = "${docBaseDirPath}/readthedocs"
16-
outputDirectory = "${project.buildDir}/docs/readthedocs"
13+
sourceDirectory = "${project.projectDir}/docs/readthedocs"
14+
outputDirectory = "${project.rootDir}/build/docs/readthedocs"
1715
}
1816

1917
/**
@@ -54,8 +52,8 @@ task puml2png() {
5452
"build/plantuml.jar",
5553
"-psvg",
5654
"-o",
57-
"${docBaseDirPath}readthedocs/_static/figures/uml/",
58-
"${docBaseDirPath}uml/**/*.puml"
55+
"${project.projectDir}/docs/readthedocs/_static/figures/uml/",
56+
"${project.projectDir}/docs/uml/**/*.puml"
5957
]
6058
}
6159
}

gradle/scripts/jacoco.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
// general configuration
55
jacoco {
6-
toolVersion = "0.8.7"
7-
reportsDir = file("$buildDir/reports/jacoco")
6+
toolVersion = "0.8.10"
7+
reportsDirectory = layout.projectDirectory.dir("$rootDir/build/reports/jacoco")
88
}
99

1010
jacocoTestReport {
1111
reports {
12-
xml.enabled true
13-
csv.enabled false
14-
html.enabled true
15-
html.destination file("${buildDir}/reports/jacoco")
12+
xml.required = true
13+
csv.required = false
14+
html.required = true
15+
html.outputLocation = file("${rootDir}/build/reports/jacoco")
1616
}
1717

1818
// what to exclude from coverage report (files that should not be analyzed!)
@@ -28,7 +28,7 @@ jacocoTestReport {
2828
]
2929

3030
getClassDirectories().setFrom(fileTree(
31-
dir: "$buildDir/classes/",
31+
dir: "$rootDir/build/classes/",
3232
excludes: excludes
3333
))
3434

gradle/scripts/mavenCentralPublish.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* Maven publish - start */
22
task sourcesJar(type: Jar) {
3-
classifier "sources"
3+
archiveClassifier.set("sources")
44
from sourceSets.main.allJava
55
}
66

77
task javadocJar(type: Jar, dependsOn: javadoc) {
8-
classifier "javadoc"
8+
archiveClassifier.set("javadoc")
99
from javadoc.destinationDir
1010
}
1111

@@ -91,7 +91,7 @@ if (project.hasProperty('user') && project.hasProperty('password') && project.ha
9191

9292
model {
9393
tasks.generatePomFileForMavenJavaPublication {
94-
destination = file("$buildDir/generated-pom.xml")
94+
destination = file("$rootDir/generated-pom.xml")
9595
}
9696
}
9797
}

gradle/scripts/spotless.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ spotless {
2020
licenseHeader ie3LicHead
2121
// the Groovy Eclipse formatter extends the Java Eclipse formatter,
2222
// so it formats Java files by default (unless `excludeJava` is used).
23-
greclipse().configFile('greclipse.properties')
23+
// FIXME rolled back greclipse version https://github.com/diffplug/spotless/issues/1860
24+
greclipse('4.27').configFile('greclipse.properties')
2425
indentWithSpaces 2
2526
}
2627

2728
groovyGradle {
2829
// same as groovy, but for .gradle (defaults to '*.gradle')
2930
target '*.gradle', 'gradle/scripts/*.gradle'
30-
greclipse()
31+
// FIXME rolled back greclipse version https://github.com/diffplug/spotless/issues/1860
32+
greclipse('4.27')
3133
indentWithSpaces 2
3234
}
3335

gradle/wrapper/gradle-wrapper.jar

5.82 KB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Dec 02 10:39:11 CET 2019
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
31
distributionBase=GRADLE_USER_HOME
42
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
networkTimeout=10000
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)