Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Define variable in root project and access it in subprojects by using extra
- 1) val foo: String by extra["hello"]
- 2) extra["foo"] = "hello"
- 3)
- buildScript {
- extra.apply {
- set("foo", "hello")
- }
- }
- // Access the extra variables in subprojects:
- rootProject.extra["foo"] as String
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement