Skip to content

Commit

Permalink
LPS-74016 Copy Gradle binary zip file from cache, or download it
Browse files Browse the repository at this point in the history
  • Loading branch information
Ithildir authored and brianchandotcom committed Aug 3, 2017
1 parent 3b5b2e0 commit 4ca0496
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build-common.xml
Expand Up @@ -573,6 +573,19 @@ information.
<sequential>
<setup-binaries-cache unless:true="${setup.binaries.cache.executed}" />

<if>
<not>
<available file="${project.dir}/tools/${build.binaries.gradle.file}" />
</not>
<then>
<mirrors-get
dest="${project.dir}/tools/${build.binaries.gradle.file}"
skipChecksum="true"
src="${build.binaries.gradle.url}"
/>
</then>
</if>

<if>
<os family="unix" />
<then>
Expand Down Expand Up @@ -1062,6 +1075,11 @@ information.
dir="${project.dir}/${build.binaries.cache.dir}/.gradle/caches/modules-2/files-2.1"
toDir="${project.dir}/.gradle/caches/modules-2/files-2.1"
/>

<copy
file="${project.dir}/${build.binaries.cache.dir}/${build.binaries.gradle.file}"
todir="${project.dir}/tools"
/>
</then>
</if>

Expand Down
2 changes: 2 additions & 0 deletions build.properties
Expand Up @@ -65,6 +65,8 @@

build.binaries.cache.dir=../${build.binaries.cache.repository.name}
build.binaries.cache.repository.name=liferay-binaries-cache-2017
build.binaries.gradle.file=gradle-3.3.LIFERAY-PATCHED-1-bin.zip
build.binaries.gradle.url=https://github.com/liferay/${build.binaries.cache.repository.name}/raw/master/${build.binaries.gradle.file}
build.bnd.print.enabled=false

#
Expand Down

0 comments on commit 4ca0496

Please sign in to comment.