Skip to content

Commit

Permalink
Merge branch 'apache:main' into upgrade-protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Jul 27, 2023
2 parents 5656d6e + a59c6d6 commit 718ffb3
Show file tree
Hide file tree
Showing 270 changed files with 421 additions and 377 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
strategy:
fail-fast: false
matrix:
SCALA_VERSION: [2.12, 2.13]
SCALA_VERSION: [2.12, 2.13, 3.3]
JAVA_VERSION: [8, 11]
steps:
- name: Checkout
Expand Down Expand Up @@ -105,8 +105,6 @@ jobs:
scala-version: 2.12
- test-set: gen-java
scala-version: 2.12
- test-set: scala3
scala-version: 3.3
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -149,7 +147,7 @@ jobs:
cat ~/.version
- name: Cache local Gradle repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down Expand Up @@ -205,7 +203,7 @@ jobs:
cat ~/.version
- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('plugin-tester-*/pom.xml') }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Link Validator

on:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'

Expand All @@ -17,23 +18,23 @@ jobs:
# fetch everything https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0

- name: Setup Java 8
- name: Setup Java 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11

- name: Cache Coursier cache
uses: coursier/cache-action@v6
uses: coursier/cache-action@v6.4.0

- name: Setup Coursier
uses: coursier/setup-action@v1.3.3

- name: sbt site
run: sbt docs/makeSite

- name: Install Coursier command line tool
run: curl -fLo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs

- name: Run Link Validator
run: |
VERSION=$(ls docs/target/site/docs/pekko-grpc)
sed -e "s/snapshot/$VERSION/" scripts/link-validator.conf > /tmp/link-validator.conf
./cs launch net.runne::site-link-validator:0.2.0 -- /tmp/link-validator.conf
cs launch net.runne::site-link-validator:0.2.2 -- /tmp/link-validator.conf
2 changes: 1 addition & 1 deletion benchmark-java/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.0
sbt.version=1.9.2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
27 changes: 22 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
*/

import org.apache.pekko.grpc.Dependencies
import org.apache.pekko.grpc.Dependencies.Versions.{ scala212, scala213 }
import org.apache.pekko.grpc.ProjectExtensions._
Expand All @@ -7,9 +16,16 @@ import com.typesafe.tools.mima.core._
import sbt.Keys.scalaVersion

ThisBuild / apacheSonatypeProjectProfile := "pekko"
sourceDistName := "incubating-pekko-grpc"
sourceDistName := "apache-pekko-grpc"
sourceDistIncubating := true
ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)

commands := commands.value.filterNot { command =>
command.nameOption.exists { name =>
name.contains("sonatypeRelease") || name.contains("sonatypeBundleRelease")
}
}

val pekkoPrefix = "pekko-grpc"
val pekkoGrpcRuntimeName = s"$pekkoPrefix-runtime"

Expand All @@ -18,8 +34,9 @@ lazy val mkBatAssemblyTask = taskKey[File]("Create a Windows bat assembly")
// gradle plugin compatibility (avoid `+` in snapshot versions)
(ThisBuild / dynverSeparator) := "-"

// TODO remove these resolvers when we start using released Pekko jars
ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshot") // TODO Remove when proper release of pekko-http-cors is made
ThisBuild / updateOptions := updateOptions.value.withLatestSnapshots(false)

val pekkoGrpcCodegenId = s"$pekkoPrefix-codegen"
lazy val codegen = Project(id = "codegen", base = file("codegen"))
Expand Down Expand Up @@ -203,9 +220,9 @@ lazy val docs = Project(id = "docs", base = file("docs"))
"canonical.base_url" -> "https://pekko.apache.org/docs/pekko-grpc/current",
"scaladoc.scala.base_url" -> s"https://www.scala-lang.org/api/current/",
// Apache Pekko
"extref.pekko.base_url" -> s"https://pekko.apache.org/docs/pekko-grpc/current/%s",
"scaladoc.pekko.base_url" -> "https://pekko.apache.org/docs/pekko-grpc/current/",
"javadoc.pekko.base_url" -> "https://pekko.apache.org/docs/pekko-grpc/current/",
"extref.pekko.base_url" -> s"https://pekko.apache.org/docs/pekko/current/%s",
"scaladoc.pekko.base_url" -> "https://pekko.apache.org/docs/pekko/current/",
"javadoc.pekko.base_url" -> "https://pekko.apache.org/docs/pekko/current/",
// Apache Pekko HTTP
"extref.pekko-http.base_url" -> s"https://pekko.apache.org/docs/pekko-http/${Dependencies.Versions.pekkoHttpBinary}/%s",
"scaladoc.pekko-http.base_url" -> s"https://pekko.apache.org/api/pekko-http/${Dependencies.Versions.pekkoHttpBinary}/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*@

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*@

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*@

@*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, derived from Akka.
* This file is part of the Apache Pekko project, which was derived from Akka.
*@

@*
Expand Down
Loading

0 comments on commit 718ffb3

Please sign in to comment.