diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt index b26cf12d05a..9995ec306b2 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt @@ -511,6 +511,10 @@ abstract class AbstractJPackageTask @Inject constructor( override fun jvmToolEnvironment(): MutableMap = super.jvmToolEnvironment().apply { + put("GRADLE_PROJECT_DIR", "${project.projectDir}") + put("GRADLE_ROOT_PROJECT_DIR", "${project.rootProject.projectDir}") + put("GRADLE_BUILD_DIR", "${project.buildDir}") + put("GRADLE_ROOT_BUILD_DIR", "${project.rootProject.buildDir}") if (currentOS == OS.Windows) { val wixDir = wixToolsetDir.ioFile val wixPath = wixDir.absolutePath