support

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Use sealed class to define Gradle installation in model request

    • -5
    • +17
    ./KotlinBuildScriptDependenciesResolver.kt
    • -12
    • +21
    ./KotlinBuildScriptModelRequest.kt
  1. … 2 more files in changeset.
Support for querying Kotling model from custom distribution

    • -3
    • +8
    ./KotlinBuildScriptDependenciesResolver.kt
Add Gradle user home and program arguments to KotlinBuildScriptModelRequest

    • -0
    • +5
    ./KotlinBuildScriptDependenciesResolver.kt
Generate accessors for project extensions during `buildSrc` build

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

  1. … 20 more files in changeset.
Adjust to change in `buildSrc` classpath behaviour

The buildSrc output is now included as a `buildSrc.jar`.

  1. … 1 more file in changeset.
Handle `HasImplicitReceiver` annotation via Kotlin compiler plugin

See #155

    • -0
    • +3
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 20 more files in changeset.
Import `java.io.File` by default

See #218

Import `org.gradle.api.*` by default

See #214

Polish top-level definitions, parameter lists and exceptions

* Separate top-level definitions by two lines

* Segregate visibility modifier of top-level definition to

its own line

* Prefer starting long parameter lists at the next line (more

sustainable in face of method renames)

* Remove unnecessary `Exception` suffix from class names

* Remove unnecessary prefixes from field names

* Use better name for exception variables

    • -13
    • +19
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 31 more files in changeset.
Hide functions and types that don't need to be exported

Keep builtin plugin extensions at the PluginDependenciesSpec level

See #168

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

See #186

    • -3
    • +6
    ./KotlinBuildScriptDependenciesResolver.kt
  1. … 1 more file in changeset.
Generate builtin plugin id extensions

See #168

  1. … 8 more files in changeset.
Add missing file headers

See #186

  1. … 1 more file in changeset.
Support the `plugins` block :tada:

We use a new type - `KotlinPluginDependenciesHandler` - as the target

for the top-level plugins block instead of the core type

`PluginDependenciesSpec` so we can annotate it with a `@DslMarker`

annotation - `@BuildScriptBlockMarker` - in the hopes that once IntelliJ

starts recognising it, the code completion experience will be better.

Better documentation comments and validation will come in subsequent

commits.

See #186

    • -0
    • +10
    ./KotlinPluginsBlock.kt
  1. … 10 more files in changeset.
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.
Update wrapper to latest snapshot distro

  1. … 12 more files in changeset.
Compute correct classpath for sub-project build script

Resolves #130

    • -3
    • +1
    ./KotlinBuildScriptDependenciesResolver.kt
    • -104
    • +0
    ./KotlinBuildScriptModelProvider.kt
    • -0
    • +62
    ./KotlinBuildScriptModelRequest.kt
    • -0
    • +52
    ./SourcePathProvider.kt
  1. … 4 more files 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

    • -3
    • +24
    ./KotlinBuildScriptDependenciesResolver.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

    • -0
    • +23
    ./ImplicitImports.kt
    • -0
    • +148
    ./KotlinBuildScriptDependenciesResolver.kt
    • -0
    • +104
    ./KotlinBuildScriptModelProvider.kt
  1. … 6 more files in changeset.
Remove ScriptTemplateDefinition annotation from KotlinBuildscriptBlock

To avoid confusing IDEs that rely on that information to decide what's

the correct template definition for a script based on its file name pattern.

  1. … 1 more file in changeset.
Preserve build script file name in cached classes

See #172

  1. … 4 more files in changeset.
Refer to buildscript *blocks* instead of *sections*

And consistenly use a lower-case `s` in the middle of the word when

referring to just the block and an upper-case `S` when referring to the

script file as a whole.

    • -0
    • +39
    ./KotlinBuildscriptBlock.kt
  1. … 6 more files in changeset.
Cache compiled scripts

- Introduce CachingKotlinCompiler

- Add compilation ClassPath (as ClassLoader) to cache key

- Add version number to script cache

- Honor `--recompile-scripts`

- Report compilation progress

Resolves #31

  1. … 5 more files in changeset.
Revert back to using method references after upgrade

The compiler errors were just a side-effect of using the dev version of

the compiler with the 1.1-M01 runtime.

  1. … 4 more files in changeset.
Upgrade to Kotlin 1.1-M02 :tada:

Resolves #164

  1. … 8 more files in changeset.
Upgrade to Kotlin 1.1.0-dev-3584

On our way to 1.1-M02.

See #164

  1. … 1 more file in changeset.
Introduce `gradleScriptKotlinApi()` dependency

Resolves #118

  1. … 2 more files in changeset.
Optimize `KotlinBuildScriptModelBuilder#canBuild`

Import java.lang exceptions for compatibility with Kotlin plugin

Version 1.1.0-dev-3687

  1. … 6 more files in changeset.