Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #4036

Merged
merged 8 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
import com.linecorp.armeria.server.ServiceRequestContext;
import com.linecorp.armeria.server.throttling.ThrottlingStrategy;

import io.github.bucket4j.AsyncBucket;
import io.github.bucket4j.Bucket4j;
import io.github.bucket4j.Bucket;
import io.github.bucket4j.BucketConfiguration;
import io.github.bucket4j.ConfigurationBuilder;
import io.github.bucket4j.TokensInheritanceStrategy;
import io.github.bucket4j.distributed.AsyncBucketProxy;
import io.github.bucket4j.distributed.AsyncBucketProxyAdapter;
import io.github.bucket4j.local.LocalBucketBuilder;

/**
Expand All @@ -50,7 +52,7 @@ public static <T extends Request> TokenBucketThrottlingStrategyBuilder<T> builde
return new TokenBucketThrottlingStrategyBuilder<>(tokenBucket);
}

private final AsyncBucket asyncBucket;
private final AsyncBucketProxy asyncBucket;
private final long minimumBackoffSeconds;
@Nullable
private final ThrottlingHeaders headersScheme;
Expand Down Expand Up @@ -78,12 +80,12 @@ public static <T extends Request> TokenBucketThrottlingStrategyBuilder<T> builde
@Nullable String name) {
super(name);
// construct the bucket builder
final LocalBucketBuilder builder = Bucket4j.builder().withNanosecondPrecision();
final LocalBucketBuilder builder = Bucket.builder().withNanosecondPrecision();
for (BandwidthLimit limit : tokenBucket.limits()) {
builder.addLimit(limit.bandwidth());
}
// build the bucket
asyncBucket = builder.build().asAsync();
asyncBucket = AsyncBucketProxyAdapter.fromSync(builder.build());
minimumBackoffSeconds = (minimumBackoff == null) ? 0L : minimumBackoff.getSeconds();
this.headersScheme = headersScheme;
this.sendQuota = sendQuota;
Expand All @@ -98,7 +100,7 @@ public static <T extends Request> TokenBucketThrottlingStrategyBuilder<T> builde
*/
public CompletableFuture<Void> reconfigure(TokenBucket tokenBucket) {
// construct the configuration builder
final ConfigurationBuilder builder = Bucket4j.configurationBuilder();
final ConfigurationBuilder builder = BucketConfiguration.builder();
for (BandwidthLimit limit : tokenBucket.limits()) {
builder.addLimit(limit.bandwidth());
}
Expand All @@ -112,7 +114,7 @@ public CompletableFuture<Void> reconfigure(TokenBucket tokenBucket) {
* Registers a request with the bucket.
*/
@Override
public CompletionStage<Boolean> accept(final ServiceRequestContext ctx, final T request) {
public CompletionStage<Boolean> accept(ServiceRequestContext ctx, T request) {
return asyncBucket.tryConsumeAndReturnRemaining(1L).thenApply(probe -> {
final boolean accepted = probe.isConsumed();
final long remainingTokens = probe.getRemainingTokens();
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
// If you want to change `org.jetbrains.kotlin.jvm` version,
// you also need to change `org.jetbrains.kotlin:kotlin-allopen` version in `dependencies.yml`.
id 'org.jetbrains.kotlin.jvm' version '1.5.32' apply false
id 'org.jetbrains.kotlin.jvm' version '1.6.10' apply false
id 'org.jlleitschuh.gradle.ktlint' version '10.1.0' apply false

id 'net.ltgt.errorprone' version '2.0.2' apply false
Expand Down
93 changes: 50 additions & 43 deletions dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#

boms:
- com.fasterxml.jackson:jackson-bom:2.13.0
- io.dropwizard.metrics:metrics-bom:4.2.4
- com.fasterxml.jackson:jackson-bom:2.13.1
- io.dropwizard.metrics:metrics-bom:4.2.7
# Ensure that we use the same Protobuf version as what gRPC depends on.
# See: https://github.com/grpc/grpc-java/blob/master/build.gradle
# (Switch to the right tag and look for 'protobufVersion' and 'protocVersion'.)
- io.grpc:grpc-bom:1.43.2
- io.micrometer:micrometer-bom:1.7.6
- io.netty:netty-bom:4.1.70.Final
- io.zipkin.brave:brave-bom:5.13.3
- io.micrometer:micrometer-bom:1.8.2
- io.netty:netty-bom:4.1.73.Final
- io.zipkin.brave:brave-bom:5.13.7
- org.eclipse.jetty:jetty-bom:9.4.44.v20210927
- org.junit:junit-bom:5.8.2

Expand All @@ -24,9 +24,9 @@ ch.megard:

ch.qos.logback:
logback-classic:
version: '1.2.7'
version: '1.2.10'
javadocs:
- https://www.javadoc.io/doc/ch.qos.logback/logback-classic/1.2.7/
- https://www.javadoc.io/doc/ch.qos.logback/logback-classic/1.2.10/

com.aayushatharva.brotli4j:
brotli4j: { version: &BROTLI4J_VERSION '1.6.0' }
Expand All @@ -36,13 +36,13 @@ com.aayushatharva.brotli4j:

com.auth0:
java-jwt:
version: '3.18.2'
version: '3.18.3'
javadocs:
- https://www.javadoc.io/doc/com.auth0/java-jwt/3.18.2/
- https://www.javadoc.io/doc/com.auth0/java-jwt/3.18.3/

# This is only used for examples/graphql-kotlin
com.expediagroup:
graphql-kotlin-client: { version: &GRAPHQL_KOTLIN_VERSION '5.1.1' }
graphql-kotlin-client: { version: &GRAPHQL_KOTLIN_VERSION '5.3.2' }
graphql-kotlin-client-jackson: { version: *GRAPHQL_KOTLIN_VERSION }
graphql-kotlin-client-serialization: { version: *GRAPHQL_KOTLIN_VERSION }
graphql-kotlin-schema-generator: { version: *GRAPHQL_KOTLIN_VERSION }
Expand All @@ -61,11 +61,11 @@ com.fasterxml.jackson.core:
# Don't upgrade Caffeine to 3.x that requires Java 11.
com.github.ben-manes.caffeine:
caffeine:
version: '2.9.2'
version: '2.9.3'
exclusions:
- com.google.errorprone:error_prone_annotations
javadocs:
- https://www.javadoc.io/doc/com.github.ben-manes.caffeine/caffeine/2.9.2/
- https://www.javadoc.io/doc/com.github.ben-manes.caffeine/caffeine/2.9.3/
relocations:
- from: com.github.benmanes.caffeine
to: com.linecorp.armeria.internal.shaded.caffeine
Expand All @@ -77,14 +77,14 @@ com.github.node-gradle:
gradle-node-plugin: { version: '3.1.1' }

com.google.api:
gax-grpc: { version: '1.67.0' }
gax-grpc: { version: '2.9.0' }

com.google.code.findbugs:
jsr305: { version: '3.0.2' }

# This is only used for examples/context-propagation/dagger
com.google.dagger:
dagger: { version: &DAGGER_VERSION '2.37' }
dagger: { version: &DAGGER_VERSION '2.40.5' }
dagger-compiler: { version: *DAGGER_VERSION }
dagger-producers: { version: *DAGGER_VERSION }

Expand Down Expand Up @@ -153,13 +153,13 @@ com.netflix.eureka:

# DGS is used only for testing in it:dgs module.
com.netflix.graphql.dgs:
graphql-dgs-client: { version: '4.9.10' }
graphql-dgs-client: { version: '4.9.16' }

com.pszymczyk.consul:
embedded-consul: { version: '2.2.1' }

com.puppycrawl.tools:
checkstyle: { version: '8.45.1' }
checkstyle: { version: '9.2.1' }

com.salesforce.servicelibs:
reactor-grpc: { version: &REACTVIVE_GRPC_VERSION '1.2.3' }
Expand All @@ -186,12 +186,15 @@ com.squareup.retrofit2:
converter-jackson: { version: *RETROFIT2_VERSION }

com.thesamet.scalapb:
scalapb-runtime_2.12: { version: &SCALAPB_VERSION '0.11.6' }
scalapb-runtime_2.12: { version: &SCALAPB_VERSION '0.11.8' }
scalapb-runtime_2.13: { version: *SCALAPB_VERSION }
scalapb-runtime_3: { version: *SCALAPB_VERSION }
scalapb-runtime-grpc_2.12: { version: *SCALAPB_VERSION }
scalapb-runtime-grpc_2.13: { version: *SCALAPB_VERSION }
scalapb-runtime-grpc_3: { version: *SCALAPB_VERSION }
scalapb-json4s_2.12: { version: &SCALAPB_JSON4S_VERSION '0.12.0' }
scalapb-json4s_2.13: { version: *SCALAPB_JSON4S_VERSION }
scalapb-json4s_3: { version: *SCALAPB_JSON4S_VERSION }

# Akka is used only for testing in it:grpcweb module.
com.typesafe.akka:
Expand All @@ -202,7 +205,7 @@ com.typesafe.akka:
# Finagle is used only for testing in zookeeper module.
com.twitter:
finagle-serversets_2.13:
version: '21.9.0'
version: '22.1.0'

cz.alenkacz:
gradle-scalafmt: { version: '1.16.2' }
Expand All @@ -212,7 +215,7 @@ gradle.plugin.net.davidecavestro:

io.dropwizard:
dropwizard-core:
version: &DROPWIZARD_VERSION '2.0.25'
version: &DROPWIZARD_VERSION '2.0.28'
javadocs:
- https://www.javadoc.io/doc/io.dropwizard/dropwizard-core/2.0.25/
dropwizard-jackson: { version: *DROPWIZARD_VERSION }
Expand Down Expand Up @@ -249,7 +252,7 @@ io.grpc:
- io.netty:netty-handler-proxy
- io.netty:netty-transport
- io.netty:netty-tcnative-boringssl-static
grpc-kotlin-stub: { version: &GRPC_KOTLIN_VERSION '1.1.0' }
grpc-kotlin-stub: { version: &GRPC_KOTLIN_VERSION '1.2.0' }
protoc-gen-grpc-kotlin: { version: *GRPC_KOTLIN_VERSION }

io.micrometer:
Expand All @@ -270,18 +273,19 @@ io.micrometer:
io.monix:
monix-reactive_2.12: { version: &MONIX_VERSION '3.4.0' }
monix-reactive_2.13: { version: *MONIX_VERSION }
monix-reactive_3: { version: *MONIX_VERSION }

io.netty:
netty-common:
javadocs:
- https://netty.io/4.1/api/

io.netty.incubator:
netty-incubator-transport-native-io_uring: { version: '0.0.10.Final' }
netty-incubator-transport-native-io_uring: { version: '0.0.11.Final' }

io.projectreactor:
reactor-core:
version: &REACTOR_VERSION '3.4.12'
version: &REACTOR_VERSION '3.4.14'
javadocs:
- https://projectreactor.io/docs/core/release/api/
reactor-test: { version: *REACTOR_VERSION }
Expand All @@ -291,7 +295,7 @@ io.projectreactor.kotlin:

io.prometheus:
simpleclient_common:
version: '0.12.0'
version: '0.14.1'
javadocs:
- https://prometheus.github.io/client_java/

Expand Down Expand Up @@ -408,7 +412,7 @@ org.apache.thrift:

org.apache.tomcat.embed:
tomcat-embed-core:
version: &TOMCAT_VERSION '9.0.55'
version: &TOMCAT_VERSION '9.0.56'
javadocs:
- https://tomcat.apache.org/tomcat-9.0-doc/api/
tomcat-embed-jasper: { version: *TOMCAT_VERSION }
Expand All @@ -426,14 +430,14 @@ org.apache.zookeeper:
- org.slf4j:slf4j-log4j12

org.assertj:
assertj-core: { version: '3.21.0' }
assertj-core: { version: '3.22.0' }

org.awaitility:
awaitility: { version: '4.1.1' }

org.bouncycastle:
bcpkix-jdk15on:
version: &BOUNCYCASTLE_VERSION '1.69'
version: &BOUNCYCASTLE_VERSION '1.70'
relocations:
- from: org.bouncycastle
to: com.linecorp.armeria.internal.shaded.bouncycastle
Expand All @@ -453,7 +457,7 @@ org.checkerframework:

org.curioswitch.curiostack:
protobuf-jackson:
version: '1.2.0'
version: '2.0.0'
exclusions:
- javax.annotation:javax.annotation-api
javadocs:
Expand Down Expand Up @@ -495,18 +499,18 @@ org.jctools:
# If you want to change `org.jetbrains.kotlin:kotlin-allopen` version,
# you also need to change `org.jetbrains.kotlin.jvm` version in `build.gradle`.
org.jetbrains.kotlin:
kotlin-allopen: { version: &KOTLIN_VERSION '1.5.32' }
kotlin-allopen: { version: &KOTLIN_VERSION '1.6.10' }
kotlin-reflect: { version: *KOTLIN_VERSION }

org.jetbrains.kotlinx:
kotlinx-coroutines-core: { version: &KOTLIN_COROUTINE_VERSION '1.5.2' }
kotlinx-coroutines-core: { version: &KOTLIN_COROUTINE_VERSION '1.6.0' }
kotlinx-coroutines-jdk8: { version: *KOTLIN_COROUTINE_VERSION }
# kotlinx-coroutines-reactor is only used for testing :it:spring:boot2-kotlin
kotlinx-coroutines-reactor: { version: *KOTLIN_COROUTINE_VERSION }
kotlinx-coroutines-rx2: { version: *KOTLIN_COROUTINE_VERSION }

org.jlleitschuh.gradle:
ktlint-gradle: { version: '10.2.0' }
ktlint-gradle: { version: '10.2.1' }

org.jooq:
joor: { version: '0.9.14' }
Expand All @@ -515,14 +519,14 @@ org.jsoup:
jsoup: { version: '1.14.3' }

org.mockito:
mockito-core: { version: &MOCKITO_VERSION '4.0.0' }
mockito-core: { version: &MOCKITO_VERSION '4.2.0' }
mockito-junit-jupiter: { version: *MOCKITO_VERSION }

org.mortbay.jetty.alpn:
jetty-alpn-agent: { version: '2.0.10' }

org.openjdk.jmh:
jmh-core: { version: &JMH_VERSION '1.33' }
jmh-core: { version: &JMH_VERSION '1.34' }
jmh-generator-annprocess: { version: *JMH_VERSION }

# Don't upgrade OpenSAML to 4.x that requires Java 11.
Expand Down Expand Up @@ -555,16 +559,19 @@ org.reflections:
to: com.linecorp.armeria.internal.shaded.reflections

org.scala-lang:
scala-library: { version: '2.13.7' }
scala-library: { version: '2.13.8' }
scala3-library_3: { version: '3.1.0' }

org.scala-lang.modules:
scala-collection-compat_2.12: { version: '2.5.0' }
scala-collection-compat_2.12: { version: '2.6.0' }
scala-java8-compat_2.12: { version: &SCALA_JAVA8_COMPAT_VERSION '1.0.2' }
scala-java8-compat_2.13: { version: *SCALA_JAVA8_COMPAT_VERSION }
scala-java8-compat_3: { version: *SCALA_JAVA8_COMPAT_VERSION }

org.scalameta:
munit_2.12: { version: &MUNIT_VERSION '0.7.29' }
munit_2.13: { version: *MUNIT_VERSION }
munit_3: { version: *MUNIT_VERSION }

org.sangria-graphql:
sangria_2.12: { version: &SANGRIA_VERSION '2.1.6' }
Expand All @@ -573,13 +580,13 @@ org.sangria-graphql:
sangria-slowlog_2.13: { version: *SANGRIA_SLOWLOG_VERSION }

org.slf4j:
jcl-over-slf4j: { version: &SLF4J_VERSION '1.7.32' }
jcl-over-slf4j: { version: &SLF4J_VERSION '1.7.33' }
jul-to-slf4j: { version: *SLF4J_VERSION }
log4j-over-slf4j: { version: *SLF4J_VERSION }
slf4j-api:
version: *SLF4J_VERSION
javadocs:
- https://www.javadoc.io/doc/org.slf4j/slf4j-api/1.7.31/
- https://www.javadoc.io/doc/org.slf4j/slf4j-api/1.7.33/
slf4j-simple: { version: *SLF4J_VERSION }

org.springframework:
Expand All @@ -604,7 +611,7 @@ org.springframework.boot:
spring-boot-gradle-plugin: { version: *SPRING_BOOT_VERSION }

org.testng:
testng: { version: '7.4.0' }
testng: { version: '7.5' }

org.xerial.snappy:
snappy-java: { version: '1.1.8.4' }
Expand All @@ -618,25 +625,25 @@ xml-apis:

com.github.vladimir-bukhtoyarov:
bucket4j-core:
version: '6.3.0'
version: '7.0.0'
javadocs:
- https://javadoc.io/doc/com.github.vladimir-bukhtoyarov/bucket4j-core/6.3.0/
- https://javadoc.io/doc/com.github.vladimir-bukhtoyarov/bucket4j-core/7.0.0/

org.jboss.resteasy:
resteasy-core-spi:
version: &RESTEASY_VERSION '4.7.3.Final'
version: &RESTEASY_VERSION '5.0.2.Final'
javadocs:
- https://docs.jboss.org/resteasy/docs/4.6.0.Final/javadocs/
- https://docs.jboss.org/resteasy/docs/5.0.2.Final/javadocs/
resteasy-core: { version: *RESTEASY_VERSION }
resteasy-client: { version: *RESTEASY_VERSION }
resteasy-jackson2-provider: { version: *RESTEASY_VERSION }

# "provided" dependency required by RESTEasy 'resteasy-core-spi'
org.jboss.logging:
jboss-logging:
version: '3.4.2.Final'
version: '3.4.3.Final'
javadocs:
- https://javadoc.io/doc/org.jboss.logging/jboss-logging/3.4.2.Final/
- https://javadoc.io/doc/org.jboss.logging/jboss-logging/3.4.3.Final/
jboss-logging-annotations:
version: '2.2.1.Final'
javadocs:
Expand Down
Loading