From 05529a414465adb3e77705e4b224fa9d71edddcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Gangs=C3=B8?= Date: Wed, 7 Jun 2023 13:47:33 +0200 Subject: [PATCH] refactor(core): only apply publish and codecov if they exist --- core/build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/build.gradle b/core/build.gradle index ce44445f0..2cc5fd191 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -64,5 +64,9 @@ tasks.withType(JavaExec) { } //apply from: "${rootProject.projectDir}/scripts/publish-module.gradle" -apply from: rootProject.file('gradle/mvn-publish.gradle') -apply from: rootProject.file('gradle/codecov.gradle') \ No newline at end of file +if (project.file('gradle/mvn-publish.gradle').exists()) { + apply from: rootProject.file('gradle/mvn-publish.gradle') +} +if (project.file('gradle/codecov.gradle').exists()) { + apply from: rootProject.file('gradle/codecov.gradle') +} \ No newline at end of file