KotlinBuildScript.kt

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.
Polish `KotlinBuildScript`

- Move `#apply` to `ProjectExtensions`

- Move `GradleDsl` to its own file

  1. … 2 more files in changeset.
Polish build script base classes

  1. … 2 more files in changeset.
Rename `KotlinScriptHandler => ScriptHandlerScope`

  1. … 3 more files in changeset.
Rename `KotlinPluginDependenciesHandler => PluginDependenciesSpecScope`

  1. … 4 more files in changeset.
Rename `BuildScriptBlockMarker => GradleDsl`

  1. … 1 more file in changeset.
Polish

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

`inline` modifiers

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

See #234

  1. … 23 more files in changeset.
:arrow_up: Kotlin 1.1.0-beta-37

See #157

  1. … 1 more file in changeset.
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

  1. … 38 more files 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

  1. … 10 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

  1. … 10 more files in changeset.
Upgrade to Kotlin 1.1-M01 :tada:

Resolves #98

Resolves #93

Resolves #92

  1. … 8 more files in changeset.
Polish Kotlin sources

- Add Apache license header where missing

- Replace wildcard imports with individual imports

- Organize import statements

- Wrap code at 120 chars

- Wrap KDoc at 90 chars

- Eliminate newlines between KDoc tags

  1. … 20 more files in changeset.
Merge branch 'master' into refactor-buildscript-handling

# Conflicts:

# src/main/kotlin/org/gradle/script/lang/kotlin/KotlinBuildScript.kt

# src/main/kotlin/org/gradle/script/lang/kotlin/provider/KotlinScriptPluginFactory.kt

  1. … 4 more files in changeset.
Inline `KotlinBuildScript.apply` to avoid ClassLoader constraint violations

Add Kotlin Hello World sample

- improve repositories dsl

- introduce `apply { ... }`

  1. … 7 more files in changeset.
:arrow_up: Kotlin@1.1.0-dev-1159

For the latest changes to the `ScriptDependenciesResolver` API.

  1. … 3 more files in changeset.
Add implicit imports and basic script dependsOn annotation

  1. … 4 more files in changeset.
Support for `buildscript` section (wip)

  1. … 10 more files in changeset.
Implement prototype of script def based on annotated base class

  1. … 5 more files in changeset.
Fix script compilation

By explicitly passing the script classpath in the compiler configuration

instead of assuming the compiler would get it from the given

`KotlinScriptDefinition` (which will be fixed in a future Kotlin

version).

The classpath given to the compiler is still not the correct one

though. This will be fixed in future commits.

Also give an explicit `ClassLoader` to the Kotlin script compiler

otherwise it will use the system's ClassLoader which holds the incorrect

definition of `org.gradle.api.Project`.

The given `ClassLoader` is still not the correct one though. This will

be fixed in future commits.

  1. … 3 more files in changeset.
Introduce KotlinScriptPlugin and support

    • -0
    • +21
    ./KotlinBuildScript.kt
  1. … 8 more files in changeset.