-
Notifications
You must be signed in to change notification settings - Fork 967
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
Migrate to sbt 0.13.16 #483
Conversation
Thanks! This looks generally good to me, but I haven't been staying informed on sbt changes; if @eed3si9n or others more in the loop want to review that would be welcome. I'll plan to merge after a bit if nobody has any comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that it's on Typesafe org, we should stick to more idiomatic sbt styling.
build.sbt
Outdated
def scmUrl = "git://github.com/typesafehub/config.git" | ||
} | ||
|
||
lazy val commonSettings: Seq[Setting[_]] = Def settings ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Def.settings
definitely.
build.sbt
Outdated
javaVersionPrefix in javaVersionCheck := None | ||
) | ||
|
||
lazy val root = project in file(".") settings ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(project in file("."))
.settings(...)
build.sbt
Outdated
simpleLibJava, simpleAppJava, complexAppJava | ||
) | ||
|
||
lazy val configLib = Project("config", file("config")) settings ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.settings(...)
build.sbt
Outdated
OsgiKeys.exportPackage := Seq("com.typesafe.config", "com.typesafe.config.impl"), | ||
publish := sys.error("use publishSigned instead of plain publish"), | ||
publishLocal := sys.error("use publishLocalSigned instead of plain publishLocal") | ||
) enablePlugins SbtOsgi dependsOn testLib % "test->test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.enablePlugins(...)
.dependsOn(...)
import sbt._, Keys._ | ||
|
||
// from https://raw.github.com/paulp/scala-improving/master/project/PublishToSonatype.scala | ||
abstract class PublishToSonatype { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why an abstract class here?
Shouldn't it be an object or an AutoPlugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has undefined defs.
Who defines sbt's idioms, you infix-hater :P (your requested changes coming right up) |
Migrate to sbt 0.13.16
I was passing by, seeing if I find a nice solution to #423, and ended up upgrading the build instead.
Feedback welcome - I'm happy to dial back some opinions :)