Update spotless (#4863)

* Update spotless

* Apply spotless
This commit is contained in:
Anuraag Agrawal 2021-12-10 17:32:34 +09:00 committed by GitHub
parent be7bc243de
commit a4f70cbd86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
plugins { plugins {
`kotlin-dsl` `kotlin-dsl`
// When updating, update below in dependencies too // When updating, update below in dependencies too
id("com.diffplug.spotless") version "5.16.0" id("com.diffplug.spotless") version "6.0.4"
} }
spotless { spotless {
@ -35,7 +35,7 @@ dependencies {
implementation("org.apache.maven:maven-aether-provider:3.3.9") implementation("org.apache.maven:maven-aether-provider:3.3.9")
// When updating, update above in plugins too // When updating, update above in plugins too
implementation("com.diffplug.spotless:spotless-plugin-gradle:5.16.0") implementation("com.diffplug.spotless:spotless-plugin-gradle:6.0.4")
implementation("com.google.guava:guava:31.0.1-jre") implementation("com.google.guava:guava:31.0.1-jre")
implementation("gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.18") implementation("gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.18")
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0") implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0")

View File

@ -31,7 +31,7 @@ object AkkaHttpTestAsyncWebServer {
def doCall(): HttpResponse = { def doCall(): HttpResponse = {
val resp = HttpResponse(status = val resp = HttpResponse(status =
endpoint.getStatus endpoint.getStatus
) //.withHeaders(headers.Type)resp.contentType = "text/plain" ) // .withHeaders(headers.Type)resp.contentType = "text/plain"
endpoint match { endpoint match {
case SUCCESS => resp.withEntity(endpoint.getBody) case SUCCESS => resp.withEntity(endpoint.getBody)
case INDEXED_CHILD => case INDEXED_CHILD =>

View File

@ -27,7 +27,7 @@ object AkkaHttpTestWebServer {
) )
} }
val route = { //handleExceptions(exceptionHandler) { val route = { // handleExceptions(exceptionHandler) {
path(SUCCESS.rawPath) { path(SUCCESS.rawPath) {
complete( complete(
HttpResponse(status = SUCCESS.getStatus).withEntity(SUCCESS.getBody) HttpResponse(status = SUCCESS.getStatus).withEntity(SUCCESS.getBody)