Skip to content

Commit 44ec30a

Browse files
authored
Update scala-library from 2.13.10 to 2.13.12 (#2540)
1 parent c6dff0e commit 44ec30a

File tree

70 files changed

+314
-208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+314
-208
lines changed

core/src/main/scala/org/broadinstitute/dsde/rawls/Boot.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ object Boot extends IOApp with LazyLogging {
9595
val gcsConfig = conf.getConfig("gcs")
9696

9797
// we need an ActorSystem to host our application in
98-
implicit val system = ActorSystem("rawls")
99-
implicit val materializer = ActorMaterializer()
98+
implicit val system: ActorSystem = ActorSystem("rawls")
99+
implicit val materializer: ActorMaterializer = ActorMaterializer()
100100

101101
val slickDataSource = DataSource(DatabaseConfig.forConfig[JdbcProfile]("slick", conf))
102102

core/src/main/scala/org/broadinstitute/dsde/rawls/billing/BillingProfileManagerDAO.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import org.broadinstitute.dsde.rawls.model.{
1515
RawlsBillingAccountName,
1616
RawlsRequestContext
1717
}
18-
import spray.json.DefaultJsonProtocol
18+
import spray.json.{DefaultJsonProtocol, RootJsonFormat}
1919

2020
import java.util.{Date, UUID}
2121
import scala.annotation.tailrec
@@ -26,7 +26,9 @@ import scala.util.{Failure, Success, Try}
2626
case class BpmAzureReportErrorMessage(message: String, statusCode: Int)
2727

2828
object BpmAzureReportErrorMessageJsonProtocol extends DefaultJsonProtocol {
29-
implicit val bpmAzureReportErrorMessageFormat = jsonFormat2(BpmAzureReportErrorMessage.apply)
29+
implicit val bpmAzureReportErrorMessageFormat: RootJsonFormat[BpmAzureReportErrorMessage] = jsonFormat2(
30+
BpmAzureReportErrorMessage.apply
31+
)
3032
}
3133

3234
import spray.json._

core/src/main/scala/org/broadinstitute/dsde/rawls/billing/BillingProjectOrchestrator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class BillingProjectOrchestrator(ctx: RawlsRequestContext,
5757
extends StringValidationUtils
5858
with UserUtils
5959
with LazyLogging {
60-
implicit val errorReportSource = ErrorReportSource("rawls")
60+
implicit val errorReportSource: ErrorReportSource = ErrorReportSource("rawls")
6161

6262
/**
6363
* Creates a "v2" billing project, using either Azure managed app coordinates or a Google Billing Account

core/src/main/scala/org/broadinstitute/dsde/rawls/dataaccess/GoogleBigQueryServiceFactory.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import org.apache.commons.io.IOUtils
77
import org.broadinstitute.dsde.rawls.model.GoogleProjectId
88
import org.broadinstitute.dsde.workbench.google2.GoogleBigQueryService
99
import org.broadinstitute.dsde.workbench.model.google.GoogleProject
10+
import org.typelevel.log4cats.SelfAwareStructuredLogger
1011
import org.typelevel.log4cats.slf4j.Slf4jLogger
1112

1213
import java.io.ByteArrayInputStream
@@ -23,8 +24,8 @@ import scala.concurrent.ExecutionContext
2324
*/
2425
class GoogleBigQueryServiceFactory(pathToCredentialJson: String)(implicit executionContext: ExecutionContext) {
2526

26-
implicit lazy val logger = Slf4jLogger.getLogger[IO]
27-
implicit lazy val timer = Temporal[IO]
27+
implicit lazy val logger: SelfAwareStructuredLogger[IO] = Slf4jLogger.getLogger[IO]
28+
implicit lazy val timer: Temporal[IO] = Temporal[IO]
2829

2930
def getServiceForPet(petKey: String,
3031
projectId: GoogleProject

core/src/main/scala/org/broadinstitute/dsde/rawls/dataaccess/HttpBondApiDAO.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import org.broadinstitute.dsde.rawls.RawlsExceptionWithErrorReport
1010
import org.broadinstitute.dsde.rawls.dataaccess.BondJsonSupport._
1111
import org.broadinstitute.dsde.rawls.model.UserInfo
1212
import org.broadinstitute.dsde.rawls.util.{HttpClientUtilsStandard, Retry}
13+
import spray.json.RootJsonFormat
1314

1415
import scala.concurrent.{ExecutionContext, Future}
1516

@@ -21,10 +22,12 @@ case class Providers(providers: List[String])
2122
object BondJsonSupport {
2223
import spray.json.DefaultJsonProtocol._
2324

24-
implicit val BondServiceAccountEmailFormat = jsonFormat1(BondServiceAccountEmail)
25-
implicit val BondResponseDataFormat = jsonFormat1(BondResponseData)
25+
implicit val BondServiceAccountEmailFormat: RootJsonFormat[BondServiceAccountEmail] = jsonFormat1(
26+
BondServiceAccountEmail
27+
)
28+
implicit val BondResponseDataFormat: RootJsonFormat[BondResponseData] = jsonFormat1(BondResponseData)
2629

27-
implicit val providersFormat = jsonFormat1(Providers)
30+
implicit val providersFormat: RootJsonFormat[Providers] = jsonFormat1(Providers)
2831

2932
}
3033

core/src/main/scala/org/broadinstitute/dsde/rawls/dataaccess/HttpExecutionServiceDAO.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.broadinstitute.dsde.rawls.dataaccess
22

33
import akka.actor.ActorSystem
4-
import akka.http.scaladsl.Http
4+
import akka.http.scaladsl.{Http, HttpExt}
55
import akka.http.scaladsl.client.RequestBuilding._
66
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
77
import akka.http.scaladsl.marshalling.Marshal
@@ -16,7 +16,7 @@ import org.broadinstitute.dsde.rawls.metrics.{Expansion, InstrumentedRetry, Rawl
1616
import org.broadinstitute.dsde.rawls.model.ExecutionJsonSupport._
1717
import org.broadinstitute.dsde.rawls.model.StatusJsonSupport._
1818
import org.broadinstitute.dsde.rawls.model._
19-
import org.broadinstitute.dsde.rawls.util.{FutureSupport, HttpClientUtilsGzipInstrumented}
19+
import org.broadinstitute.dsde.rawls.util.{FutureSupport, HttpClientUtils, HttpClientUtilsGzipInstrumented}
2020
import spray.json.DefaultJsonProtocol._
2121
import spray.json._
2222

@@ -38,11 +38,11 @@ class HttpExecutionServiceDAO(executionServiceURL: String, override val workbenc
3838
with LazyLogging
3939
with RawlsInstrumented {
4040

41-
implicit private lazy val baseMetricBuilder =
41+
implicit private lazy val baseMetricBuilder: ExpandedMetricBuilder =
4242
ExpandedMetricBuilder.expand(SubsystemMetricKey, Subsystems.Cromwell)
4343

44-
override val http = Http(system)
45-
override val httpClientUtils = HttpClientUtilsGzipInstrumented()
44+
override val http: HttpExt = Http(system)
45+
override val httpClientUtils: HttpClientUtils = HttpClientUtilsGzipInstrumented()
4646

4747
// Strip out workflow IDs from metrics by providing a redactedUriExpansion
4848
override protected val UriExpansion: Expansion[Uri] = RawlsExpansion.redactedUriExpansion(

core/src/main/scala/org/broadinstitute/dsde/rawls/dataaccess/HttpGoogleServicesDAO.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import org.broadinstitute.dsde.workbench.google2.util.RetryPredicates
6161
import org.broadinstitute.dsde.workbench.model.google.{GcsBucketName, GoogleProject, GoogleResourceTypes, IamPermission}
6262
import org.broadinstitute.dsde.workbench.model.{TraceId, WorkbenchEmail}
6363
import org.joda.time.DateTime
64+
import org.typelevel.log4cats.SelfAwareStructuredLogger
6465
import org.typelevel.log4cats.slf4j.Slf4jLogger
6566
import spray.json._
6667

@@ -101,7 +102,7 @@ class HttpGoogleServicesDAO(val clientSecrets: GoogleClientSecrets,
101102
with GoogleUtilities {
102103
val http = Http(system)
103104
val httpClientUtils = HttpClientUtilsStandard()
104-
implicit val log4CatsLogger = Slf4jLogger.getLogger[IO]
105+
implicit val log4CatsLogger: SelfAwareStructuredLogger[IO] = Slf4jLogger.getLogger[IO]
105106

106107
val groupMemberRole =
107108
"MEMBER" // the Google Group role corresponding to a member (note that this is distinct from the GCS roles defined in WorkspaceAccessLevel)

core/src/main/scala/org/broadinstitute/dsde/rawls/dataaccess/HttpImportServiceDAO.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ import org.broadinstitute.dsde.rawls.RawlsExceptionWithErrorReport
1010
import org.broadinstitute.dsde.rawls.model.ImportStatuses.ImportStatus
1111
import org.broadinstitute.dsde.rawls.model.{ImportStatuses, UserInfo, WorkspaceName}
1212
import org.broadinstitute.dsde.rawls.util.{HttpClientUtilsStandard, Retry}
13+
import spray.json.RootJsonFormat
1314

1415
import java.util.UUID
1516
import scala.concurrent.{ExecutionContext, Future}
1617

1718
object ImportServiceJsonSupport {
1819
import spray.json.DefaultJsonProtocol._
1920

20-
implicit val importServiceResponseFormat = jsonFormat2(ImportServiceResponse)
21+
implicit val importServiceResponseFormat: RootJsonFormat[ImportServiceResponse] = jsonFormat2(ImportServiceResponse)
2122
}
2223

2324
class HttpImportServiceDAO(url: String)(implicit

core/src/main/scala/org/broadinstitute/dsde/rawls/dataaccess/slick/DriverComponent.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trait DriverComponent extends StringValidationUtils {
1616
val batchSize: Int // used for writes to group inserts/updates; must be explicitly utilized via custom business logic
1717
val fetchSize: Int // used during Slick streaming to set the size of pages; must be explicitly set via withStatementParameters
1818
implicit val executionContext: ExecutionContext
19-
implicit override val errorReportSource = ErrorReportSource("rawls")
19+
implicit override val errorReportSource: ErrorReportSource = ErrorReportSource("rawls")
2020

2121
// needed by MySQL but not actually used; we will always overwrite
2222
val defaultTimeStamp = Timestamp.valueOf("2001-01-01 01:01:01.0")
@@ -108,8 +108,9 @@ trait RawSqlQuery {
108108

109109
import driver.api._
110110

111-
implicit val GetUUIDResult = GetResult(r => uuidColumnType.fromBytes(r.nextBytes()))
112-
implicit val GetUUIDOptionResult = GetResult(r => Option(uuidColumnType.fromBytes(r.nextBytes())))
111+
implicit val GetUUIDResult: GetResult[UUID] = GetResult(r => uuidColumnType.fromBytes(r.nextBytes()))
112+
implicit val GetUUIDOptionResult: GetResult[Option[UUID]] =
113+
GetResult(r => Option(uuidColumnType.fromBytes(r.nextBytes())))
113114
implicit object SetUUIDParameter extends SetParameter[UUID] {
114115
def apply(v: UUID, pp: PositionedParameters) { pp.setBytes(uuidColumnType.toBytes(v)) }
115116
}

core/src/main/scala/org/broadinstitute/dsde/rawls/dataaccess/slick/EntityComponent.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ trait EntityComponent {
237237
// noinspection SqlDialectInspection,DuplicatedCode
238238
private object EntityRecordRawSqlQuery extends RawSqlQuery {
239239
val driver: JdbcProfile = EntityComponent.this.driver
240-
implicit val getEntityRecord = GetResult(r => EntityRecord(r.<<, r.<<, r.<<, r.<<, r.<<, r.<<, r.<<))
240+
implicit val getEntityRecord: GetResult[EntityRecord] =
241+
GetResult(r => EntityRecord(r.<<, r.<<, r.<<, r.<<, r.<<, r.<<, r.<<))
241242

242243
def action(workspaceId: UUID, entities: Set[AttributeEntityReference]): ReadAction[Seq[EntityRecord]] =
243244
if (entities.isEmpty) {
@@ -317,7 +318,7 @@ trait EntityComponent {
317318
val driver: JdbcProfile = EntityComponent.this.driver
318319

319320
// tells slick how to convert a result row from a raw sql query to an instance of EntityAndAttributesResult
320-
implicit val getEntityAndAttributesResult = GetResult { r =>
321+
implicit val getEntityAndAttributesResult: GetResult[EntityAndAttributesResult] = GetResult { r =>
321322
// note that the number and order of all the r.<< match precisely with the select clause of baseEntityAndAttributeSql
322323
val entityRec = EntityRecord(r.<<, r.<<, r.<<, r.<<, r.<<, r.<<, r.<<)
323324

0 commit comments

Comments
 (0)