SourcePathProvider.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.
Hardcode 'build' on both sides of buildSrc source roots resolution

  1. … 1 more file in changeset.
Fix buildSrc classpath invalidation between regular and ide modes

Previous implementation using a file added to buildSrc jar was a bad

idea, it would have invalidated the buildSrc classpath each time build

executions switch between regular and ide modes.

Put the file under `buildSrc/build` instead.

  1. … 1 more file in changeset.
Source sets and project dependencies in buildSrc source roots

A BuildSrcProjectConfiguration action creates a task that generates a

text file containing the source roots for the root buildSrc project and

all its runtime project dependencies.

This allows for correct buildSrc source roots resolution when editing

kotlin settings or build scripts in the presence of a multi-project

buildSrc build.

  1. … 6 more files in changeset.
lint: missing new line before ")"

  1. … 42 more files in changeset.
lint: if/else omit braces only if single expression same line

  1. … 2 more files in changeset.
Polish `SourcePathProviderTest`

  1. … 1 more file in changeset.
Simplify `ExtractGradleSourcesTransform#sourceDirectories`

  1. … 1 more file in changeset.
Re-arrange imports

Use more functional style for source path provider

Renamed `downloadAndResolveSources` to `sourceDirs`

... and conform constant case to codebase standards

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

  1. … 4 more files in changeset.
Lazily download Gradle sources when they aren't available

This commit implements lazy download of Gradle sources when they are not available. Previously,

the Kotlin DSL expected the `all` distribution to be used to provide proper IDE support. If this

distribution wasn't used (typically with the wrapper), then navigating to sources wasn't possible.

With this commit, if the sources are not available, Gradle will do its best to download the zip

of sources and make it available.

It does so by creating a temporary configuration that is used to reference the Gradle sources,

which are then exploded through a dependency transform, so that the IDE can use them.

  1. … 4 more files in changeset.
Restore source navigation for Gradle sources

Has been broken since #561

Coverage included

  1. … 3 more files in changeset.
Rename base package to org.gradle.kotlin.dsl

    • -0
    • +60
    ./SourcePathProvider.kt
  1. … 313 more files in changeset.