diff --git a/build.gradle b/build.gradle index b0d0370a9..6efddd406 100644 --- a/build.gradle +++ b/build.gradle @@ -48,6 +48,8 @@ shadowJar { //shadowJar.dependsOn([':core:serializeEngines']) +// Runs a build of the application. This does not include executions of the +// serialization of engines. tasks.register('deploy') { group = 'openrocket' dependsOn 'shadowJar' @@ -55,6 +57,8 @@ tasks.register('deploy') { println "Completed the deployable jar in './build/libs" } } +// Runs a complete build of the application. This includes executions the +// serialization of engines by fetching data from ThrustCurve. tasks.register('deployFull') { group = 'openrocket' dependsOn ':core:serializeEngines', 'shadowJar' diff --git a/core/build.gradle b/core/build.gradle index 5f555f767..a94c23244 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -54,10 +54,12 @@ dependencies { } def serializedEnginesPath = './src/main/resources/datafiles/thrustcurves/thrustcurves.ser' +// Deletes the serialize engine file if it exists. tasks.register('serializeEnginesDelete', Delete) { group = 'openrocket' delete fileTree(serializedEnginesPath) } +// Executes the serialization of engines from ThrustCurve. tasks.register('serializeEngines') { group = 'openrocket' if (!project.file(serializedEnginesPath).exists()) { @@ -65,7 +67,7 @@ tasks.register('serializeEngines') { dependsOn serializeEnginesExecute } else { - println 'Serialized engines in ${project.file(serializedEnginesPath)} already exist.' + println "Serialized engines in ${project.file(serializedEnginesPath)} already exist." } } tasks.register('serializeEnginesExecute', JavaExec) { @@ -85,7 +87,7 @@ tasks.register('copyReadmeMain', Copy) { } } -clean.dependsOn([serializeEnginesDelete]) +//clean.dependsOn([serializeEnginesDelete]) compileJava.dependsOn([copyReadmeMain]) // https://docs.gradle.org/7.4/userguide/cross_project_publications.html diff --git a/swing/build.gradle b/swing/build.gradle index e8d3d1b9c..3b5fd32b2 100644 --- a/swing/build.gradle +++ b/swing/build.gradle @@ -99,7 +99,7 @@ tasks.register('externalComponentsValidate') { def externalResourceComponents = './resources-src/datafiles/components-dbcook/orc'; def git = '../.git'; if (!project.file(externalResourceComponents).exists()) { - println 'found: ${project.file(externalResourceComponents)}' + println "found: ${project.file(externalResourceComponents)}" def message = "The component database is now a submodule, and must be included into\n" + "this project to compile and run the app.\n" + "\n";