Add a check on isEnterpriseBuild before including enterprise module.

This is not strictly necessary, since if the enterprise modules are not there, nothing will be included by `allEnterpriseImpl()`, but for clarity, it's better to add this check.
This commit is contained in:
Benoit Marty
2024-07-01 11:53:43 +02:00
parent 4ccbe3a7ec
commit c4bb13098f

View File

@@ -248,7 +248,9 @@ knit {
dependencies {
allLibrariesImpl()
allServicesImpl()
allEnterpriseImpl(rootDir, logger)
if (isEnterpriseBuild) {
allEnterpriseImpl(rootDir, logger)
}
allFeaturesImpl(rootDir, logger)
implementation(projects.features.migration.api)
implementation(projects.anvilannotations)