# How to imitate setting a property in the gradle.properties file via custom plugin

**URL:** <https://discuss.gradle.org/t/how-to-imitate-setting-a-property-in-the-gradle-properties-file-via-custom-plugin/38131>\
**Category:** Help/Discuss\
**Created:** [November 6, 2020, 2:34pm UTC](https://discuss.gradle.org/t/how-to-imitate-setting-a-property-in-the-gradle-properties-file-via-custom-plugin/38131 "2020-11-06T14:34:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neelysbar](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/neelysbar/32/8914_2.png) [@neelysbar](https://discuss.gradle.org/u/neelysbar)\
**Post date:** [November 6, 2020, 2:34pm UTC](https://discuss.gradle.org/t/how-to-imitate-setting-a-property-in-the-gradle-properties-file-via-custom-plugin/38131/1 "2020-11-06T14:34:15Z")

</div>

I am writing a custom Gradle plugin in Java. Internally it applies the `kotlin-gradle-plugin` to the consuming project.

```groovy
plugins {
    id 'java-gradle-plugin'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10"
}

```

```java
public class CustomPlugin implements Plugin<Project> {

    @Override
    public void apply(@NotNull Project project) {
        project.getPluginManager().apply(KotlinPluginWrapper.class);
    }
}

```

Kotlin plugin, by default, [adds a dependency](https://kotlinlang.org/docs/reference/using-gradle.html#dependency-on-the-standard-library) on Kotlin’s standard library, and to disable that behavior, one needs to add the following to the `gradle.properties` file:

```gradle
kotlin.stdlib.default.dependency=false

```

Is there a way to simulate the presence of such property in the custom plugin itself, to save the end user the trouble of adding the above mentioned line into the `gradle.properties` file?
