Pin AGP 'debug.keystore' in the repo.
This change adds shared 'debug.keystore' into the repository and sets all the tests to use it. Fixes issue when keystore was created by AGP 7+, but then consumed in the test using lower versions of AGP. ^KT-45745 In Progress
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
import plugins.KotlinBuildPublishingPlugin
|
||||
|
||||
plugins {
|
||||
id("java-gradle-plugin")
|
||||
id("gradle-plugin-common-configuration")
|
||||
id("com.gradle.plugin-publish")
|
||||
}
|
||||
|
||||
repositories {
|
||||
google()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(gradleKotlinDsl())
|
||||
compileOnly("com.android.tools.build:gradle:3.4.0")
|
||||
compileOnly("com.android.tools.build:gradle-api:3.4.0")
|
||||
compileOnly("com.android.tools.build:builder:3.4.0")
|
||||
compileOnly("com.android.tools.build:builder-model:3.4.0")
|
||||
}
|
||||
|
||||
configure<GradlePluginDevelopmentExtension> {
|
||||
isAutomatedPublishing = false
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
(plugins) {
|
||||
create("android-test-fixes") {
|
||||
id = "org.jetbrains.kotlin.test.fixes.android"
|
||||
implementationClass = "org.jetbrains.kotlin.gradle.test.fixes.android.AndroidTestFixesPlugin"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pluginBundle {
|
||||
(plugins) {
|
||||
named("android-test-fixes") {
|
||||
id = "org.jetbrains.kotlin.test.fixes.android"
|
||||
displayName = "AndroidTestFixes"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishPluginMarkers()
|
||||
|
||||
// Disable releasing for this plugin
|
||||
// It is not intended to be released publicly
|
||||
tasks.withType<PublishToMavenRepository>()
|
||||
.configureEach {
|
||||
if (name.endsWith("PublicationTo${KotlinBuildPublishingPlugin.REPOSITORY_NAME}Repository")) {
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("publishPlugins") {
|
||||
enabled = false
|
||||
}
|
||||
Reference in New Issue
Block a user