Permalink
Browse files

Allow publishing only core (pr validation)

  • Loading branch information...
1 parent ba0718f commit 40af1e0c44725f27d391b68922f4c8e3cbde9df5 @adriaanm adriaanm committed Nov 6, 2013
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/build/maven/maven-deploy.xml
@@ -176,6 +176,16 @@
</sequential>
</macrodef>
+ <macrodef name="deploy-remote-core">
+ <attribute name="repository" />
+ <attribute name="version" />
+ <sequential>
+ <deploy-remote name="scala-library" version="@{version}" repository="@{repository}"/>
+ <deploy-remote name="scala-reflect" version="@{version}" repository="@{repository}"/>
+ <deploy-remote name="scala-compiler" version="@{version}" repository="@{repository}" />
+ </sequential>
+ </macrodef>
+
<!-- PGP Signed deployment -->
<macrodef name="deploy-remote-signed-single">
<attribute name="pom" />
@@ -268,6 +278,11 @@
<deploy-remote-all version="${maven.version.number}" repository="${remote.snapshot.repository}" />
</target>
+ <!-- for PR validation -->
+ <target name="deploy-core.snapshot" depends="deploy.remote.init">
+ <deploy-remote-core version="${maven.version.number}" repository="${remote.snapshot.repository}" />
+ </target>
+
<target name="deploy.release" depends="deploy.remote.init" unless="version.is.snapshot" description="Deploys the bundled files as a release into the desired remote Maven repository">
<deploy-remote-all version="${maven.version.number}" repository="${remote.release.repository}" />
</target>

0 comments on commit 40af1e0

Please sign in to comment.