Skip to content
This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Conversation

eskatos
Copy link
Member

@eskatos eskatos commented Feb 20, 2018

No description provided.

JLLeitschuh and others added 30 commits November 14, 2017 19:01
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.
... and conform constant case to codebase standards
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.
Until a new version of the `embedded-kotlin` and `kotlin-dsl` plugins
is published.
Until a new version of `kotlin-dsl` is published.
}
configurations["compileClasspath"].files.forEach {
println(it)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to leave this here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was in v0.14.2 and has been removed on develop since then. Given it's a test I would leave it there yes.

@eskatos eskatos merged commit 5c4702b into master Feb 21, 2018
@eskatos eskatos deleted the eskatos/master/gradle-4.5.1 branch February 21, 2018 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants