Slackbot
03/02/2023, 9:43 PMCristianGM
03/02/2023, 9:45 PMcopy
method in Configuration
but the comment is scary:
// Instead of copying a configuration's roles outright, we allow copied configurations
// to assume any role. However, any roles which were previously disabled will become
// deprecated in the copied configuration. In 9.0, we will update this to copy
// roles and deprecations without modification. Or, better yet, we will remove support
// for copying configurations altogether.
CristianGM
03/02/2023, 9:53 PMconfiguration.dependencies.forEach {
val newConfiguration = ...
project.dependencies {
newConfiguration(it)
}
}
CristianGM
03/02/2023, 9:54 PMVampire
03/02/2023, 10:03 PMCristianGM
03/02/2023, 10:06 PMCristianGM
03/02/2023, 10:07 PMCristianGM
03/02/2023, 10:08 PMCristianGM
03/02/2023, 10:09 PMCristianGM
03/02/2023, 10:10 PMCristianGM
03/02/2023, 10:11 PMCristianGM
03/02/2023, 10:13 PMCristianGM
03/02/2023, 10:15 PMCristianGM
03/02/2023, 10:52 PMafterEvaluate {
configuration.dependencies.forEach {
val newConfiguration = ...
project.dependencies {
newConfiguration(it)
}
}
}
seems to work fineVampire
03/02/2023, 11:25 PMVampire
03/02/2023, 11:26 PMafterEvaluate
?CristianGM
03/02/2023, 11:30 PMVampire
03/02/2023, 11:31 PMVampire
03/02/2023, 11:31 PMCristianGM
03/02/2023, 11:31 PMVampire
03/02/2023, 11:31 PMconfiguration.withDependencies { ... }
CristianGM
03/02/2023, 11:32 PMVampire
03/02/2023, 11:32 PMVampire
03/02/2023, 11:32 PMCristianGM
03/02/2023, 11:34 PMVampire
03/02/2023, 11:35 PMVampire
03/02/2023, 11:37 PM