Skip to content

Commit

Permalink
Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Feb 27, 2024
1 parent ce5e0f1 commit c38c2e9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sbt-twirl/src/main/scala/play/twirl/sbt/TemplateCompiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ import sbt.internal.inc.LoggedReporter

object TemplateCompiler {

def compile(
sourceDirectories: Seq[File],
targetDirectory: File,
templateFormats: Map[String, String],
templateImports: Seq[String],
constructorAnnotations: Seq[String],
includeFilter: FileFilter,
excludeFilter: FileFilter,
codec: Codec,
log: Logger
): Seq[File] = compile(
sourceDirectories,
targetDirectory,
templateFormats,
templateImports,
constructorAnnotations,
includeFilter,
excludeFilter,
codec,
log,
"2.13.x" // using a dummy scala version (not starting with "3." to generate Scala 2 code by default)
)

def compile(
sourceDirectories: Seq[File],
targetDirectory: File,
Expand Down

0 comments on commit c38c2e9

Please sign in to comment.