Prevent cleaning destinationDirectory

i have some classes under my target Directory [System.getenv(“Directory”)], that i need them to buil my project,
my problem that when i a use ./gradlew build, the target Directory is cleaned.
There is a way to use this task bellow without cleaning my target directory.

i am using this in my build.gradle.kt :

tasks.withType<KotlinCompile>().configureEach {
    kotlinOptions.jvmTarget = "1.8"