mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 23:11:31 +00:00
28ab04b43d
* feat(manager/ant): add registry URL discovery from settingsFile and remoteRepository Read Maven registry URLs from settingsFile attribute on dependency blocks (parsed via Maven's extractRegistries) and from inline <remoteRepository url="..." /> elements. Registries are merged, deduplicated, and scoped to their dependency block. * update java docs * fix coverage * apply suggestions * fix ci issues
Extracts Apache Ant dependencies from build.xml files that use the maven-resolver-ant-tasks or maven-ant-tasks library.
Dependencies are looked up using the Maven datasource.
Supported syntax
Renovate extracts dependencies from <dependency> elements in two formats:
- Separate attributes:
groupId,artifactId,version, and optionalscope - Coords attribute:
coords="group:artifact:version"orcoords="group:artifact:version:scope"
Property resolution
Version values can reference Ant properties defined via <property name="..." value="..."/> or loaded from external .properties files via <property file="..."/>.
Ant's first-definition-wins semantics are respected.
File traversal
Renovate follows <import file="..."/> elements to extract dependencies from imported build files.
Properties defined before an <import> are available in the imported file.
Registry URLs
Renovate discovers Maven registry URLs from:
settingsFileattribute on<artifact:dependencies>elements (parsed as a Mavensettings.xml)- Inline
<remoteRepository url="..." />elements within dependency blocks
Discovered registries are scoped to their dependency block.