support

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Convert to multi-project build in preparation to adding new modules

See #304

  1. … 263 more files in changeset.
Integration test samples

See #345

  1. … 31 more files in changeset.
Polish

- Normalise placement of `private`, `protected`, `internal` and

`inline` modifiers

  1. … 42 more files in changeset.
Remove unused imports

  1. … 1 more file in changeset.
Improve logging behaviour

- Make compiler messages format closer to Kotlin's

- Format messages only if the will be logged

  1. … 6 more files in changeset.
Make generated accessors visible to KotlinBuildScriptModel clients

See #234

    • -100
    • +0
    ./KotlinBuildScriptDependenciesResolverTest.kt
    • -13
    • +0
    ./asm/fixture/RemoveMethodsFixture.kt
  1. … 20 more files in changeset.
Use sealed class to define Gradle installation in model request

  1. … 4 more files in changeset.
Move away from deprecated `ref.javaClass` to `ref::class.java`

See #264

  1. … 9 more files in changeset.
Generate accessors for project extensions during `buildSrc` build

See: #229, #230, #231, #232, #233

  1. … 20 more files in changeset.
:arrow_up: mockito-kotlin 1.2.0

    • -2
    • +2
    ./KotlinBuildScriptDependenciesResolverTest.kt
  1. … 3 more files in changeset.
Handle `HasImplicitReceiver` annotation via Kotlin compiler plugin

See #155

  1. … 22 more files in changeset.
Recompute classpath upon plugins block changes

See #186

    • -5
    • +15
    ./KotlinBuildScriptDependenciesResolverTest.kt
  1. … 1 more file in changeset.
Generate builtin plugin id extensions

See #168

  1. … 9 more files in changeset.
Improve pop culture reference in test case

Pass kotlin-stdlib.jar path to the compiler

For 1.1-M03 no longer references the stdlib jar implicitly.

See #187

  1. … 1 more file in changeset.
:arrow_up: Kotlin 1.1-M03 :tada:

Resolves #187

    • -2
    • +2
    ./KotlinBuildScriptDependenciesResolverTest.kt
  1. … 1 more file in changeset.
Compute correct project root before requesting classpath

This allows opening a script file from a project different than the

one currently imported and still edit it with the correct classpath.

For instance, with this commit, build scripts under `samples/` can be

edited with the correct classpath.

Resolves #181

    • -0
    • +93
    ./ProjectRootOfTest.kt
  1. … 2 more files in changeset.
Polish script dependency resolution code

* Remove deprecated support for Kotlin IDEA 1.1-M01

* Pass script file path all the way down to the model builder in

preparation for better multi-project classpath computation

See #130

    • -90
    • +0
    ./GradleKotlinScriptDependenciesResolverTest.kt
    • -0
    • +90
    ./KotlinBuildScriptDependenciesResolverTest.kt
  1. … 8 more files in changeset.
Log ClassLoader hierarchy upon ClassLoader errors

See #143

  1. … 7 more files in changeset.
Report API jar generation progress

Resolves #116

  1. … 10 more files in changeset.
Include documentation in generated API extensions

See: #117

  1. … 6 more files in changeset.
Extract `ApiJar` and `ApiExtensionsJar` modules

See: #117

    • -0
    • +56
    ./KotlinCompilerTest.kt
  1. … 7 more files in changeset.
Support navigating to generated extensions sources

See #117

  1. … 4 more files in changeset.
Address code review feedback from @cbeams

- Rename `requiresExtension` to `conflictsWithExtensions`

- Rename `eraseMethodsMatching` to `removeMethodsMatching`

    • -0
    • +82
    ./asm/RemoveMethodsMatchingTest.kt
    • -13
    • +0
    ./asm/fixture/MethodEraserFixture.kt
    • -0
    • +13
    ./asm/fixture/RemoveMethodsFixture.kt
  1. … 4 more files in changeset.
Compile scripts against generated Kotlin API jar

We would like Kotlin build scripts to behave as if all the `Action<T>`

parameters in the Gradle API had been declared as `T.() -> Unit` to

avoid the need for explicitly qualifying the single argument to the

given lambda expressions with `it`.

In other words, we would like users to be writing code like:

copySpec {

from("src")

into("out")

}

Instead of:

copySpec {

it.from("src")

it.into("out")

}

Where `copySpec` is declared in the Gradle Java API as:

CopySpec copySpec(Action<? super CopySpec> configuration)

So far we have been able to avoid the qualifying `it` in some situations

via mindful use of inheritance and Kotlin extensions but a comprehensive

solution was still lacking. The underlying issue is that while Kotlin

does provide a type extension mechanism, type members still take

precedence over extensions and currently there's no mechanism to

instruct Kotlin otherwise.

In the future we might be able to implement a different solution to this

particular issue via a new Kotlin language feature still in discussion:

- https://youtrack.jetbrains.com/issue/KT-12848

In the meantime, by giving the Kotlin compiler a carefully crafted API

jar with all members that could potentially conflict with our provided

extensions removed we can work around the fact that interface members

take precedence over extension members and expose all the extensions we

want.

And that is the solution implemented in this commit:

- Remove all API methods that take a last `Action<T>` parameter

- Generate shim extensions that take a last `T.() -> Unit`

Proper treatment for generic types will be implemented in a future

commit.

Resolves: #52

See also: #54, #117

    • -0
    • +82
    ./asm/PrimitivesTest.kt
    • -0
    • +13
    ./asm/fixture/MethodEraserFixture.kt
  1. … 25 more files in changeset.
Preserve compatibility with Kotlin Plugin 1.1-M01

By always retrieving the model when `getScriptSectionTokens` is not

available.

    • -0
    • +40
    ./DefaultSourcePathProviderTest.kt
    • -0
    • +32
    ./FolderBasedTest.kt
    • -58
    • +60
    ./GradleKotlinScriptDependenciesResolverTest.kt
  1. … 1 more file in changeset.
Fix navigation to sources of `buildSrc` types

With tests this time to make sure it won't be lost again.

    • -0
    • +88
    ./GradleKotlinScriptDependenciesResolverTest.kt
  1. … 1 more file in changeset.
Support for `buildscript` section (wip)

  1. … 10 more files in changeset.