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
ext.internalProject = { code -> | |
dependencies { | |
implementation project(":$code") | |
} | |
} | |
ext.exposedProject = { code -> | |
dependencies { | |
api project(":$code") | |
} | |
} | |
ext.internalLib = { codes -> | |
dependencies { | |
codes.each { | |
if (it.startsWith("#")) { | |
compileOnly it.substring(1) | |
} else if (it.startsWith("*")) { | |
kapt it.substring(1) | |
} else { | |
implementation it | |
} | |
} | |
} | |
} | |
ext.exposedLib = { codes -> | |
dependencies { | |
codes.each { | |
if (it.startsWith("#")) { | |
compileOnly it.substring(1) | |
} else if (it.startsWith("*")) { | |
kapt it.substring(1) | |
} else { | |
api it | |
} | |
} | |
} | |
} | |
ext.test = { codes -> | |
dependencies { | |
codes.each { | |
if (it.startsWith("*")) { | |
kaptTest it.substring(1) | |
} else { | |
testImplementation it | |
} | |
} | |
} | |
} | |
ext.androidTest = { codes -> | |
dependencies { | |
codes.each { | |
if (it.startsWith("*")) { | |
kaptAndroidTest it.substring(1) | |
} else { | |
androidTestImplementation it | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment