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

Update dependencies #4036

merged 8 commits into from
Jan 25, 2022

Conversation

ikhoon
Copy link
Contributor

@ikhoon ikhoon commented Jan 18, 2022

  • Brave 5.13.3 -> 5.13.7
  • Bouncy Castle 1.69 -> 1.70
  • Bucket4J 6.3.0 -> 7.0.0
  • Caffeine 2.9.2 -> 2.9.3
  • Dropwizard 2.0.25 -> 2.0.28
  • Dropwizard Metrics 4.2.4 -> 4.2.7
  • gRPC Java 1.41.1 -> 1.41.2
  • gRPC Kotlin 1.1.0 -> 1.2.1
  • Jackson 2.13.0 -> 2.13.1
  • java-jwt 3.18.2 -> 3.18.3
  • jcl-over-slf4j 1.7.32 -> 1.7.33
  • jboss-logging 3.4.2 -> 3.4.3
  • Kafka 3.0.0 -> 3.1.0
  • Kotlin 1.5.32 -> 1.6.10
  • Logback 1.2.7 -> 1.2.10
  • Micrometer 1.7.6 -> 1.8.2
  • Netty 4.1.70 -> 4.1.73
    • io_uring 0.0.1 -> 0.0.11
  • Prometheus 0.12.0 -> 0.14.1
  • protobuf-jackson 1.2.0 -> 2.0.0
  • protobuf-java 3.17.3 -> 3.19.2
  • Reactor 3.4.12 -> 3.4.14
  • RESTEasy 4.7.3 -> 5.0.2
  • Scala 2.13.7 -> 2.13.8, 3.1.1(new)
  • scala-collection-compat 2.5.0 -> 2.6.0
  • ScalaPB 0.11.6 -> 0.11.8
  • SLF4J 1.7.33 -> 1.7.34
  • Spring 5.3.13 -> 5.3.15
  • Spring Boot 2.5.7 -> 2.6.2
  • Tomcat 9.0.55 -> 9.0.56
  • Build
    • AssertJ 3.21.0 -> 3.22.0
    • Checkstyle 8.45.1 -> 9.2.1
    • Dagger 2.37 -> 2.40.5
    • Finagle 2.0.25 -> 2.0.28
    • graphql-dgs-client 4.9.10 -> 4.9.16
    • graphql-kotlin 5.1.1 -> 5.3.2
    • gax-grpc 1.67.0 -> 2.10.0
    • JMH 1.33 -> 1.34
    • ktlint 10.2.0 -> 10.2.1
    • Mockito 4.0.0 -> 4.3.0
    • TestNG 7.4.0 -> 7.5
  • Fixes Support for Scala 3 #3614

@ikhoon ikhoon added this to the 1.14.0 milestone Jan 18, 2022
@ikhoon
Copy link
Contributor Author

ikhoon commented Jan 18, 2022

TODO: Fix the failed tests in the Actuator module.

- Brave 5.13.3 -> 5.13.7
- Bouncy Castle 1.69 -> 1.70
- Bucket4J 6.3.0 -> 7.0.0
- Caffeine 2.9.2 -> 2.9.3
- Dropwizard 2.0.25 -> 2.0.28
- Dropwizard Metrics 4.2.4 -> 4.2.7
- gRPC Java 1.41.1 -> 1.41.2
- gRPC Kotlin 1.1.0 -> 1.2.0
- Jackson 2.13.0 -> 2.13.1
- java-jwt 3.18.2 -> 3.18.3
- jcl-over-slf4j 1.7.32 -> 1.7.33
- jboss-logging 3.4.2 -> 3.4.3
- Kotlin 1.5.32 -> 1.6.10
- Logback 1.2.7 -> 1.2.10
- Micrometer 1.7.6 -> 1.8.2
- Netty 4.1.70 -> 4.1.73
  - io_uring 0.0.1 -> 0.0.11
- Prometheus 0.12.0 -> 0.14.1
- protobuf-jackson 1.2.0 -> 2.0.0
- protobuf-java 3.17.3 -> 3.19.2
- Reactor 3.4.12 -> 3.4.14
- RESTEasy 4.7.3 -> 5.0.2
- Scala 3.13.7 -> 2.13.8
- scala-collection-compat 2.5.0 -> 2.6.0
- ScalaPB 0.11.6 -> 0.11.8
- Spring 5.3.13 -> 5.3.15
- Spring Boot 2.5.7 -> 2.6.2
- Tomcat 9.0.55 -> 9.0.56
- Build
  - AssertJ 3.21.0 -> 3.22.0
  - Checkstyle 8.45.1 -> 9.2.1
  - Dagger 2.37 -> 2.40.5
  - Finagle 2.0.25 -> 2.0.28
  - graphql-dgs-client 4.9.10 -> 4.9.16
  - graphql-kotlin 5.1.1 -> 5.3.2
  - gax-grpc 1.67.0 -> 2.9.0
  - JMH 1.33 -> 1.34
  - ktlint 10.2.0 -> 10.2.1
  - Mockito  4.0.0 -> 4.2.0
  - TestNG 7.4.0 -> 7.5
@ikhoon ikhoon marked this pull request as ready for review January 19, 2022 02:44
@ikhoon
Copy link
Contributor Author

ikhoon commented Jan 19, 2022

TODO: Fix the failed tests in the Actuator module.

Decided that Spring (Boot) be upgraded in a separate PR.

@codecov
Copy link

codecov bot commented Jan 19, 2022

Codecov Report

Merging #4036 (b0d0891) into master (1284b5e) will decrease coverage by 0.01%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #4036      +/-   ##
============================================
- Coverage     73.41%   73.40%   -0.02%     
  Complexity    15934    15934              
============================================
  Files          1386     1386              
  Lines         60866    60869       +3     
  Branches       7715     7715              
============================================
- Hits          44687    44682       -5     
+ Misses        12275    12268       -7     
- Partials       3904     3919      +15     
Impacted Files Coverage Δ
...ttling/bucket4j/TokenBucketThrottlingStrategy.java 80.64% <66.66%> (ø)
.../internal/common/kotlin/FlowCollectingPublisher.kt 89.47% <100.00%> (+1.23%) ⬆️
...on/kotlin/FlowResponseConverterFunctionProvider.kt 63.63% <0.00%> (-9.10%) ⬇️
...ria/server/annotated/kotlin/ContextAwareService.kt 92.85% <0.00%> (-7.15%) ⬇️
...rnal/common/GracefulConnectionShutdownHandler.java 68.08% <0.00%> (-6.39%) ⬇️
...in/example/armeria/grpc/kotlin/HelloServiceImpl.kt 90.32% <0.00%> (-2.79%) ⬇️
...rmeria/common/stream/ConcatArrayStreamMessage.java 77.77% <0.00%> (-2.23%) ⬇️
...ia/internal/common/stream/ByteBufDecoderInput.java 84.89% <0.00%> (-2.16%) ⬇️
...p/armeria/common/stream/AbstractStreamMessage.java 79.20% <0.00%> (-1.99%) ⬇️
...nternal/common/AbstractHttp2ConnectionHandler.java 86.53% <0.00%> (-1.93%) ⬇️
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1284b5e...b0d0891. Read the comment docs.

@ikhoon
Copy link
Contributor Author

ikhoon commented Jan 19, 2022

Working on supporting Scala 3. Let me ship it in this PR together. 😀

.whenStopping { server: Server => server.activePorts }
.whenStopped { server: Server => println(s"$server is stopped.") }
.whenStopped { server: Server => server.isClosed }
.whenStarting { (server: Server) => println(s"$server is starting.") }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter of a lambda is now required to be enclosed in parentheses.
https://docs.scala-lang.org/scala3/guides/migration/incompat-syntactic.html#parentheses-around-lambda-parameter

@@ -45,11 +45,13 @@ class ScalaPbRequestConverterFunctionTest {

@Test
def failProtobufToCollection(): Unit = {
val typeToken = new TypeToken[List[SimpleRequest]]() {}
val typeToken = new TypeReference[List[SimpleRequest]]() {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scala 3 fails to read the bytecode of TypeToken properly. 😅

jsonParser: Parser = jsonDefaultParser
) extends GrpcJsonMarshaller {

// TODO(ikhoon): Remove this forked file if https://github.com/lampepfl/dotty/issues/11332 is fixed.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forked to avoid using MethodHandle which is not supported yet. 😅

@ikhoon
Copy link
Contributor Author

ikhoon commented Jan 19, 2022

Working on supporting Scala 3. Let me ship it in this PR together. 😀

Because of some regressions about MethodHandle in Scala 3, the changes are bigger than I expected initially.

Copy link
Member

@minwoox minwoox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

implementation 'com.fasterxml.jackson.module:jackson-module-scala_3'
}

// Use the sources from ':scala_2.13'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we move sources to scala_3 and copy them to scala_2.13?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we make Scala 3 main version when scala/scala3#11332 is fixed and clean up the ScalaPB module?
I think Scala 3 is still experimental and we need to wait for it to be stabilized.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM. 😉

Copy link
Member

@trustin trustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, @ikhoon. Scala 3 users will be excited!

jrhee17
jrhee17 approved these changes Jan 24, 2022
Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking forward to trying out the new scala3 integration! Thank you @ikhoon 🙇 👍 🙇

@ikhoon ikhoon merged commit 9e5c65a into line:master Jan 25, 2022
@ikhoon ikhoon deleted the up-deps branch January 25, 2022 12:14
ikhoon added a commit to line/gradle-scripts that referenced this pull request Jan 25, 2022
The changes have been reviewed in line/armeria#4036
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Scala 3
4 participants