Skip to content

Commit

Permalink
#380: make cache-pattern more similar to default pattern.
Browse files Browse the repository at this point in the history
This should keep the existing cache valid and re-usable.
Otherwise, we would create a new cache structure within the existing cache, with redundant entries.
With this change, we limit the redundancy to arch- or classifier-specific entries.
  • Loading branch information
kfriedberger committed Oct 13, 2024
1 parent 68bab2b commit fa64e1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/ivysettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ SPDX-License-Identifier: Apache-2.0
<!-- Resolver for downloading dependencies -->
<url name="Sosy-Lab" descriptor="required">
<ivy pattern="${ivy.repo.url}/[organisation]/[module]/ivy-[revision].xml" />
<artifact
pattern="${ivy.repo.url}/[organisation]/[module]/([arch]/)[artifact]-[revision](-[classifier]).[ext]" />
<artifact pattern="${ivy.repo.url}/[organisation]/[module]/([arch]/)[artifact]-[revision](-[classifier]).[ext]" />
</url>

<!-- Resolver for publishing this project -->
<filesystem name="Sosy-Lab-Publish">
<ivy pattern="${repo.dir}/[organisation]/[module]/ivy-[revision].xml" />
<artifact
pattern="${repo.dir}/[organisation]/[module]/([arch]/)[artifact]-[revision](-[classifier]).[ext]" />
<artifact pattern="${repo.dir}/[organisation]/[module]/([arch]/)[artifact]-[revision](-[classifier]).[ext]" />
</filesystem>
</resolvers>

<!-- override default cache pattern [organisation]/[module]/[type]s/[artifact]-[revision].[ext] -->
<caches defaultCacheDir="${ivy.cache.dir}"
artifactPattern="[organisation]/[module]/[revision]/[type]s/([arch]/)[artifact](-[classifier]).[ext]"/>
artifactPattern="[organisation]/[module]/[type]s/([arch]/)[artifact]-[revision](-[classifier]).[ext]"/>
</ivysettings>

0 comments on commit fa64e1d

Please sign in to comment.