gradle / kotlin-dsl-samples

Samples builds using the Gradle Kotlin DSL
https://gradle.org/kotlin/
Other
3.71k stars 434 forks source link

Add ability to apply plugins in the included scripts #1359

Closed imanushin closed 5 years ago

imanushin commented 5 years ago

Currently I'm unable to install plugin from the external Kotlin Script.

Expected Behavior

As project developer I can:

Current Behavior

As project developer I can:

However I could not use plugin (which is mentioned in the included file only), because the following construction is not correct (e.g. method was not found): compile(group="org.jetbrains.kotlinx", name="kotlinx-coroutines-core", version="1.1.1").

Context

I'd like to achieve:

Steps to Reproduce (for bugs)

n/a (feature request)

Your Environment

n/a

eskatos commented 5 years ago

Thank you for the report @imanushin, closing as a duplicate of https://github.com/gradle/kotlin-dsl/issues/1287, see in particular https://github.com/gradle/kotlin-dsl/issues/1287#issuecomment-486182546.