renovate/lib/modules/manager/gradle
Johannes Feichtner 32a13f66f9
feat(gradle-wrapper): add support for gradle daemon JVM discovery (#31319)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-09-15 04:59:25 +00:00
..
__fixtures__ fix(manager/gradle): normalize version aliases in version catalogs (#22470) 2023-05-29 04:02:24 +00:00
__snapshots__ chore(deps): lock file maintenance (#18082) 2022-10-10 21:47:23 -07:00
extract fix(manager/gradle): Add support for GCV 2.23.0 (#29874) 2024-06-26 16:28:13 +00:00
parser chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
artifacts.spec.ts feat(manager/gradle): Use dependencies task when generating verification metadata (#29602) 2024-06-11 18:02:50 +00:00
artifacts.ts feat(gradle-wrapper): add support for gradle daemon JVM discovery (#31319) 2024-09-15 04:59:25 +00:00
extract.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
extract.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
index.ts feat!: categories (#16534) 2023-07-04 19:21:52 +02:00
parser.spec.ts feat(manager/gradle): add support for dep matching in lists that are nested in Groovy maps (#28517) 2024-04-19 04:20:46 +00:00
parser.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
readme.md feat(manager/gradle): Use dependencies task when generating verification metadata (#29602) 2024-06-11 18:02:50 +00:00
types.ts feat(manager/gradle): add support for Kotlin `import` directives (#25486) 2023-10-28 21:53:31 +00:00
update.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
update.ts chore: update types reference 2023-08-15 11:31:15 +02:00
utils.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
utils.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00

readme.md

The gradle manager uses a custom parser written in JavaScript, similar to many others managers. It does not call gradle directly in order to extract a list of dependencies.

Updating lockfiles

The gradle manager supports gradle lock files in .lockfile artifacts, as well as lock files used by the gradle-consistent-versions plugin. During lock file maintenance, renovate calls ./gradlew :dependencies --write-locks on the root project and subprojects. For regular dependency updates, renovate automatically updates lock state entries via the --update-locks command line flag.

As the output of these commands can be very large, any text other than errors (in stderr) is discarded.

Dependency verification

If Renovate finds a gradle/verification-metadata.xml file, it updates the content by using the gradle --write-verification-metadata <hashTypes> dependencies command. Renovate will check the file for existing hash types (like sha256) and use them as <hashTypes>.

!!! warning Gradle allows verification metadata to use the md5 and sha1 algorithms. Because those algorithms are prone to collision attacks, Renovate ignores them. If Renovate encounters hashes that are generated with md5 or sha1 algorithms, Renovate uses sha256 instead.