SourceDistributionProvider.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move all subprojects to the `subprojects` directory

  1. … 521 more files in changeset.
Let Gradle distribution sources resolution be lenient in face of errors

Synthetic repository used for Gradle src resolution uses artifact sources

This prevent Gradle source resolution failures when GRADLE_METADATA

feature preview is enabled

Polish `SourceDistributionProvider`

  1. … 1 more file in changeset.
Implement smarter strategy to resolve sources

This commit changes the way we find sources, by only looking into the appropriate repository. If the

version is a released version, then we will only look into the `distributions` repository. If it's

a snapshot, then we will look into the `distributions-snapshot` repository.

However, it's possible that this project depends on a Kotlin DSL custom distribution for which the

sources haven't been published. So to make it possible to resolve, we use a version range, ending

with the current version, and starting with the previous minor.

Cosmetics: rearrange imports and fixup mocking

  1. … 2 more files in changeset.
Convert body into expression

Refactor configuration creation into its own function

Renamed `downloadAndResolveSources` to `sourceDirs`

... and conform constant case to codebase standards

  1. … 2 more files in changeset.
Rename `SourceDistributionResolver` to `SourceDistributionProvider`

    • -0
    • +81
    ./SourceDistributionProvider.kt
  1. … 4 more files in changeset.