From 21a51b616a62f8401ce89fb0ac85665a858b41a7 Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Wed, 29 May 2024 03:16:36 -0700 Subject: [PATCH 1/5] allow generated device files to be cached --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index b9ac8c4..c11cd1a 100644 --- a/build.gradle +++ b/build.gradle @@ -59,6 +59,9 @@ task generateDeviceFiles(type: NpxTask) { // when necessary. inputs.files(archiveTemplate.outputs) outputs.dir(outputDir).withPropertyName("outputDir") + + // Allow the outputs of this task to be cached + task.outputs.cacheIf { true } } // Include the generated files in the source to compile. From e6bc572d00ab1b30bcf03fab32a305f33483f7ee Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Wed, 29 May 2024 03:19:07 -0700 Subject: [PATCH 2/5] fix syntax error --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c11cd1a..758a123 100644 --- a/build.gradle +++ b/build.gradle @@ -61,7 +61,7 @@ task generateDeviceFiles(type: NpxTask) { outputs.dir(outputDir).withPropertyName("outputDir") // Allow the outputs of this task to be cached - task.outputs.cacheIf { true } + outputs.cacheIf { true } } // Include the generated files in the source to compile. From 14045af9e06b3cba96cb23feb6f708030ce4c202 Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Wed, 29 May 2024 04:28:46 -0700 Subject: [PATCH 3/5] cache archive-template tar --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 758a123..6698cc5 100644 --- a/build.gradle +++ b/build.gradle @@ -35,6 +35,9 @@ task archiveTemplate(type: Tar) { exclude "node_modules" into "asyncapi-template" // npm requires that everything be in a top-level folder } + + // Allow the outputs of this task to be cached + outputs.cacheIf { true } } // Add a task to generate java source code for the devices using npx to run From 1532c4c4823ae54800d92bb49f38ca1007564c0f Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Wed, 29 May 2024 15:06:20 -0700 Subject: [PATCH 4/5] use consistent indentation in build.gradle --- build.gradle | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 6698cc5..ab41b5e 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,8 @@ task archiveTemplate(type: Tar) { into "asyncapi-template" // npm requires that everything be in a top-level folder } + System.out. + // Allow the outputs of this task to be cached outputs.cacheIf { true } } @@ -77,17 +79,17 @@ task cleanDeviceFiles(type: Delete) { // Use a version of node and npm that is known to work. node { - download = true - version = '20.12.2' - npmVersion = '10.5.0' + download = true + version = '20.12.2' + npmVersion = '10.5.0' } publishing { - publications { - maven(MavenPublication) { - groupId = 'org.carlmontrobotics' - artifactId = 'WPIWebSockets' - from components.java + publications { + maven(MavenPublication) { + groupId = 'org.carlmontrobotics' + artifactId = 'WPIWebSockets' + from components.java + } } - } } From 16f9c8c9639a7700e0ee9636df96e730ce2dcad0 Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Wed, 29 May 2024 15:14:15 -0700 Subject: [PATCH 5/5] remove debug print statement --- build.gradle | 2 -- 1 file changed, 2 deletions(-) diff --git a/build.gradle b/build.gradle index ab41b5e..2ae0adc 100644 --- a/build.gradle +++ b/build.gradle @@ -36,8 +36,6 @@ task archiveTemplate(type: Tar) { into "asyncapi-template" // npm requires that everything be in a top-level folder } - System.out. - // Allow the outputs of this task to be cached outputs.cacheIf { true } }