File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,12 @@ default:
148148 cache :
149149 - key : dependency-$CACHE_TYPE # Dependencies cache
150150 paths :
151- # Cached dependencies and wrappers for gradle
151+ # Cached dependencies and wrappers for Gradle:
152152 - .gradle/wrapper
153153 - .gradle/caches
154154 - .gradle/notifications
155+ # Cached dependencies for Maven:
156+ - .mvn/caches
155157 policy : $DEPENDENCY_CACHE_POLICY
156158 unprotect : true
157159 fallback_keys : # Use fallback keys because all cache types are not populated. See note under: populate_dep_cache
@@ -179,6 +181,13 @@ default:
179181 - |
180182 # replace maven central part by MAVEN_REPOSITORY_PROXY in .mvn/wrapper/maven-wrapper.properties
181183 sed -i "s|https://repo.maven.apache.org/maven2/|$MAVEN_REPOSITORY_PROXY|g" .mvn/wrapper/maven-wrapper.properties
184+ - export MAVEN_USER_HOME=$(pwd)/.mvn
185+ - |
186+ cat << EOF > .mvn/settings.xml
187+ <settings>
188+ <localRepository>$MAVEN_USER_HOME</localRepository>
189+ </settings>
190+ EOF
182191 - export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xms$GRADLE_MEM -Xmx$GRADLE_MEM -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
183192 - export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS"
184193 - *normalize_node_index
@@ -190,6 +199,8 @@ default:
190199 - rm -rf .gradle
191200 - mv .gradle-copy .gradle
192201 - ls -la
202+ - ls $MAVEN_USER_HOME
203+ - cat $MAVEN_USER_HOME/settings.xml
193204 - gitlab_section_end "gradle-dance"
194205 after_script :
195206 - *cgroup_info
You can’t perform that action at this time.
0 commit comments