mirror of https://github.com/grpc/grpc-java.git
Cache Gradle and not really Maven
Artifacts that Gradle caches from Maven Central go in ~/.gradle/caches/modules-2, not ~/.m2. We only need .m2 for the locally-installed Netty.
This commit is contained in:
parent
11d0094e04
commit
16055787fa
|
|
@ -30,4 +30,10 @@ notifications:
|
|||
cache:
|
||||
directories:
|
||||
- /tmp/proto3-a2
|
||||
- $HOME/.m2
|
||||
- $HOME/.m2/repository/io/netty
|
||||
- $HOME/.gradle/caches/modules-2
|
||||
- $HOME/.gradle/wrapper
|
||||
|
||||
before_cache:
|
||||
- rm $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- find $HOME/.gradle/wrapper -not -name "*-all.zip" -delete
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ fi
|
|||
# Make and install netty
|
||||
pushd lib/netty
|
||||
BUILD_NETTY=1
|
||||
NETTY_REV_FILE="$HOME/.m2/netty-ver"
|
||||
NETTY_REV_FILE="$HOME/.m2/repository/io/netty/netty-ver"
|
||||
REV="$(git rev-parse HEAD)"
|
||||
if [ -f "$NETTY_REV_FILE" ]; then
|
||||
REV_LAST="$(cat "$NETTY_REV_FILE")"
|
||||
|
|
|
|||
Loading…
Reference in New Issue