Skip to content

Commit

Permalink
Remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
PromanSEW committed May 11, 2022
1 parent b450209 commit ae45c53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Dependencies.ScalaVersions.scala212

import Dependencies.ScalaVersions.scala213
import Dependencies.Versions
import com.typesafe.tools.mima.core._
import sbt.Append.appendSeq
import xsbti.compile.CompileAnalysis

Expand All @@ -20,6 +20,10 @@ lazy val mimaSettings = Seq(
organization.value %% name.value % "6.0.0" // previousStableVersion.value
// .getOrElse(throw new Error("Unable to determine previous version"))
),
mimaBinaryIssueFilters ++= Seq(
// https://github.com/playframework/play-ebean/pull/281 - Removed io.ebean.EbeanServer in Ebean 13.6.0
ProblemFilters.exclude[IncompatibleMethTypeProblem]("play.db.ebean.EbeanDynamicEvolutions.generateEvolutionScript")
)
)

lazy val root = project
Expand Down
15 changes: 0 additions & 15 deletions play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,6 @@ public static String generateEvolutionScript(Database database) {
return generateScript((SpiEbeanServer) database);
}

/**
* Helper method that generates the required evolution to properly run Ebean/DB.
*
* @deprecated
* Use {@link EbeanDynamicEvolutions#generateEvolutionScript(Database)} instead.
*
* @param server the EbeanServer.
* @return the complete migration generated by Ebean/DB.
*
*/
@Deprecated
public static String generateEvolutionScript(EbeanServer server) {
return generateScript((SpiEbeanServer) server);
}

private static String generateScript(SpiEbeanServer spiServer) {
CurrentModel ddl = new CurrentModel(spiServer);

Expand Down

0 comments on commit ae45c53

Please sign in to comment.