You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2020/12/07 07:57:40 UTC
[freemarker] branch 2.3-gae updated: Added special Ivy settings for
CI, so that the Ivy cache can be reused between checkouts
This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git
The following commit(s) were added to refs/heads/2.3-gae by this push:
new 0bb9b7f Added special Ivy settings for CI, so that the Ivy cache can be reused between checkouts
0bb9b7f is described below
commit 0bb9b7fa4e350d35fa16c3a1b0479470f062c020
Author: ddekany <dd...@apache.org>
AuthorDate: Mon Dec 7 08:36:59 2020 +0100
Added special Ivy settings for CI, so that the Ivy cache can be reused between checkouts
---
build.xml | 10 +++++++---
ivysettings-ci.xml | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/build.xml b/build.xml
index b33e01f..a9a29de 100644
--- a/build.xml
+++ b/build.xml
@@ -949,12 +949,16 @@ Proceed? </input>
<!-- ================================================================= -->
<!-- CI (like Travis)....................... -->
<!-- ================================================================= -->
-
+
+ <target name="ci-setup">
+ <ivy:settings file="ivysettings-ci.xml" />
+ </target>
+
<target name="ci"
- depends="clean, jar, test, javadoc"
+ depends="ci-setup, clean, jar, test, javadoc"
description="CI should invoke this task"
/>
-
+
<!-- ================================================================== -->
<!-- Dependency management -->
<!-- ================================================================== -->
diff --git a/ivysettings-ci.xml b/ivysettings-ci.xml
new file mode 100644
index 0000000..3f0dc4c
--- /dev/null
+++ b/ivysettings-ci.xml
@@ -0,0 +1,34 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<ivysettings>
+ <!-- We want this to be cacheable, so it has to be outside the project checkout directory: -->
+ <caches defaultCacheDir="${user.home}/.ivy-freemarker/cache">
+ <cache name="freemarkerCache" useOrigin="true" />
+ </caches>
+
+ <settings defaultResolver="default" />
+ <resolvers>
+ <chain name="default">
+ <ibiblio name="mavenCentral" m2compatible="true" />
+ <ibiblio name="mavenApacheStaging" m2compatible="true" root="https://repository.apache.org/content/repositories/staging/" />
+ <ibiblio name="mavenApacheSnapshot" m2compatible="true" root="https://repository.apache.org/content/repositories/snapshots/" />
+ </chain>
+ </resolvers>
+</ivysettings>