Skip to content

Commit

Permalink
Bincompat forwarder
Browse files Browse the repository at this point in the history
  • Loading branch information
hamnis committed Nov 27, 2023
1 parent 12a39f4 commit 9da843f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ lazy val core = crossProject(JVMPlatform)
Compile / doc / scalacOptions ++= Seq(
"-no-link-warnings" // Suppresses problems with Scaladoc @throws links
),
mimaBinaryIssueFilters := List(
ProblemFilters.exclude[DirectMissingMethodProblem]("no.nrk.bigquery.BigQueryClient.fromCredentials")
)
mimaBinaryIssueFilters := Nil
)

lazy val prometheus = crossProject(JVMPlatform)
Expand Down Expand Up @@ -169,7 +167,6 @@ lazy val codegen = crossProject(JVMPlatform)
libraryDependencies ++= Seq(
"org.apache.commons" % "commons-text" % "1.11.0"
),
tlMimaPreviousVersions := Set.empty,
mimaBinaryIssueFilters := Nil
)

Expand Down
6 changes: 6 additions & 0 deletions core/src/main/scala/no/nrk/bigquery/BigQueryClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,12 @@ object BigQueryClient {
}
)

def fromCredentials[F[_]](
credentials: Credentials,
configure: Option[BigQueryOptions.Builder => BigQueryOptions.Builder]
)(implicit F: Async[F]): F[BigQuery] =
fromCredentials(credentials, configure)

def fromCredentials[F[_]](
credentials: Credentials,
configure: Option[BigQueryOptions.Builder => BigQueryOptions.Builder] = None,
Expand Down

0 comments on commit 9da843f

Please sign in to comment.