blob: 4ea1fbfbd6e44cd464e4dbad2e1114be0cb56900 [file] [log] [blame]
HIGUCHI Yuta88f3bf32013-06-20 10:37:47 -07001#!/bin/bash
2
Pavlin Radoslavov4c7a0772014-01-04 08:52:57 -08003#
4# A helper script to update the modified local copy of "curator" or the "kryo2"
5# version.
6#
7# NOTE: This script is useful only for developers.
8# Usage:
9# 1. Update the "curator" jar file or the "kryo2" pom.xml file as appropriate.
10# 2. Run this script.
11# 3. Push the modified repo/ directory to the source code repository.
12#
13
HIGUCHI Yuta88f3bf32013-06-20 10:37:47 -070014if [ -z "${MVN}" ]; then
15 MVN="mvn"
16fi
17
Yuta HIGUCHId62fb872014-01-02 10:40:32 -080018# Install Kryo2 workaround to local repo
19# - Shaded(rename package name to allow mixing 2 different Kryo version)
20# - Install created sharded jar to local repo
Yuta HIGUCHI5548a492013-10-24 00:39:23 -070021${MVN} -f kryo2/pom.xml package exec:exec
22
Yuta HIGUCHId62fb872014-01-02 10:40:32 -080023# Install modified curators to local repo
24${MVN} install:install-file -Dfile=./curator/curator-framework-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-framework -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true
25${MVN} install:install-file -Dfile=./curator/curator-client-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-client -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true
26${MVN} install:install-file -Dfile=./curator/curator-recipes-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-recipes -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true
27${MVN} install:install-file -Dfile=./curator/curator-x-discovery-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-x-discovery -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true
HIGUCHI Yuta88f3bf32013-06-20 10:37:47 -070028