Skip to content

Instantly share code, notes, and snippets.

@jeffreyolchovy
Created May 16, 2017 12:20
Show Gist options
  • Save jeffreyolchovy/27490a0a90703783e3610f56c721fbff to your computer and use it in GitHub Desktop.
Save jeffreyolchovy/27490a0a90703783e3610f56c721fbff to your computer and use it in GitHub Desktop.
lazy val root = (project in file("."))
.aggregate(plugin, library)
.enablePlugins(CrossPerProjectPlugin)
lazy val plugin = (project in file("plugin"))
.settings(scriptedSettings: _*)
.settings(
name := "sbt-tweeter",
sbtPlugin := true,
scalaVersion := "2.10.6",
scriptedLaunchOpts ++= Seq("-Dplugin.version=" + version.value),
scriptedBufferLog := false,
publishLocal := publishLocal.dependsOn(publishLocal in library).value
)
.dependsOn(library)
lazy val library = (project in file("library"))
.settings(
name := "tweeter-core",
scalaVersion := "2.10.6",
crossScalaVersions ++= Seq("2.11.11", "2.12.2"),
libraryDependencies ++= Seq(
"org.twitter4j" % "twitter4j-core" % "4.0.0",
"org.scalatest" %% "scalatest" % "3.0.0" % Test
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment