Repository: trinsic-id/okapi (language: python)

Issue:
OpenJDK 11 compatibility
Content here: https://github.com/trinsic-id/sdk/issues/1114


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/release-java.yml b/.github/workflows/release-java.yml
index ce55cce5..f3a2e804 100644
--- a/.github/workflows/release-java.yml
+++ b/.github/workflows/release-java.yml
@@ -22,8 +22,8 @@ jobs:
       - name: Set up JDK
         uses: actions/setup-java@v3
         with:
-          java-version: '15'
-          distribution: 'adopt'
+          java-version: '11'
+          distribution: 'temurin'
       - name: Set up Python 3.9
         uses: actions/setup-python@v4
         with:
diff --git a/java/build.gradle b/java/build.gradle
index 4a074ecd..e9f3f18f 100644
--- a/java/build.gradle
+++ b/java/build.gradle
@@ -11,6 +11,11 @@ plugins {
     id 'maven-publish'
     id 'jacoco'
 }
+java {
+    toolchain {
+        languageVersion = JavaLanguageVersion.of(11)
+    }
+}
 
 // Gradle doesn't allow these at the top of the file - go figure?
 def jarDomainId = "id"
diff --git a/ruby/okapi.gemspec b/ruby/okapi.gemspec
index 03647577..51ae3633 100644
--- a/ruby/okapi.gemspec
+++ b/ruby/okapi.gemspec
@@ -35,5 +35,5 @@ Gem::Specification.new do |spec|
   spec.add_development_dependency 'minitest-reporters', '~>1.4'
   spec.add_development_dependency 'simplecov', '~> 0.21'
   spec.add_development_dependency 'simplecov-cobertura', '~> 1.4'
-  spec.metadata['rubygems_mfa_required'] = 'true'
+  spec.metadata['rubygems_mfa_required'] = 'false'
 end


Test patch:
diff --git a/java/src/test/java/OberonTest.java b/java/src/test/java/OberonTest.java
index 2a9547b9..bcb63b4d 100644
--- a/java/src/test/java/OberonTest.java
+++ b/java/src/test/java/OberonTest.java
@@ -35,7 +35,7 @@ void testOberonDemo() throws InvalidProtocolBufferException, DidException {
                 .setProof(proof.getProof())
                 .build());
 
-    Assertions.assertTrue(256 == proof.getProof().size());
+    Assertions.assertEquals(256, proof.getProof().size());
     Assertions.assertTrue(result.getValid());
   }