Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support sbt 1.0 #107

Merged
merged 1 commit into from
Aug 12, 2017
Merged

support sbt 1.0 #107

merged 1 commit into from
Aug 12, 2017

Conversation

xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Aug 11, 2017

  • move {scala => scala-sbt-0.13}/com/typesafe/sbt/site/laika/LaikaSitePlugin.scala, {scala => scala-sbt-0.13}/com/typesafe/sbt/site/paradox/ParadoxSitePlugin.scala because laika and paradox does not support sbt 1.0 yet. ( [WIP] Cross build using sbt 0.13.16 #102 (comment) )
  • exclude some tests which use paradox, laika and sbt-ghpages( cyclic dependency! )

I think we should release for sbt 1.0 without LaikaSitePlugin and ParadoxSitePlugin.

fix #105

@larsrh
Copy link
Contributor

larsrh commented Aug 11, 2017

Laika is almost there, but happy to file a pull request after a release of sbt-site. sbt-site is sufficiently important to get going, even with a reduced feature set.

Map("version" -> binV, "release" -> version)
}

def installPackagesTask = Def.task {
val runner = sphinxRunner.value
val packages = sphinxPackages.value
val s = streams.value
packages map { p => runner.installPackage(p, target.value, s.log) }
val t = target.value
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@jonas jonas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank a lot for getting this done.


addSbtPlugin("org.planet42" % "laika-sbt" % "0.7.0")
libraryDependencies ++= {
if((sbtVersion in pluginCrossBuild).value.startsWith("0.13")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Laika and Paradox are fairly new additions.

val excludeTests = tests.map(_._2).toSet
(file("src/sbt-test") / g).listFiles.map(_.getName).filterNot(excludeTests).map(g + "/" + _)
}.toList
val args = (runAll ++ runPartial).mkString(" ", " ", "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice, I didn't know this was possible.

@jonas jonas merged commit df09a1e into sbt:develop Aug 12, 2017
@jonas jonas modified the milestone: 1.3.0 Aug 13, 2017
@xuwei-k xuwei-k deleted the sbt-1.0 branch September 8, 2017 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cross publish to sbt 1.0.0
3 participants