You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2020/12/15 17:02:38 UTC

[incubator-tuweni] branch master updated: fix faucet runtime

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

toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/master by this push:
     new 51bd1cb  fix faucet runtime
51bd1cb is described below

commit 51bd1cbae36895dfb20aa28b913b6e6a13d36982
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Tue Dec 15 09:02:17 2020 -0800

    fix faucet runtime
---
 eth-faucet/build.gradle                                              | 2 +-
 .../src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt    | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/eth-faucet/build.gradle b/eth-faucet/build.gradle
index 2f57379..495cb9b 100644
--- a/eth-faucet/build.gradle
+++ b/eth-faucet/build.gradle
@@ -33,7 +33,7 @@ dependencies {
   implementation 'io.vertx:vertx-lang-kotlin'
   implementation 'io.vertx:vertx-lang-kotlin-coroutines'
   implementation 'org.bouncycastle:bcprov-jdk15on'
-  implementation 'org.springframework:spring-webflux'
+  implementation 'org.springframework.boot:spring-boot-starter-webflux'
   implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core'
   implementation("org.jetbrains.kotlin:kotlin-reflect")
   implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
diff --git a/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt b/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt
index 8658c4d..d5ea7dc 100644
--- a/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt
+++ b/eth-faucet/src/main/kotlin/org/apache/tuweni/faucet/FaucetApplication.kt
@@ -66,6 +66,11 @@ class FaucetApplication {
   }
 
   @Bean
+  fun createWebClient(): WebClient {
+    return WebClient.create()
+  }
+
+  @Bean
   fun oauth2UserService(rest: WebClient): OAuth2UserService<OAuth2UserRequest, OAuth2User>? {
     val delegate = DefaultOAuth2UserService()
     return OAuth2UserService { request: OAuth2UserRequest ->


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org