-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3 enable tests in github CI for the plugin
- Loading branch information
1 parent
1bedb3c
commit 9327d9c
Showing
6 changed files
with
30 additions
and
9 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
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,2 +1,23 @@ | ||
// --------------------------------------------------------------------------------------------------------------------- | ||
// Register delegate tasks | ||
// --------------------------------------------------------------------------------------------------------------------- | ||
|
||
listOf( | ||
"build", | ||
"clean", | ||
"assemble", | ||
"check", | ||
"format", | ||
"checkFormat", | ||
"test", | ||
) | ||
.forEach { taskName -> | ||
tasks.register(taskName) { | ||
group = tasks.first().group | ||
dependsOn(tasksWithNameInSubmodules(taskName)) | ||
} | ||
} | ||
|
||
fun tasksWithNameInSubmodules(taskName: String): List<Task> { | ||
return subprojects.mapNotNull { it.tasks.findByName(taskName) } | ||
} |
2 changes: 1 addition & 1 deletion
2
plugin/git-plugin/src/main/kotlin/com/github/simonhauck/git/process/ProcessWrapper.kt
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