forked from unshare/hybris-integration-intellij-idea-plugin
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#575 | Improved detection of the Gradle modules
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/* | ||
* This file is part of "hybris integration" plugin for Intellij IDEA. | ||
* This file is part of "SAP Commerce Developers Toolset" plugin for Intellij IDEA. | ||
* Copyright (C) 2014-2016 Alexander Bartash <[email protected]> | ||
* Copyright (C) 2019-2023 EPAM Systems <[email protected]> and contributors | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as | ||
|
@@ -130,7 +131,8 @@ public boolean isGradleModule(final File file) { | |
if (file.getAbsolutePath().contains(HybrisConstants.PLATFORM_MODULE_PREFIX)) { | ||
return false; | ||
} | ||
return new File(file, HybrisConstants.GRADLE_SETTINGS).isFile(); | ||
return new File(file, HybrisConstants.GRADLE_SETTINGS).isFile() | ||
|| new File(file, HybrisConstants.GRADLE_BUILD).isFile(); | ||
} | ||
|
||
@Override | ||
|
@@ -139,7 +141,8 @@ public boolean isGradleKtsModule(final File file) { | |
if (file.getAbsolutePath().contains(HybrisConstants.PLATFORM_MODULE_PREFIX)) { | ||
return false; | ||
} | ||
return new File(file, HybrisConstants.GRADLE_SETTINGS_KTS).isFile(); | ||
return new File(file, HybrisConstants.GRADLE_SETTINGS_KTS).isFile() | ||
|| new File(file, HybrisConstants.GRADLE_BUILD_KTS).isFile(); | ||
} | ||
|
||
@Override | ||
|