After some vacations and some priority changes I a...
# community-support
j
After some vacations and some priority changes I am back trying to test my gradle plugins.. I got this working
Copy code
@Test
    fun myTest() {
        val project = ProjectBuilder.builder().build() as ProjectInternal
        project.plugins.apply("MyAndroidPluginId")
        project.evaluate()
        val android = project.extensions.getByName("android") as ApplicationExtension
        assertEquals(android.compileSdk, 33)
    }
Now suppose I change
compileSdk
based in some compilation flag that I pass to gradle, something like
./gradlew someTask -PsdkVersion=34
, how could I test that in my unittest ?