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

Migrate to sbt 0.13.16 #483

Merged
merged 1 commit into from
Aug 14, 2017
Merged

Migrate to sbt 0.13.16 #483

merged 1 commit into from
Aug 14, 2017

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Aug 3, 2017

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 :)

@havocp
Copy link
Collaborator

havocp commented Aug 4, 2017

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.

Copy link
Contributor

@eed3si9n eed3si9n left a 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 (
Copy link
Contributor

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 (
Copy link
Contributor

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 (
Copy link
Contributor

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"
Copy link
Contributor

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 {
Copy link
Contributor

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?

Copy link
Member Author

@dwijnand dwijnand Aug 4, 2017

Choose a reason for hiding this comment

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

It has undefined defs.

@dwijnand
Copy link
Member Author

dwijnand commented Aug 4, 2017

Who defines sbt's idioms, you infix-hater :P (your requested changes coming right up)

@dwijnand dwijnand merged commit e020acd into lightbend:master Aug 14, 2017
@dwijnand dwijnand deleted the sbt-0.13.16 branch August 14, 2017 16:48
aalleexxeeii pushed a commit to aalleexxeeii/typesafe-config that referenced this pull request Jun 6, 2018
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.

3 participants