File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,20 @@ RUN source /root/.sdkman/bin/sdkman-init.sh; gradle clean
2828
2929# Building protobuf jar and installing it to maven local and gradle cache
3030WORKDIR /root/chaincode-java/shim-src/fabric-chaincode-protos
31- RUN source /root/.sdkman/bin/sdkman-init.sh; gradle clean build install publishToMavenLocal
31+ RUN source /root/.sdkman/bin/sdkman-init.sh; gradle clean build install publishToMavenLocal \
32+ -x javadoc \
33+ -x test
34+
3235# Installing all jar dependencies to maven local
3336WORKDIR /root/chaincode-java/shim-src/fabric-chaincode-protos/build/publications/protosJar/
3437RUN source /root/.sdkman/bin/sdkman-init.sh; mvn -f pom-default.xml compile
3538
3639# Building shim jar and installing it to maven local and gradle cache
3740WORKDIR /root/chaincode-java/shim-src/fabric-chaincode-shim
38- RUN source /root/.sdkman/bin/sdkman-init.sh; gradle clean build install publishToMavenLocal
41+ RUN source /root/.sdkman/bin/sdkman-init.sh; gradle clean build install publishToMavenLocal \
42+ -x javadoc \
43+ -x test
44+
3945# Installing all jar dependencies to maven local
4046WORKDIR /root/chaincode-java/shim-src/fabric-chaincode-shim/build/publications/shimJar/
4147RUN source /root/.sdkman/bin/sdkman-init.sh; mvn -f pom-default.xml compile
@@ -61,6 +67,7 @@ RUN rm -rf example-src/*
6167RUN rm -rf shim-src
6268
6369RUN source /root/.sdkman/bin/sdkman-init.sh; gradle wrapper --gradle-version 4.6
70+ RUN source /root/.sdkman/bin/sdkman-init.sh; sdk uninstall gradle 4.6
6471
6572# Creating final javaenv image which will include all required
6673# dependencies to build and compile java chaincode
You can’t perform that action at this time.
0 commit comments