Skip to content

Commit

Permalink
PARQUET-185: Update release scripts and POM.
Browse files Browse the repository at this point in the history
* Disable source zip generation in POM
* Update scripts to use -incubating version

Author: Ryan Blue <blue@apache.org>

Closes #21 from rdblue/PARQUET-185-update-for-release and squashes the following commits:

056f966 [Ryan Blue] PARQUET-185: Update release scripts and POM.
  • Loading branch information
rdblue committed Feb 11, 2015
1 parent c3afbd2 commit 26b2c68
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dev/release-prepare.sh → dev/prepare-release.sh
Expand Up @@ -18,16 +18,16 @@
# under the License.
#

version=$1

if [ -z "$version" ]; then
if [ -z "$1" ]; then
echo "Usage: $0 <version>"
exit
fi

tag=apache-parquet-format-$version-incubating
version=$1-incubating

tag=apache-parquet-format-$version

mvn release:clean
mvn release:prepare -Dtag=$tag -DreleaseVersion=$version

echo "Finish staging binary artifacts by running: mvn release:perform"
echo "Finish staging binary artifacts by running: sh dev/perform-release.sh"
12 changes: 6 additions & 6 deletions dev/source-release.sh
Expand Up @@ -18,25 +18,25 @@
# under the License.
#

version=$1
rc=$2

if [ -z "$version" ]; then
if [ -z "$1" ]; then
echo "Usage: $0 <version> <rc-num>"
exit
fi

if [ -z "$rc" ]; then
if [ -z "$2" ]; then
echo "Usage: $0 <version> <rc-num>"
exit
fi

version=$1-incubating
rc=$2

if [ -d tmp/ ]; then
echo "Cannot run: tmp/ exists"
exit
fi

tag=apache-parquet-format-$version-incubating
tag=apache-parquet-format-$version
tagrc=${tag}-rc${rc}

echo "Preparing source for $tagrc"
Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Expand Up @@ -107,6 +107,16 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- Disable the source artifact from ASF parent -->
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>source-release-assembly</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<!-- Override source and target from the ASF parent -->
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 26b2c68

Please sign in to comment.