Commit Graph

227 Commits

Author SHA1 Message Date
Johannes Feichtner 351fd363c1 fix(gradle): ignore stages() method from reckon plugin (#16401) 2022-07-03 16:25:36 +00:00
Johannes Feichtner d19d645b6c feat(manager/gradle): add support for apply from statements (#16030)
* add synchronous local file read

* add tests

* add support for apply from statements

* add safeguard to prevent breakout from localDir

* add safeguard to allow "apply from" only with official Gradle file types

* fix: use async io

* fix test coverage

* Update lib/modules/manager/gradle/extract.spec.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* Update lib/modules/manager/gradle/extract.spec.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* Update lib/modules/manager/gradle/extract.spec.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* re-add try/catch

* add istanbul ignore

* Update lib/modules/manager/gradle/parser.ts

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* fs tests: remove obsolete block

* remove istanbul ignore next

* Update lib/modules/manager/gradle/extract.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* tests: replace mockImplementationOnce() with mockRejectedValueOnce()

* scriptFile: explicitly set null for undefined values

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2022-07-03 15:58:58 +02:00
Johannes Feichtner aa50662d3d feat(gradle): add support for versions with underscores (#16365) 2022-07-02 08:54:50 +00:00
Johannes Feichtner b9a400aa9f feat(gradle): add interpolation for local name variable in registry URL (#16136) 2022-06-22 11:10:34 +00:00
Michael Kriese 10302eba68 refactor: fix prefer-nullish-coalescing (#16171) 2022-06-21 12:02:49 +00:00
Michael Kriese e5c6f38d75 refactor: enable strict checks (#16168)
* refactor:  enable strict checks

* chore: revert changes

* chore: fix tsconfig
2022-06-21 13:00:21 +02:00
Michael Kriese 0a582d31c7 refactor: fix nullable types (#16156)
* refactor: fix nullable types

* chore: revert changes

* chore: fix lint comments

* chore: revert changes
2022-06-20 16:15:40 +00:00
Michael Kriese b4319928f1 refactor: strict manager tests (#16155)
* refactor: strict manager tests

* chore: revert changes

* Update lib/modules/manager/gradle/extract.spec.ts
2022-06-20 17:05:39 +02:00
Johannes Feichtner 8d9e3be6f3 feat(gradle): add support for library(...).version() (#15929) 2022-06-13 07:12:02 +02:00
Johannes Feichtner 0496610fe4 feat(gradle): add support for simple extra properties (#15983) 2022-06-10 03:56:32 +00:00
Johannes Feichtner d40a8a9745 feat(manager/gradle): add support for registry URL interpolation and additional properties delimiters (#15903) 2022-06-07 07:47:50 +00:00
Sergei Zharinov 918ef59df0 fix(gradle): Refer correct file when resolving version from variable (#15581) 2022-05-14 15:59:02 +00:00
Sergei Zharinov c5a60d1c02 fix(gradle): Parse dependencies declared via library() (#15541) 2022-05-11 12:27:02 +02:00
StinkyLord dad6a1f607 fix(gradle): gradle/libs.versions.toml should replace version not comment (#15330) 2022-05-11 05:44:44 +02:00
Hasan Awad e520129272 fix(manager/gradle): Add groupName for toml parser and plugins (#15190) 2022-05-05 07:41:06 +02:00
Maron 27dd1c027a bug: Gradle-Unsupported dependency formats (#15355) 2022-04-29 08:13:19 +00:00
Michael Kriese d9bbc18155 test: fix java skipping (#15232) 2022-04-21 16:59:49 +02:00
Michael Kriese f5f06c73be refactor(manager): more strict null checks (#15168) 2022-04-20 06:19:59 +02:00
Sergei Zharinov f317458b95 fix(gradle): Don't skip files matched via custom pattern (#15027) 2022-04-08 16:25:48 +01:00
Róbert Papp 5946790b66 fix(gradle): Ignore Kotlin collection methods as dependencies (#14925) 2022-04-04 06:05:07 +02:00
Sergei Zharinov 5aed625302 fix(gradle): Fix false detected dependencies (#14917) 2022-04-03 15:37:27 +02:00
Sergei Zharinov e0cbabe452 fix(gradle): Fix registry url parsing (#14783) 2022-03-24 10:02:10 +00:00
wada811 0598f1b9d2 feat(manager/gradle): support repository content filtering of predefined registry (#14592)
* Add test for repository content filtering

* Support repository content filtering

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-03-10 13:28:07 +01:00
zml bb6bc35e4d fix(manager/gradle): Initial handling of rich versions in gradle version catalogs (#14533) 2022-03-08 04:54:45 +00:00
Rhys Arkins 8bd77f747b feat(gradle): remove deepExtract (#14497)
Removes Gradle `deepExtract` option

BREAKING CHANGE: Option `deepExtract` is now removed and will be ignored
2022-03-04 09:04:02 +01:00
Rhys Arkins 143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00