This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new 355cfec0b build with Java 17 (#1162)
355cfec0b is described below

commit 355cfec0bb2be95f3f8d32d5f6449604dfe00064
Author: PJ Fanning <[email protected]>
AuthorDate: Thu Sep 11 10:12:10 2025 +0100

    build with Java 17 (#1162)
    
    * build with Java 17
    
    * build issues
    
    * Update build.sbt
    
    Update build.sbt
    
    Update build.sbt
    
    * Update README.md
---
 .github/workflows/check-build-test.yml | 12 ++++++------
 .github/workflows/headers.yml          |  4 ++--
 .github/workflows/link-validator.yml   |  4 ++--
 .github/workflows/nightly-builds.yaml  |  4 ++--
 .github/workflows/publish-nightly.yml  |  4 ++--
 .scala-steward.conf                    | 30 ------------------------------
 README.md                              |  2 +-
 build.sbt                              | 18 +++++++++++-------
 project/Common.scala                   |  2 +-
 project/plugins.sbt                    |  5 +++--
 project/project-info.conf              |  2 +-
 11 files changed, 31 insertions(+), 56 deletions(-)

diff --git a/.github/workflows/check-build-test.yml 
b/.github/workflows/check-build-test.yml
index b04bd1fe8..bdf80fb3b 100644
--- a/.github/workflows/check-build-test.yml
+++ b/.github/workflows/check-build-test.yml
@@ -38,11 +38,11 @@ jobs:
           fetch-tags: true
           fetch-depth: 0
 
-      - name: Setup Java 8
+      - name: Setup Java 17
         uses: actions/setup-java@v4
         with:
           distribution: temurin
-          java-version: 8
+          java-version: 17
 
       - name: Install sbt
         uses: sbt/setup-sbt@26ab4b0fa1c47fa62fc1f6e51823a658fb6c760c # v1.1.7
@@ -70,11 +70,11 @@ jobs:
           fetch-tags: true
           fetch-depth: 0
 
-      - name: Setup Java 11
+      - name: Setup Java 17
         uses: actions/setup-java@v4
         with:
           distribution: temurin
-          java-version: 11
+          java-version: 17
 
       - name: Install sbt
         uses: sbt/setup-sbt@26ab4b0fa1c47fa62fc1f6e51823a658fb6c760c # v1.1.7
@@ -158,11 +158,11 @@ jobs:
           fetch-tags: true
           fetch-depth: 0
 
-      - name: Setup Java 8
+      - name: Setup Java 17
         uses: actions/setup-java@v4
         with:
           distribution: temurin
-          java-version: 8
+          java-version: 17
 
       - name: Install sbt
         uses: sbt/setup-sbt@26ab4b0fa1c47fa62fc1f6e51823a658fb6c760c # v1.1.7
diff --git a/.github/workflows/headers.yml b/.github/workflows/headers.yml
index 83d9a924e..1dcf11cdf 100644
--- a/.github/workflows/headers.yml
+++ b/.github/workflows/headers.yml
@@ -33,11 +33,11 @@ jobs:
           fetch-tags: true
           fetch-depth: 0
 
-      - name: Setup Java 8
+      - name: Setup Java 17
         uses: actions/setup-java@v4
         with:
           distribution: temurin
-          java-version: 8
+          java-version: 17
 
       - name: Install sbt
         uses: sbt/setup-sbt@26ab4b0fa1c47fa62fc1f6e51823a658fb6c760c # v1.1.7
diff --git a/.github/workflows/link-validator.yml 
b/.github/workflows/link-validator.yml
index ebf77eca6..59ea8d668 100644
--- a/.github/workflows/link-validator.yml
+++ b/.github/workflows/link-validator.yml
@@ -24,11 +24,11 @@ jobs:
           fetch-tags: true
           fetch-depth: 0
 
-      - name: Setup Java 8
+      - name: Setup Java 17
         uses: actions/setup-java@v4
         with:
           distribution: temurin
-          java-version: 8
+          java-version: 17
 
       - name: Install sbt
         uses: sbt/setup-sbt@26ab4b0fa1c47fa62fc1f6e51823a658fb6c760c # v1.1.7
diff --git a/.github/workflows/nightly-builds.yaml 
b/.github/workflows/nightly-builds.yaml
index 998bd5a2a..2477e0d65 100644
--- a/.github/workflows/nightly-builds.yaml
+++ b/.github/workflows/nightly-builds.yaml
@@ -67,11 +67,11 @@ jobs:
         with:
           fetch-depth: 0
 
-      - name: Setup Java 8
+      - name: Setup Java 17
         uses: actions/setup-java@v4
         with:
           distribution: temurin
-          java-version: 8
+          java-version: 17
 
       - name: Install sbt
         uses: sbt/setup-sbt@26ab4b0fa1c47fa62fc1f6e51823a658fb6c760c # v1.1.7
diff --git a/.github/workflows/publish-nightly.yml 
b/.github/workflows/publish-nightly.yml
index b1619fc44..623cd432b 100644
--- a/.github/workflows/publish-nightly.yml
+++ b/.github/workflows/publish-nightly.yml
@@ -42,11 +42,11 @@ jobs:
           fetch-depth: 0
           ref: ${{ github.event_name == 'workflow_dispatch' && 
github.event.inputs.branch || matrix.branch }}
 
-      - name: Setup Java 8
+      - name: Setup Java 17
         uses: actions/setup-java@v4
         with:
           distribution: temurin
-          java-version: 8
+          java-version: 17
 
       - name: Install sbt
         uses: sbt/setup-sbt@26ab4b0fa1c47fa62fc1f6e51823a658fb6c760c # v1.1.7
diff --git a/.scala-steward.conf b/.scala-steward.conf
index bd1cca9e1..470e659c6 100644
--- a/.scala-steward.conf
+++ b/.scala-steward.conf
@@ -3,38 +3,8 @@ updates.pin  = [
   { groupId = "org.apache.hadoop", version = "3.3." }
   # pin to protobuf-java 3 - see 
https://github.com/apache/pekko-grpc/issues/245
   { groupId = "com.google.protobuf", version = "3." }
-  # spring-boot 3 requires Java 17
-  { groupId = "org.springframework.boot", version = "2." }
-  # spring-framework 6 requires Java 17
-  { groupId = "org.springframework", version = "5." }
-  # avro 1.12.+ requires Java 11
-  { groupId = "org.apache.avro", version = "1.11." }
   # solrj 9.+ requires Java 11
   { groupId = "org.apache.solr", version = "8." }
-  # mockito 5 requires Java 11 (only used in tests)
-  { groupId = "org.mockito", version = "4." }
-  # activemq 5.17+ requires Java 11 (only used in tests)
-  { groupId = "org.apache.activemq", version = "5.16." }
-  # jakarta 3.0+ requires Java 11
-  { groupId = "jakarta.jms", version = "3.0."}
-  # wiremock 3.0+ requires Java 11 (only used in tests)
-  { groupId = "com.github.tomakehurst", version = "2." }
-  # jetty 10.+ requires Java 11 (only used in tests - via wiremock)
-  { groupId = "org.eclipse.jetty", version = "9." }
-  { groupId = "org.eclipse.jetty.http2", version = "9." }
-  # hoverfly-java 0.20.0 requires Java 11
-  { groupId = "io.specto", artifactId = "hoverfly-java", version = "0.19" }
-  # Pin sbt-paradox to v0.9.x because 0.10.x needs JDK 11
-  { groupId = "com.lightbend.paradox", artifactId = 
"sbt-paradox-project-info", version = "0.9." },
-  { groupId = "com.lightbend.paradox", artifactId = "sbt-paradox", version = 
"0.9." }
-  # Pin sbt-java-formatter to v0.9.x because 0.10.x needs JDK 11
-  { groupId = "com.lightbend.sbt", artifactId = "sbt-java-formatter", version 
= "0.9." }
-  # Pin logback to v1.3.x because v1.4.x needs JDK11
-  { groupId = "ch.qos.logback", version="1.3." }
-  # Pin h2 to v2.2 because v2.3 needs JDK11
-  { groupId = "com.h2database", version="2.2." }
-  # Newer versions need JDK 11 https://github.com/slick/slick/issues/3030
-  { groupId = "com.typesafe.slick", version = "3.5.1"  }
   # https://github.com/apache/pekko-connectors/issues/503
   { groupId = "com.couchbase.client", artifactId = "java-client", version = 
"2." }
   # Scala 3.3 is a LTS
diff --git a/README.md b/README.md
index b1758aabb..a090d5d9c 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ To keep up with the latest releases check out [Pekko 
Connectors releases](https:
 
 ## Building From Source
 
-The build commands in the 
[pekko](https://github.com/apache/pekko?tab=readme-ov-file#building-from-source)
 repo are also useful here. Java 8 should work well for building from source 
with this repo. Building the Paradox docs is significatntly harder if you use 
Java 17 or above. You will need to specify a large number of `--add-opens` 
settings.
+The build commands in the 
[pekko](https://github.com/apache/pekko?tab=readme-ov-file#building-from-source)
 repo are also useful here. Java 17 should work well for building from source 
with the main branch. Pekko 1.x is best built with Java 8. If you build with 
newer versions of Java, you will need to specify a number of `--add-opens` 
settings.
 
 This repo contains shell scripts. These scripts are designed to help with the 
testing of Apache Pekko Connectors. Please avoid running the scripts without 
checking if you need to and try to understand what the script does first.
 
diff --git a/build.sbt b/build.sbt
index 38b2317c2..37174ce5c 100644
--- a/build.sbt
+++ b/build.sbt
@@ -218,8 +218,9 @@ lazy val googleCloudBigQuery = pekkoConnectorProject(
   "google.cloud.bigquery",
   Dependencies.GoogleBigQuery,
   Test / fork := true,
-  Compile / scalacOptions += 
"-Wconf:src=src_managed/.+:s").dependsOn(googleCommon).enablePlugins(
-  spray.boilerplate.BoilerplatePlugin)
+  Compile / scalacOptions += "-Wconf:src=src_managed/.+:s")
+  .dependsOn(googleCommon)
+  .enablePlugins(spray.boilerplate.BoilerplatePlugin)
 
 lazy val googleCloudBigQueryStorage = pekkoConnectorProject(
   "google-cloud-bigquery-storage",
@@ -234,8 +235,11 @@ lazy val googleCloudBigQueryStorage = 
pekkoConnectorProject(
   Compile / scalacOptions ++= Seq(
     "-Wconf:src=.+/pekko-grpc/main/.+:s",
     "-Wconf:src=.+/pekko-grpc/test/.+:s"),
-  compile / javacOptions := (compile / javacOptions).value.filterNot(_ == 
"-Xlint:deprecation")).dependsOn(
-  googleCommon).enablePlugins(PekkoGrpcPlugin)
+  compile / javacOptions := (compile / javacOptions).value.filterNot(_ == 
"-Xlint:deprecation"),
+  Test / fork := true,
+  Test / javaOptions ++= 
Seq("--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED")
+).dependsOn(googleCommon)
+  .enablePlugins(PekkoGrpcPlugin)
 
 lazy val googleCloudPubSub = pekkoConnectorProject(
   "google-cloud-pub-sub",
@@ -243,8 +247,8 @@ lazy val googleCloudPubSub = pekkoConnectorProject(
   Dependencies.GooglePubSub,
   Test / fork := true,
   // See docker-compose.yml gcloud-pubsub-emulator_prep
-  Test / envVars := Map("PUBSUB_EMULATOR_HOST" -> "localhost", 
"PUBSUB_EMULATOR_PORT" -> "8538")).dependsOn(
-  googleCommon)
+  Test / envVars := Map("PUBSUB_EMULATOR_HOST" -> "localhost", 
"PUBSUB_EMULATOR_PORT" -> "8538"))
+  .dependsOn(googleCommon)
 
 lazy val googleCloudPubSubGrpc = pekkoConnectorProject(
   "google-cloud-pub-sub-grpc",
@@ -467,7 +471,7 @@ lazy val `doc-examples` = project
   .enablePlugins(AutomateHeaderPlugin)
   .disablePlugins(MimaPlugin, SitePlugin)
   .settings(
-    name := s"pekko-connectors-doc-examples",
+    name := "pekko-connectors-doc-examples",
     publish / skip := true,
     Dependencies.`Doc-examples`)
 
diff --git a/project/Common.scala b/project/Common.scala
index fdceba650..bde24da7e 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -64,7 +64,7 @@ object Common extends AutoPlugin {
       "-Ywarn-dead-code",
       "-Wconf:cat=unused-nowarn:s",
       "-Wconf:msg=Prefer the Scala annotation over Java's `@Deprecated`:s",
-      "-release:8"),
+      "-release:17"),
     Compile / doc / scalacOptions := scalacOptions.value ++ Seq(
       "-doc-title",
       "Apache Pekko Connectors",
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 46448eccc..f00e7c8de 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -22,8 +22,9 @@ addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % 
"0.9.0")
 
 // docs
 addSbtPlugin("org.apache.pekko" % "pekko-sbt-paradox" % "1.0.1")
-addSbtPlugin(("com.github.sbt" % "sbt-site-paradox" % "1.7.0").excludeAll(
-  "com.lightbend.paradox", "sbt-paradox"))
+addSbtPlugin("com.github.sbt" % "sbt-site-paradox" % "1.7.0")
+addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-theme" % "0.10.7")
+addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.10.7")
 
 addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.6.0")
 addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % 
"3.0.2")
diff --git a/project/project-info.conf b/project/project-info.conf
index dd95b47b0..dc58ac470 100644
--- a/project/project-info.conf
+++ b/project/project-info.conf
@@ -5,7 +5,7 @@ project-info {
   labels: "https://github.com/apache/pekko-connectors/labels/p%3A";
   scaladoc: 
"https://pekko.apache.org/api/pekko-connectors/"${project-info.version}"/org/apache/pekko/stream/connectors/";
   shared-info {
-    jdk-versions: ["OpenJDK 8", "OpenJDK 11", "OpenJDK 17", "OpenJDK 21"]
+    jdk-versions: ["OpenJDK 17", "OpenJDK 21"]
     snapshots: {
       url: "other-docs/snapshots.html"
       text: "Snapshots are available"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to