Created
May 29, 2017 14:45
-
-
Save jeffreyolchovy/c0bc3969fb997a99986ffef46751b710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Publishing._ | |
lazy val root = (project in file(".")) | |
.settings(ReleaseSettings: _*) | |
.aggregate(plugin, library) | |
.enablePlugins(CrossPerProjectPlugin) | |
lazy val plugin = (project in file("plugin")) | |
.settings(PublishSettings: _*) | |
.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(PublishSettings: _*) | |
.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 | |
), | |
publishMavenStyle := true | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment