Skip to content

Commit

Permalink
Maintenance (#666)
Browse files Browse the repository at this point in the history
- Updates Checkstyle version
- Updates JaCoCo version
- Adds toolchains to build files
- Prepares for the next Gradle upgrade
- Fixes two violations noticed by the new Checkstyle

{patch}

Signed-off-by: Esta Nagy <[email protected]>
  • Loading branch information
nagyesta authored Aug 10, 2023
1 parent f54c4b0 commit b61af50
Show file tree
Hide file tree
Showing 7 changed files with 302 additions and 103 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,15 @@ configure(subprojects.findAll({

version = rootProject.version
//noinspection GroovyUnusedAssignment
sourceCompatibility = '11'
repositories {
mavenCentral()
}

java {
sourceCompatibility = JavaVersion.VERSION_11
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ cucumber = "7.13.0"
mockitoCore = "5.4.0"
jupiter = "5.10.0"
abortMission = "4.2.30"
checkstyle = "9.2.1"
jacoco = "0.8.2"
checkstyle = "10.12.2"
jacoco = "0.8.10"
jacksonBom = { strictly = "2.15.2" }
jackson = { strictly = "2.15.2" }
openApiUi = "1.7.0"
Expand Down
386 changes: 289 additions & 97 deletions gradle/verification-metadata.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static Collector<KeyUsageEnum, AtomicInteger, KeyUsage> toKeyUsage() {
return new MergingKeyUsageCollector();
}

private static class MergingKeyUsageCollector implements Collector<KeyUsageEnum, AtomicInteger, KeyUsage> {
private static final class MergingKeyUsageCollector implements Collector<KeyUsageEnum, AtomicInteger, KeyUsage> {
@Override
public Supplier<AtomicInteger> supplier() {
return AtomicInteger::new;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void testDeserializeShouldReturnExpectedEnumWhenCalledWithInvalidJsonObject(fina
}

@Data
private static class TestObjectType {
private static final class TestObjectType {
@JsonSerialize(using = CertificateLifetimeActionSerializer.class)
@JsonDeserialize(using = CertificateLifetimeActionDeserializer.class)
private CertificateLifetimeActionActivity action;
Expand Down
1 change: 1 addition & 0 deletions lowkey-vault-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies {
annotationProcessor libs.lombok
testImplementation libs.mockito.core
testImplementation libs.jupiter
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation libs.logback.classic
}

Expand Down
5 changes: 4 additions & 1 deletion lowkey-vault-docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ plugins {

version = rootProject.version
//noinspection GroovyUnusedAssignment
sourceCompatibility = '11'
repositories {
mavenCentral()
}

java {
sourceCompatibility = JavaVersion.VERSION_11
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
}
Expand Down

0 comments on commit b61af50

Please sign in to comment.