Skip to content

Commit

Permalink
Merge pull request #58 from ravinperera00/java21_sync
Browse files Browse the repository at this point in the history
Migrate to Java 21
  • Loading branch information
warunalakshitha authored Nov 21, 2024
2 parents 688bb41 + 9c50420 commit 44956fd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For information on how to generate Ballerina code for Protocol Buffers definitio

### Set Up the prerequisites

* Download and install Java SE Development Kit (JDK) version 17 (from one of the following locations).
* Download and install Java SE Development Kit (JDK) version 21 (from one of the following locations).

* [Oracle](https://www.oracle.com/java/technologies/downloads/)

Expand Down
46 changes: 23 additions & 23 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,44 @@ org.gradle.caching=true
group=io.ballerina
version=0.3.2-SNAPSHOT
#dependency versions
ballerinaLangVersion=2201.9.1
ballerinaLangVersion=2201.11.0-20241117-133400-a3054b77
checkstylePluginVersion=10.12.1
commonsLang3Version=3.8.1
slf4jVersion=1.7.30
protoGoogleCommonsVersion=1.17.0
protobufJavaVersion=3.23.4
picocliVersion=4.0.1
githubSpotbugsVersion=5.0.14
githubSpotbugsVersion=6.0.18
githubJohnrengelmanShadowVersion=8.1.1
underCouchDownloadVersion=5.4.0
researchgateReleaseVersion=2.8.0
testngVersion=7.6.1
jacocoVersion=0.8.10

stdlibGrpcVersion=1.11.2
stdlibIoVersion=1.6.1
stdlibTimeVersion=2.5.0
stdlibUrlVersion=2.4.0
stdlibGrpcVersion=1.13.0-20241114-195700-5188f60
stdlibIoVersion=1.6.2-20241112-233100-995cf5f
stdlibTimeVersion=2.6.0-20241113-073800-201b904
stdlibUrlVersion=2.4.1-20241113-073900-335ff51

stdlibConstraintVersion=1.5.0
stdlibCryptoVersion=2.7.2
stdlibLogVersion=2.9.0
stdlibOsVersion=1.8.0
stdlibProtobufVersion=1.6.1
stdlibRandomVersion=1.5.0
stdlibTaskVersion=2.5.0
stdlibConstraintVersion=1.6.0-20241113-090900-d276ad5
stdlibCryptoVersion=2.7.3-20241113-081400-d015a39
stdlibLogVersion=2.10.1-20241113-120000-4577868
stdlibOsVersion=1.8.1-20241113-122000-cca973b
stdlibProtobufVersion=1.6.2-20241113-122200-13cac06
stdlibRandomVersion=1.5.1-20241113-122300-1bc770e
stdlibTaskVersion=2.5.1-20241113-123500-f905281

stdlibCacheVersion=3.8.0
stdlibFileVersion=1.9.0
stdlibMimeVersion=2.9.0
stdlibUuidVersion=1.8.0
stdlibCacheVersion=3.8.1-20241113-125700-b75a1bf
stdlibFileVersion=1.10.1-20241113-151700-e1a2e38
stdlibMimeVersion=2.10.2-20241113-154200-d953747
stdlibUuidVersion=1.8.1-20241113-154400-443c67b

stdlibAuthVersion=2.11.2
stdlibJwtVersion=2.12.1
stdlibOAuth2Version=2.11.0
stdlibAuthVersion=2.12.1-20241113-162300-ded40eb
stdlibJwtVersion=2.13.1-20241113-162400-b59ccfa
stdlibOAuth2Version=2.12.1-20241113-162400-4c6ddfe

stdlibHttpVersion=2.11.4
stdlibHttpVersion=2.13.0-20241114-182900-7e9f66a

# Ballerinax Observer
observeVersion=1.2.3
observeInternalVersion=1.2.2
observeVersion=1.4.0-20241113-092000-b83ae74
observeInternalVersion=1.3.1-20241113-101700-265054d
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class GrpcConstants {
public static final String DOT = ".";

public static final String PROTOCOL_PACKAGE_GRPC = "grpc";
public static final String PROTOCOL_PACKAGE_VERSION_GRPC = getModule().getVersion();
public static final String PROTOCOL_PACKAGE_VERSION_GRPC = getModule().getMajorVersion();
public static final String ORG_NAME = "ballerina";
public static final String PROTOCOL_STRUCT_PACKAGE_GRPC = ORG_NAME + ORG_NAME_SEPARATOR +
"grpc:" + PROTOCOL_PACKAGE_VERSION_GRPC;
Expand Down
7 changes: 5 additions & 2 deletions tooling-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ checkstyle {
checkstyleTest.dependsOn(":checkstyle:downloadCheckstyleRuleFiles")

spotbugsTest {
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
Expand Down

0 comments on commit 44956fd

Please sign in to comment.