mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 00:07:05 +05:30
build: apply gradle cache fix plugin
This commit is contained in:
parent
eb00c7b8c5
commit
a381d3d1ed
6 changed files with 28 additions and 3 deletions
|
@ -45,4 +45,7 @@ gradlePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
dependencies { implementation(libs.build.agp) }
|
||||
dependencies {
|
||||
implementation(libs.build.agp)
|
||||
implementation(libs.build.cachefix)
|
||||
}
|
||||
|
|
|
@ -2,14 +2,17 @@ package dev.msfjarvis.aps.gradle
|
|||
|
||||
import com.android.build.api.dsl.TestExtension
|
||||
import com.android.build.gradle.TestedExtension
|
||||
import org.gradle.android.AndroidCacheFixPlugin
|
||||
import org.gradle.api.JavaVersion
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.apply
|
||||
import org.gradle.kotlin.dsl.findByType
|
||||
|
||||
@Suppress("UnstableApiUsage")
|
||||
class AndroidCommonPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) {
|
||||
project.pluginManager.apply(AndroidCacheFixPlugin::class)
|
||||
project.extensions.findByType<TestedExtension>()?.run {
|
||||
setCompileSdkVersion(31)
|
||||
defaultConfig {
|
||||
|
|
|
@ -27,7 +27,11 @@ dependencyResolutionManagement {
|
|||
}
|
||||
exclusiveContent {
|
||||
forRepository(::gradlePluginPortal)
|
||||
filter { includeModule("com.github.ben-manes", "gradle-versions-plugin") }
|
||||
filter {
|
||||
includeModule("com.github.ben-manes", "gradle-versions-plugin")
|
||||
includeModule("org.gradle.android.cache-fix", "org.gradle.android.cache-fix.gradle.plugin")
|
||||
includeModule("gradle.plugin.org.gradle.android", "android-cache-fix-gradle-plugin")
|
||||
}
|
||||
}
|
||||
mavenCentral()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue