Skip to content

Resolve scala from maven #275

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 31 additions & 24 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@
// TODO: submit PRs to upstream where possible to avoid forks (grep for adriaanm/)
// TODO: update to latest where possible
vars: {
scala-ref : "scala/scala.git#2.12.x"
scala-ref : ${?scala_ref} // allow overriding scala-ref using the scala_ref environment variable
scala-version : ""
scala-version : ${?scala_ref} // TODO: change param name in jenkins job -- allow overriding scala-version using the scala_version environment variable
scala-binary-version : ""
scala-binary-version : ${?scala_build_bootstrap_opt} // TODO: change param name in jenkins job
scala-xml-version : "1.0.5"
scala-xml-version : ${?scala_xml_version}
scala-parser-combinators-version : "1.0.4"
scala-parser-combinators-version : ${?scala_parser_combinators_version}

// TODO: merge required changes upstream to get rid of our forks, maintaining our one won't scale
browse-ref : "SethTisue/browse.git#topic/2.11-compat"
Expand Down Expand Up @@ -112,8 +118,7 @@ vars: {
scalaz-ref : "SethTisue/scalaz.git#community-build-2.12" // TODO SI-8079 fix + variance of Id
scodec-bits-ref : "adriaanm/scodec-bits.git#dbuild-sam"
discipline-ref : "typelevel/discipline.git#v0.2"
scala-2-12-junit-mixin-plugin-ref : "scala-js/scala-2.12-junit-mixin-plugin.git"
scala-js-ref : "scala-js/scala-js.git"
scala-js-ref : "adriaanm/scala-js.git"
scalamock-ref : "dvic/scalamock.git" // TODO use paulbutcher/ again once https://github.com/paulbutcher/ScalaMock/pull/149 gets merged
scalariform-ref : "daniel-trinh/scalariform.git"

Expand Down Expand Up @@ -142,14 +147,6 @@ vars {
scalac-opts : ""
scalac-opts : ${?scalac_opts}

// Setting from `scala_build_bootstrap_opt` env, passed to ant when building scala/scala, e.g., "-Dlocker.skip=1" to skip the bootstrap
scala-build-bootstrap-opt : ""
scala-build-bootstrap-opt : ${?scala_build_bootstrap_opt}

// Setting from `scala_build_extra_opt` env, passed to ant when building scala/scala, e.g., "-opt:l:classpath"
scala-build-extra-opt : ""
scala-build-extra-opt : ${?scala_build_extra_opt}

default-commands : []
}

Expand Down Expand Up @@ -191,6 +188,8 @@ options.resolvers: {
03: "dbuild-ivy: https://scala-ci.typesafe.com/artifactory/dbuild-ivy/"${vars.ivyPat}
04: "dbuild-unchecked: https://scala-ci.typesafe.com/artifactory/dbuild-unchecked/" // for sbt plugins not available on ivy (they'll fail the pom check on the `dbuild` cache repo above)

05: "scala-pr-validation-snapshots: https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots"

// for scala/scala#5003
20: "private-repo: https://scala-ci.typesafe.com/artifactory/scala-release-temp/"
}
Expand All @@ -210,7 +209,7 @@ options.cleanup: {
// Topological sort of projects:
// No deps: browse, slick, genjavadoc-plugin, scala-js, scala-swing, scala-partest-interface, async, scalacheck, shapeless, scala-java8-compat
//
// *depends* on scalacheck: scalaz, sbinary, scala-partest, scalatest
// *depends* on scalacheck: scalaz, sbinary, scalatest
// *depends* on scalatest: scodec-bits, scala-records, genjavadoc, scala-stm
//
// scalaz-stream depends on: scalacheck, scalatest, scalaz, scodec-bits
Expand All @@ -220,7 +219,7 @@ build += {
cross-version: [ disabled, standard ]
space.from: default
space.to: [ default, specs2_36, specs2_24 ]
extraction-version: "2.12.0-M5"
extraction-version: ${vars.scala-version}
sbt-version: ${vars.sbt-version}

projects: [
Expand All @@ -230,6 +229,16 @@ build += {
uri: "https://github.com/"${vars.scala-partest-interface-ref}
}

${vars.base} {
name: "scala-partest"
uri: "https://github.com/"${vars.scala-partest-ref}
}

${vars.base} {
name: "scala-swing"
uri: "https://github.com/"${vars.scala-swing-ref}
}

//
// Community projects (not from Typesafe), and other support libraries:
// these should be stable releases, pre-releases, or branches aimed
Expand Down Expand Up @@ -357,6 +366,9 @@ build += {
commands: ${vars.default-commands} [
// Don't build akka-remote-tests/test scope because it requires ScalaTest 3.0
"set sources in (LocalProject(\"akka-remote-tests\"), Test) := Nil"
// Don't build akka-persistence-tck because it requires Scalactic (which comes as a dependency of ScalaTest 3.0)
"set sources in (LocalProject(\"akka-persistence-tck\"), Compile) := Nil"
"set sources in (LocalProject(\"akka-persistence-tck\"), Test) := Nil"
// Don't build multi-jvm tests because they require akka-remote-tests and ScalaTest 3.0
"set sources in (LocalProject(\"akka-remote-tests\"), config(\"multi-jvm\")) := Nil"
"set sources in (LocalProject(\"akka-cluster\"), config(\"multi-jvm\")) := Nil"
Expand Down Expand Up @@ -431,11 +443,6 @@ build += {
}
}

${vars.base} {
name: "scala-2-12-junit-mixin-plugin",
uri: "http://github.com/"${vars.scala-2-12-junit-mixin-plugin-ref}
}

${vars.base} {
name: "scala-js",
uri: "http://github.com/"${vars.scala-js-ref}
Expand Down Expand Up @@ -514,7 +521,7 @@ build += {
cross-version: [ disabled, standard ]
space.from: specs2_24
space.to: [ specs2_24 ]
extraction-version: "2.12.0-M5"
extraction-version: ${vars.scala-version}
sbt-version: ${vars.sbt-version}
projects: [

Expand Down Expand Up @@ -577,7 +584,7 @@ build += {
cross-version: [ disabled, standard ]
space.from: specs2_36
space.to: [ specs2_36 ]
extraction-version: "2.12.0-M5"
extraction-version: ${vars.scala-version}
sbt-version: ${vars.sbt-version}
projects: [
${vars.base} {
Expand Down Expand Up @@ -609,7 +616,7 @@ build += {
cross-version: [ disabled, standard ]
space.from: specs2_36
space.to: [ play, specs2_36 ]
extraction-version: "2.12.0-M5"
extraction-version: ${vars.scala-version}
sbt-version: ${vars.sbt-version}
projects: [

Expand Down Expand Up @@ -727,7 +734,7 @@ build += {
cross-version: [ disabled, standard ]
space.from: specs2_24
space.to: [ ensime ]
extraction-version: "2.12.0-M5"
extraction-version: ${vars.scala-version}
sbt-version: ${vars.sbt-version}
projects: [

Expand Down Expand Up @@ -860,7 +867,7 @@ build += {
cross-version: [ disabled, standard ]
space.from: specs2_24
space.to: [ spire ]
extraction-version: "2.12.0-M5"
extraction-version: ${vars.scala-version}
sbt-version: ${vars.sbt-version}
projects: [

Expand Down
70 changes: 29 additions & 41 deletions community.dbuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,67 +13,55 @@ include file("common.conf")
// And the generation of the artifacts more closely related to the Scala compiler.
//
build += {
extraction-version: "2.12.0-M5"
cross-version: disabled
sbt-version: ${vars.sbt-version}
extraction-version: ${vars.scala-version}
cross-version: disabled
space.from: default
space.to: [ default, specs2_36, specs2_24 ]

projects: [
// Scala 2.12.x
{
name: "scala",
system: assemble
extra.parts: {
cross-version: standard
sbt-version: ${vars.sbt-version}
extraction-version: "2.12.0-M5"
cross-version: disabled
}
extra.parts.projects: [
{
system: "scala"
name: "scala"
uri: "https://github.com/"${vars.scala-ref}
// skip docs to speed up the build
extra.build-options: ["-Ddocs.skip=1", ${vars.scala-build-bootstrap-opt}, ${vars.scala-build-extra-opt}]
set-version: ${vars.scala-version}
name: scala-library
system: aether
uri: "aether:org.scala-lang#scala-library;"${vars.scala-version}
}
{
set-version: ${vars.scala-version}
name: scala-reflect
system: aether
uri: "aether:org.scala-lang#scala-reflect;"${vars.scala-version}
}
{
set-version: ${vars.scala-version}
name: scala-compiler
system: aether
uri: "aether:org.scala-lang#scala-compiler;"${vars.scala-version}
}
// override scalaVersion in the modules since otherwise we get
// whatever random Scala version the module has -- it might be a
// 2.12.x version, we don't want that!
{
name: "scala-xml"
uri: "https://github.com/"${vars.scala-xml-ref}
extra.commands: [
"set scalaVersion := \"2.12.0-M5\"",
"set publishArtifact in (Compile, packageDoc) in ThisBuild := false"
]
set-version: ${vars.scala-xml-version}
name: scala-xml
system: aether
uri: "aether:org.scala-lang.modules#scala-xml_"${vars.scala-binary-version}";"${vars.scala-xml-version}
}
// TODO: we can drop this -- no longer a core depency
{
name: "scala-parser-combinators"
uri: "https://github.com/"${vars.scala-parser-combinators-ref}
extra.commands: [
"set scalaVersion := \"2.12.0-M5\"",
"set publishArtifact in (Compile, packageDoc) in ThisBuild := false"
]
extra.projects: ["scala-parser-combinatorsJVM"]
set-version: ${vars.scala-parser-combinators-version}
name: scala-parser-combinators
system: aether
uri: "aether:org.scala-lang.modules#scala-parser-combinators_"${vars.scala-binary-version}";"${vars.scala-parser-combinators-version}
}
]
}

${vars.base} {
name: "scala-partest"
uri: "https://github.com/"${vars.scala-partest-ref}
}

${vars.base} {
name: scalacheck
uri: "https://github.com/"${vars.scalacheck-ref}
extra.run-tests: false
}

${vars.base} {
name: "scala-swing"
uri: "https://github.com/"${vars.scala-swing-ref}
}
]
}
]}