Misc cleanups to build-logic and expand BCV exclusion list (#1622)
* build-logic: remove `kotlin-dsl-precompiled-script-plugins` plugin * build-logic: use generated accessors for extensions * build: exclude non-published library projects from API dump There's no point in tracking binary compatibility for libraries that are only used internally
This commit is contained in:
parent
43f6a0090f
commit
674a7d299b
13 changed files with 18 additions and 200 deletions
|
@ -8,10 +8,7 @@ import org.gradle.api.tasks.compile.JavaCompile
|
|||
import org.gradle.kotlin.dsl.withType
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
`kotlin-dsl`
|
||||
`kotlin-dsl-precompiled-script-plugins`
|
||||
}
|
||||
plugins { `kotlin-dsl` }
|
||||
|
||||
afterEvaluate {
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
|
|
|
@ -3,9 +3,17 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
import kotlinx.validation.ApiValidationExtension
|
||||
import org.gradle.kotlin.dsl.configure
|
||||
|
||||
plugins { id("org.jetbrains.kotlinx.binary-compatibility-validator") }
|
||||
|
||||
extensions.configure<ApiValidationExtension> { ignoredProjects = mutableSetOf("app") }
|
||||
apiValidation {
|
||||
ignoredProjects =
|
||||
mutableSetOf(
|
||||
"app",
|
||||
"coroutine-utils",
|
||||
"coroutine-utils-testing",
|
||||
"crypto-common",
|
||||
"crypto-pgpainless",
|
||||
"format-common",
|
||||
"diceware",
|
||||
)
|
||||
}
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
*/
|
||||
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.configure
|
||||
import org.jetbrains.kotlin.gradle.plugin.KaptExtension
|
||||
|
||||
plugins {
|
||||
kotlin("android")
|
||||
|
@ -13,7 +11,7 @@ plugins {
|
|||
}
|
||||
|
||||
afterEvaluate {
|
||||
extensions.configure<KaptExtension> {
|
||||
kapt {
|
||||
javacOptions {
|
||||
if (hasDaggerCompilerDependency()) {
|
||||
// https://dagger.dev/dev-guide/compiler-options#fastinit-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue