-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: migrate subprojects.settings.gradle to kotlin (#5203)
- Loading branch information
Showing
7 changed files
with
33 additions
and
33 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
12 changes: 6 additions & 6 deletions
12
facades/subprojects.settings.gradle → facades/subprojects.settings.gradle.kts
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,13 +1,13 @@ | ||
// This magically allows subdirs in this subproject to themselves become sub-subprojects in a proper tree structure | ||
new File(rootDir, 'facades').eachDir { possibleSubprojectDir -> | ||
File(rootDir, "facades").listFiles()?.filter { it.isDirectory }?.forEach { possibleSubprojectDir -> | ||
if (!possibleSubprojectDir.name.startsWith(".")) { | ||
def subprojectName = 'facades:' + possibleSubprojectDir.name | ||
val subprojectName = "facades:" + possibleSubprojectDir.name | ||
println("Processing facade $subprojectName, including it as a sub-project") | ||
include subprojectName | ||
def subprojectPath = ":" + subprojectName | ||
def subproject = project(subprojectPath) | ||
include(subprojectName) | ||
val subprojectPath = ":" + subprojectName | ||
val subproject = project(subprojectPath) | ||
subproject.projectDir = possibleSubprojectDir | ||
} else { | ||
println("Ignoring entry $possibleSubprojectDir as it starts with .") | ||
} | ||
} | ||
} |
16 changes: 8 additions & 8 deletions
16
libs/subprojects.settings.gradle → libs/subprojects.settings.gradle.kts
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
10 changes: 5 additions & 5 deletions
10
metas/subprojects.settings.gradle → metas/subprojects.settings.gradle.kts
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,13 +1,13 @@ | ||
// This magically allows subdirs in this subproject to themselves become sub-subprojects in a proper tree structure | ||
new File(rootDir, "metas").eachDir { possibleSubprojectDir -> | ||
File(rootDir, "metas").listFiles()?.filter { it.isDirectory }?.forEach { possibleSubprojectDir -> | ||
if (!possibleSubprojectDir.name.startsWith(".")) { | ||
def subprojectName = "metas:" + possibleSubprojectDir.name | ||
val subprojectName = "metas:" + possibleSubprojectDir.name | ||
println("Processing meta module $subprojectName, including it as a sub-project") | ||
include(subprojectName) | ||
def subprojectPath = ":" + subprojectName | ||
def subproject = project(subprojectPath) | ||
val subprojectPath = ":" + subprojectName | ||
val subproject = project(subprojectPath) | ||
subproject.projectDir = possibleSubprojectDir | ||
} else { | ||
println("Ignoring entry $possibleSubprojectDir as it starts with .") | ||
} | ||
} | ||
} |
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
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