Skip to content

Commit 20b738b

Browse files
committed
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.
1 parent ee2ae46 commit 20b738b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ knit {
248248
dependencies {
249249
allLibrariesImpl()
250250
allServicesImpl()
251-
allEnterpriseImpl(rootDir, logger)
251+
if (isEnterpriseBuild) {
252+
allEnterpriseImpl(rootDir, logger)
253+
}
252254
allFeaturesImpl(rootDir, logger)
253255
implementation(projects.features.migration.api)
254256
implementation(projects.anvilannotations)

0 commit comments

Comments
 (0)