diff --git a/README.md b/README.md index 8cdcb70..0ab9206 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ This repository only contains the source code for the module. ### Set up the prerequisites -1. Download and install Java SE Development Kit (JDK) version 17 (from one of the following locations). +1. Download and install Java SE Development Kit (JDK) version 21 (from one of the following locations). * [Oracle](https://www.oracle.com/java/technologies/downloads/) diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index 2f59bda..06f57fe 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -9,34 +9,34 @@ icon = "icon.png" license = ["Apache-2.0"] distribution = "2201.9.0" -[platform.java17] +[platform.java21] graalvmCompatible = true -[[platform.java17.dependency]] +[[platform.java21.dependency]] groupId = "io.ballerina.stdlib" artifactId = "crypto-native" version = "@toml.version@" path = "../native/build/libs/crypto-native-@project.version@.jar" -[[platform.java17.dependency]] +[[platform.java21.dependency]] groupId = "org.bouncycastle" artifactId = "bcpkix-jdk18on" version = "@bouncycastle.version@" path = "./lib/bcpkix-jdk18on-@bouncycastle.version@.jar" -[[platform.java17.dependency]] +[[platform.java21.dependency]] groupId = "org.bouncycastle" artifactId = "bcprov-jdk18on" version = "@bouncycastle.version@" path = "./lib/bcprov-jdk18on-@bouncycastle.version@.jar" -[[platform.java17.dependency]] +[[platform.java21.dependency]] groupId = "org.bouncycastle" artifactId = "bcutil-jdk18on" version = "@bouncycastle.version@" path = "./lib/bcutil-jdk18on-@bouncycastle.version@.jar" -[[platform.java17.dependency]] +[[platform.java21.dependency]] groupId = "org.bouncycastle" artifactId = "bcpg-jdk18on" version = "@bouncycastle.version@" diff --git a/gradle.properties b/gradle.properties index ac5ea3e..34ec681 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,12 +3,12 @@ group=io.ballerina.stdlib version=2.7.3-SNAPSHOT puppycrawlCheckstyleVersion=10.12.0 bouncycastleVersion=1.78 -githubSpotbugsVersion=5.0.14 +githubSpotbugsVersion=6.0.18 githubShadowVersion=7.1.2 undercouchDownloadVersion=5.4.0 researchgateReleaseVersion=2.8.0 ballerinaGradlePluginVersion=2.0.1 nativeImageVersion=22.2.0 -ballerinaLangVersion=2201.9.0 -stdlibTimeVersion=2.4.0 +ballerinaLangVersion=2201.11.0-20241117-133400-a3054b77 +stdlibTimeVersion=2.6.0-20241113-073800-201b904 diff --git a/native/build.gradle b/native/build.gradle index ed24295..55e1105 100644 --- a/native/build.gradle +++ b/native/build.gradle @@ -45,8 +45,11 @@ checkstyle { checkstyleMain.dependsOn(":checkstyle:downloadCheckstyleRuleFiles") spotbugsMain { - effort "max" - reportLevel "low" + def classLoader = plugins["com.github.spotbugs"].class.classLoader + def SpotBugsConfidence = classLoader.findLoadedClass("com.github.spotbugs.snom.Confidence") + def SpotBugsEffort = classLoader.findLoadedClass("com.github.spotbugs.snom.Effort") + effort = SpotBugsEffort.MAX + reportLevel = SpotBugsConfidence.LOW reportsDir = file("$project.buildDir/reports/spotbugs") reports { html.enabled true diff --git a/native/src/main/java/io/ballerina/stdlib/crypto/PgpDecryptionGenerator.java b/native/src/main/java/io/ballerina/stdlib/crypto/PgpDecryptionGenerator.java index 3b18829..3a4a7bf 100644 --- a/native/src/main/java/io/ballerina/stdlib/crypto/PgpDecryptionGenerator.java +++ b/native/src/main/java/io/ballerina/stdlib/crypto/PgpDecryptionGenerator.java @@ -53,7 +53,7 @@ * * @since 2.7.0 */ -public class PgpDecryptionGenerator { +public final class PgpDecryptionGenerator { static { if (Objects.isNull(Security.getProvider(BouncyCastleProvider.PROVIDER_NAME))) {