From 087fd0dc07df219645673b6c1a1969180657b97d Mon Sep 17 00:00:00 2001 From: Matteo Hausner Date: Mon, 3 Jun 2024 19:55:52 +0200 Subject: [PATCH] IDEA run configurations: run application directly instead of gradle run task --- .../ControllerBuddy__autostart_client.xml | 13 ++++++++++ .../ControllerBuddy__autostart_local.xml | 13 ++++++++++ .../ControllerBuddy__autostart_server.xml | 13 ++++++++++ .../ControllerBuddy__de_DE_.xml | 12 +++++++++ .../ControllerBuddy__en_US_.xml | 12 +++++++++ .../ControllerBuddy__help.xml | 13 ++++++++++ ...ontrollerBuddy__run___autostart_client.xml | 25 ------------------- ...ControllerBuddy__run___autostart_local.xml | 25 ------------------- ...ontrollerBuddy__run___autostart_server.xml | 25 ------------------- .../ControllerBuddy__run___de_DE_.xml | 24 ------------------ .../ControllerBuddy__run___en_US_.xml | 24 ------------------ .../ControllerBuddy__run___help.xml | 25 ------------------- build.gradle | 16 ++++++------ 13 files changed, 84 insertions(+), 156 deletions(-) create mode 100644 .idea/runConfigurations/ControllerBuddy__autostart_client.xml create mode 100644 .idea/runConfigurations/ControllerBuddy__autostart_local.xml create mode 100644 .idea/runConfigurations/ControllerBuddy__autostart_server.xml create mode 100644 .idea/runConfigurations/ControllerBuddy__de_DE_.xml create mode 100644 .idea/runConfigurations/ControllerBuddy__en_US_.xml create mode 100644 .idea/runConfigurations/ControllerBuddy__help.xml delete mode 100644 .idea/runConfigurations/ControllerBuddy__run___autostart_client.xml delete mode 100644 .idea/runConfigurations/ControllerBuddy__run___autostart_local.xml delete mode 100644 .idea/runConfigurations/ControllerBuddy__run___autostart_server.xml delete mode 100644 .idea/runConfigurations/ControllerBuddy__run___de_DE_.xml delete mode 100644 .idea/runConfigurations/ControllerBuddy__run___en_US_.xml delete mode 100644 .idea/runConfigurations/ControllerBuddy__run___help.xml diff --git a/.idea/runConfigurations/ControllerBuddy__autostart_client.xml b/.idea/runConfigurations/ControllerBuddy__autostart_client.xml new file mode 100644 index 00000000..f420dc33 --- /dev/null +++ b/.idea/runConfigurations/ControllerBuddy__autostart_client.xml @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__autostart_local.xml b/.idea/runConfigurations/ControllerBuddy__autostart_local.xml new file mode 100644 index 00000000..16091d02 --- /dev/null +++ b/.idea/runConfigurations/ControllerBuddy__autostart_local.xml @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__autostart_server.xml b/.idea/runConfigurations/ControllerBuddy__autostart_server.xml new file mode 100644 index 00000000..947c455f --- /dev/null +++ b/.idea/runConfigurations/ControllerBuddy__autostart_server.xml @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__de_DE_.xml b/.idea/runConfigurations/ControllerBuddy__de_DE_.xml new file mode 100644 index 00000000..129a4e97 --- /dev/null +++ b/.idea/runConfigurations/ControllerBuddy__de_DE_.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__en_US_.xml b/.idea/runConfigurations/ControllerBuddy__en_US_.xml new file mode 100644 index 00000000..eab04291 --- /dev/null +++ b/.idea/runConfigurations/ControllerBuddy__en_US_.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__help.xml b/.idea/runConfigurations/ControllerBuddy__help.xml new file mode 100644 index 00000000..ec60e83e --- /dev/null +++ b/.idea/runConfigurations/ControllerBuddy__help.xml @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__run___autostart_client.xml b/.idea/runConfigurations/ControllerBuddy__run___autostart_client.xml deleted file mode 100644 index bc4dba71..00000000 --- a/.idea/runConfigurations/ControllerBuddy__run___autostart_client.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - true - true - false - false - - - \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__run___autostart_local.xml b/.idea/runConfigurations/ControllerBuddy__run___autostart_local.xml deleted file mode 100644 index a209844f..00000000 --- a/.idea/runConfigurations/ControllerBuddy__run___autostart_local.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - true - true - false - false - - - \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__run___autostart_server.xml b/.idea/runConfigurations/ControllerBuddy__run___autostart_server.xml deleted file mode 100644 index bed5b9ef..00000000 --- a/.idea/runConfigurations/ControllerBuddy__run___autostart_server.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - true - true - false - false - - - \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__run___de_DE_.xml b/.idea/runConfigurations/ControllerBuddy__run___de_DE_.xml deleted file mode 100644 index 0e559272..00000000 --- a/.idea/runConfigurations/ControllerBuddy__run___de_DE_.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - true - true - false - false - - - \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__run___en_US_.xml b/.idea/runConfigurations/ControllerBuddy__run___en_US_.xml deleted file mode 100644 index 9d393ec3..00000000 --- a/.idea/runConfigurations/ControllerBuddy__run___en_US_.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - true - true - false - false - - - \ No newline at end of file diff --git a/.idea/runConfigurations/ControllerBuddy__run___help.xml b/.idea/runConfigurations/ControllerBuddy__run___help.xml deleted file mode 100644 index 36dfb4b4..00000000 --- a/.idea/runConfigurations/ControllerBuddy__run___help.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - true - true - false - false - - - \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0116b8c5..d0cc4777 100644 --- a/build.gradle +++ b/build.gradle @@ -280,13 +280,6 @@ spotless { } } -tasks.register('cleanLibsDirectory') { - description = "Removes the \'${base.libsDirectory.get()}\' directory." - doLast { delete base.libsDirectory } -} - -jar.dependsOn cleanLibsDirectory - tasks.register('generateMetadata') { description = "Generates the \'$metadataFile\' source file" doLast { @@ -342,9 +335,16 @@ tasks.register('jlink', Exec) { commandLine "${javaHome.get()}/bin/jlink", '--output', runtimeDir.get(), '--strip-debug', '--no-header-files', '--no-man-pages', '--strip-native-commands', '--add-modules', 'java.desktop,java.management,jdk.unsupported,java.logging,jdk.accessibility,jdk.net,jdk.security.auth,jdk.xml.dom' } +tasks.register('cleanLibsDirectory') { + description = "Removes the \'${base.libsDirectory.get()}\' directory." + doLast { delete base.libsDirectory } +} + +jar.mustRunAfter cleanLibsDirectory + tasks.register('copyLibs', Copy) { description = 'Copies all jar files into a directory called \'libs\' inside the build directory.' - dependsOn jar + dependsOn cleanLibsDirectory, jar from configurations.runtimeClasspath into base.libsDirectory }