f684aebde7
Switch to maven build system using a custom pom to avoid a dep on gradle
20 lines
397 B
Bash
Executable File
20 lines
397 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
VERSION=2.23.9
|
|
SRCDIR=mockito-${VERSION}
|
|
|
|
git clone https://github.com/mockito/mockito.git ${SRCDIR}
|
|
pushd $SRCDIR
|
|
git archive --format=tar --prefix=${SRCDIR}/ v${VERSION} > ../${SRCDIR}.tar
|
|
popd
|
|
|
|
rm -rf ${SRCDIR}
|
|
|
|
tar -xf ${SRCDIR}.tar
|
|
rm ${SRCDIR}.tar
|
|
pushd ${SRCDIR}
|
|
rm -rf `find -name *.jar` gradlew gradlew.bat src/javadoc
|
|
popd
|
|
|
|
tar -cvJf mockito-${VERSION}.tar.xz ${SRCDIR}
|