File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
app/src/processing/app/gradle
java/gradle/hotreload/src/main/kotlin/org/processing/java/gradle Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,14 @@ class GradleJob(
122122 // Create the init.gradle.kts file in the working directory
123123 // This allows us to run the gradle plugin that has been bundled with the editor
124124 // TODO: Add the plugin repositories if they are defined
125+ // TODO: Feedback when the JDK is being downloaded
125126 val initGradle = workingDir.resolve(" init.gradle.kts" ).apply {
126127 val content = """
127128 beforeSettings{
128129 pluginManagement {
130+ plugins {
131+ id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
132+ }
129133 repositories {
130134 maven("$repository ")
131135 gradlePluginPortal()
@@ -219,9 +223,6 @@ class GradleJob(
219223 val arguments = mutableListOf (" --init-script" , initGradle.toAbsolutePath().toString())
220224 // Hide Gradle output from the console if not in debug mode
221225 if (! DEBUG ) arguments + = " --quiet"
222- // TODO: Fix continuous mode for the hot reload
223- arguments + = " -t"
224-
225226 if (copy) arguments + = listOf (" --project-dir" , sketchFolder.absolutePath)
226227
227228 arguments + = variables.entries
Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ package org.processing.java.gradle
22
33import org.gradle.api.Plugin
44import org.gradle.api.Project
5- import org.gradle.api.plugins.JavaPlugin
65import org.gradle.api.plugins.JavaPluginExtension
76import org.gradle.jvm.toolchain.JavaLanguageVersion
87import org.gradle.jvm.toolchain.JvmVendorSpec
98import org.jetbrains.compose.reload.gradle.ComposeHotReloadPlugin
10- import org.jetbrains.compose.reload.gradle.ComposeHotRun
119
1210class ProcessingHotReloadPlugin : Plugin <Project > {
1311 override fun apply (project : Project ) {
You can’t perform that action at this time.
0 commit comments