Prevent cleaning destinationDirectory

Hello,
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 {
    destinationDirectory.set(file(System.getenv("Directory")))
    kotlinOptions.jvmTarget = "1.8"
  }