Ensure to run both (#59)

This commit is contained in:
Jakub authored and GitHub committed 2022-08-21 22:47:12 +02:00
1 parent fd64439286
commit 56f8081427
1 file changed
+6 -2
+6 -2
View File
@@ -60,7 +60,9 @@ plugins {
id 'com.github.gmazzo.buildconfig' version '3.0.3' apply false
id 'com.diffplug.spotless' version '6.7.2' apply false
}
if (verifySettingsGradle() || verifyGitAttributes())
boolean settingsupdated = verifySettingsGradle()
settingsupdated = verifyGitAttributes() || settingsupdated
if (settingsupdated)
throw new GradleException("Settings has been updated, please re-run task.")
dependencies {
@@ -708,7 +710,9 @@ boolean performBuildScriptUpdate(String projectDir) {
def buildscriptFile = getFile("build.gradle")
availableBuildScriptUrl().withInputStream { i -> buildscriptFile.withOutputStream { it << i } }
out.style(Style.Success).print("Build script updated. Please REIMPORT the project or RESTART your IDE!")
if (verifySettingsGradle() || verifyGitAttributes())
boolean settingsupdated = verifySettingsGradle()
settingsupdated = verifyGitAttributes() || settingsupdated
if (settingsupdated)
throw new GradleException("Settings has been updated, please re-run task.")
return true
}