From 0dde1ae27f0ecb916db4b2abf05ec4b0dd681678 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Sun, 15 Dec 2013 17:36:05 -0800 Subject: scala-dist: all you need to roll your own scala distribution We now publish a scala-dist artifact every time we publish to maven. It captures everything needed to build a Scala distribution. The packager should resolve all transitive dependencies of scala-dist, put the class-file jars in the lib/ directory, the scaladoc jars in the api/ directory, and the source jars in the src/ directory, in addition to unpacking the scala-dist jar itself, which contains the bin/, doc/ and man/ directories, which previously weren't available on maven. This also removes the `@{dir}` abstraction, which was used to package the continuations plugin. Since it's moved out, we can go back to hard-coding it. --- src/build/maven/maven-deploy.xml | 56 ++++++++++++++++++++----- src/build/maven/scala-dist-pom.xml | 84 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+), 10 deletions(-) create mode 100644 src/build/maven/scala-dist-pom.xml (limited to 'src') diff --git a/src/build/maven/maven-deploy.xml b/src/build/maven/maven-deploy.xml index 174993f94a..d2877f95c5 100644 --- a/src/build/maven/maven-deploy.xml +++ b/src/build/maven/maven-deploy.xml @@ -10,6 +10,7 @@ see publish.* targets in /build.xml SuperSabbus extension for deploying a distribution to Maven. THIS FILE IS MEANT TO BE RUN STANDALONE IN THE MAVEN "distpack" DIRECTORY + @@ -61,6 +62,9 @@ see publish.* targets in /build.xml + + + @@ -76,13 +80,12 @@ see publish.* targets in /build.xml - - + Deploying ${path}-[pom.xml|src.jar|docs.jar]. @@ -121,23 +124,56 @@ see publish.* targets in /build.xml + + + + + + + + + Deploying ${path}.jar with ${path}-pom.xml. + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + - - + + diff --git a/src/build/maven/scala-dist-pom.xml b/src/build/maven/scala-dist-pom.xml new file mode 100644 index 0000000000..946bec62b5 --- /dev/null +++ b/src/build/maven/scala-dist-pom.xml @@ -0,0 +1,84 @@ + + + 4.0.0 + org.scala-lang + scala-dist + jar + @VERSION@ + Scala Distribution Artifacts + The Artifacts Distributed with Scala + http://www.scala-lang.org/ + 2002 + + LAMP/EPFL + http://lamp.epfl.ch/ + + + + BSD 3-Clause + http://www.scala-lang.org/license.html + repo + + + + scm:git:git://github.com/scala/scala.git + https://github.com/scala/scala.git + + + JIRA + https://issues.scala-lang.org/ + + + + org.scala-lang + scala-compiler + @VERSION@ + + + org.scala-lang.modules + scala-xml_@SCALA_BINARY_VERSION@ + @XML_VERSION@ + + + org.scala-lang.modules + scala-parser-combinators_@SCALA_BINARY_VERSION@ + @PARSER_COMBINATORS_VERSION@ + + + org.scala-lang.modules + scala-continuations-plugin_@SCALA_BINARY_VERSION@ + @CONTINUATIONS_PLUGIN_VERSION@ + + + org.scala-lang.modules + scala-continuations-library_@SCALA_BINARY_VERSION@ + @CONTINUATIONS_LIBRARY_VERSION@ + + + org.scala-lang.modules + scala-swing_@SCALA_BINARY_VERSION@ + @SCALA_SWING_VERSION@ + + + + + scala-tools.org + @RELEASE_REPOSITORY@ + + + scala-tools.org + @SNAPSHOT_REPOSITORY@ + false + + + + + lamp + EPFL LAMP + + + Typesafe + Typesafe, Inc. + + + -- cgit v1.2.3