mirror of
https://github.com/github/codeql.git
synced 2026-03-05 07:06:47 +01:00
This adds a single plain Gradle project that uses a modern Kotlin build script (i.e. settings.gradle.kts and no build.gradle.kts), plus basic Android samples exercising the possible permutations of: (old vs. new-style build script, Groovy vs. Kotlin build script, wrapper present vs. absent) Old vs. new style tests our recognition of different cues that this is likely a Droid project and requires `gradle assemble` not `gradle testClasses` (the example given at https://developer.android.com/studio/build/#top-level changed style as of plugin version ~7.3.0). Groovy vs. Kotlin build script language checks that the regexes recognising Android dependencies and versions work for both build script kinds. Wrapper present vs. absent exercises the autobuilder logic that guesses an appropriate Gradle version and sets it up in the event the Gradle wrapper isn't provided.
14 lines
516 B
Groovy
14 lines
516 B
Groovy
plugins {
|
|
|
|
/**
|
|
* Use `apply false` in the top-level build.gradle file to add a Gradle
|
|
* plugin as a build dependency but not apply it to the current (root)
|
|
* project. Don't use `apply false` in sub-projects. For more information,
|
|
* see Applying external plugins with same version to subprojects.
|
|
*/
|
|
|
|
id 'com.android.application' version '7.3.1' apply false
|
|
id 'com.android.library' version '7.3.1' apply false
|
|
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
|
|
}
|