Skip to content

Instantly share code, notes, and snippets.

@guillaumebort
Created March 16, 2012 16:36
Show Gist options
  • Save guillaumebort/2050952 to your computer and use it in GitHub Desktop.
Save guillaumebort/2050952 to your computer and use it in GitHub Desktop.
Add a kotlin compilation step
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
compile in Compile <<= (compile in Compile, sourceDirectory in Compile, classDirectory in Compile, dependencyClasspath in Compile) map { (analysis, src, classes, classpath) =>
val allKotlinSources: Seq[java.io.File] = (src ** ".kotlin").get
// call the kotlin compiler using `classpath` and output classes to `classes`
analysis
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment