kotlin-dsl-samples icon indicating copy to clipboard operation
kotlin-dsl-samples copied to clipboard

Samples builds using the Gradle Kotlin DSL

Results 38 kotlin-dsl-samples issues
Sort by recently updated
recently updated
newest added
trafficstars

I am trying to convert the following groovy snippet to Kotlin: ``` class CustomPlugin implements Plugin { void apply(Project target) { target.apply plugin: 'com.jfrog.artifactory' target.artifactory { contextUrl = "http://some/artifactory/" }...

When building [multi-kotlin-project](https://github.com/gradle/kotlin-dsl-samples/tree/master/samples/multi-kotlin-project) with latest Gradle 6.5 it shows following warning: ``` > Configure project : The archives configuration has been deprecated for dependency declaration. This will fail with an...

### Context - Update deprecated `setClassifier` with `archiveClassifier` - Update deprecated `compile` with `implementation` ### Contributor Checklist - [x] Make sure that all commits are [signed off](https://git-scm.com/docs/git-commit#git-commit---signoff) to indicate that...

I have not found a way to translate the groovy definition of a source Set for integration tests into the Kotlin DSL. What I want: 1. Place integration tests in...

### Expected Behavior Should be able to override mainClassName for a task. ### Current Behavior Uses the application's mainClassName - and does not use task's overridden mainClassName. Currently it's using...

**Groovy DSL ~18s** scenario: `first use of largeJavaMultiProject` template: `largeJavaMultiProject` [performance test results](https://builds.gradle.org/repository/download/Gradle_Check_PerformanceExperimentCoordinator/13348908:id/report-performance-performance-tests.zip%21/report/tests/first-use-of-largeJavaMultiProject.html) **Kotlin DSL ~75s** scenario: `first use of largeJavaMultiProjectKotlinDsl` template: `largeJavaMultiProjectKotlinDsl` [performance test results](https://builds.gradle.org/repository/download/Gradle_Check_PerformanceExperimentCoordinator/13348908:id/report-performance-performance-tests.zip%21/report/tests/first-use-of-largeJavaMultiProjectKotlinDsl.html) Both with: - clean...

re:performance
in:kt-compiler
by:jetbrains

### Context This is a full sample of building the multiplatform kotlin project (common, js, jvm. native) * common module with shared logic, and expected declarations, and shared test cases...

Hi there, I migrated my project from groovy to kotlin based scripts but am unable to compile project. Please see errors below: ``` com.android.build.gradle.internal.dsl.DefaultConfig_Decorated cannot be cast to com.android.build.gradle.internal.dsl.ProductFlavor Possible...

when I add this dependencies, I can not run app because Default Activity not found. implementation ("androidx.ui:ui-tooling:0.1.0-dev02") implementation ("androidx.ui:ui-layout:0.1.0-dev02") implementation ("androidx.ui:ui-material:0.1.0-dev02") I use this : distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip

### Context While learning how to use the Kotlin DSL for Gradle I found the samples to be immensely helpful. However I missed a sample that demonstrated how to unit-test...

in:kotlin-dsl-samples