
bleep.internal.GeneratedFile.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bleep-cli_2.13 Show documentation
Show all versions of bleep-cli_2.13 Show documentation
A bleeping fast scala build tool!
package bleep
package internal
import io.circe.Codec
import io.circe.generic.semiauto.deriveCodec
/** This structure exists to pick up existing generated sources/resources in a build.
*
* The files are made relative to build directory, and will be placed inside the corresponding folder for generated sources/resources for the given project.
*
* This is meant to back the generated script which will put
*/
case class GeneratedFile(isResource: Boolean, contents: String, toRelPath: RelPath)
object GeneratedFile {
implicit val ordering: Ordering[GeneratedFile] = Ordering.by(x => (x.isResource, x.toRelPath))
implicit val codec: Codec.AsObject[GeneratedFile] = deriveCodec[GeneratedFile]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy