Skip to content

Commit d524049

Browse files
committed
CI: cache Maven artifacts between builds
1 parent 3adfb5e commit d524049

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
with:
3232
java-version: '8'
3333
distribution: 'zulu'
34+
cache: 'maven'
35+
cache-dependency-path: 'appose.pom'
3436

3537
- name: Set up uv
3638
run: |

appose.pom

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
This POM file is used by bin/test.sh to download and cache
4+
needed JAR files for the Java implementation of Appose.
5+
-->
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
7+
<modelVersion>4.0.0</modelVersion>
8+
<groupId>org.apposed</groupId>
9+
<artifactId>appose-python</artifactId>
10+
<version>0-SNAPSHOT</version>
11+
<dependencies>
12+
<dependency>
13+
<groupId>org.apposed</groupId>
14+
<artifactId>appose</artifactId>
15+
<version>RELEASE</version>
16+
</dependency>
17+
</dependencies>
18+
</project>

bin/test.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,7 @@ cd "$dir/.."
1313
if [ ! -d target/dependency ]
1414
then
1515
echo "==> Installing appose-java..."
16-
mkdir -p target
17-
echo '<?xml version="1.0" encoding="UTF-8"?>
18-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
19-
<modelVersion>4.0.0</modelVersion>
20-
<groupId>org.apposed</groupId>
21-
<artifactId>appose-python</artifactId>
22-
<version>0-SNAPSHOT</version>
23-
<dependencies>
24-
<dependency>
25-
<groupId>org.apposed</groupId>
26-
<artifactId>appose</artifactId>
27-
<version>RELEASE</version>
28-
</dependency>
29-
</dependencies>
30-
</project>' > appose.pom
3116
mvn -f appose.pom dependency:copy-dependencies
32-
rm appose.pom
3317
fi
3418

3519
if [ $# -gt 0 ]

0 commit comments

Comments
 (0)