package cbt import java.io.{ File, FileWriter } trait IntelliJ extends BaseBuild { private // this plugin is not functional right now, needs fixing def intellij = { lib.writeIfChanged( projectDirectory / name ++ ".iml", IntelliJ.iml( scalaVersion, transitiveDependencies ) ) } } // TODO: // - projects, their builds, their build builds, etc should be represented individually // ideally with cbt's main sources being editable, but not the sources of other cbt versions object IntelliJ { def iml( scalaVersion: String, transitiveDependencies: Seq[Dependency] ): String = { """""" ++ "\n" ++ // format: OFF { transitiveDependencies.flatMap( _.exportedClasspath.files ).map( _.string ).map { cp => } } .buildString( stripComments = false ) // format: ON } }