Skip to content

Instantly share code, notes, and snippets.

@hakanai
Created October 11, 2025 17:49
Show Gist options
  • Save hakanai/688069b708b5694b7f7c8b95d0f02ebb to your computer and use it in GitHub Desktop.
Save hakanai/688069b708b5694b7f7c8b95d0f02ebb to your computer and use it in GitHub Desktop.
Is there a more streamlined way to boot Material 2 out of the project?
// This is the sort of thing that should be in `settings.gradle.kts`, but there's no API for it yet.
// I could boot it out into `buildSrc`, but for now it lives here.
allprojects {
configurations.all {
resolutionStrategy {
dependencySubstitution {
substitute(module("org.jetbrains.compose.material:material"))
.because("Material 3 is shinier")
.using(module(compose.dependencies.material3))
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment