all: switch to new convention plugins
This commit is contained in:
parent
4d327646a4
commit
120dc5fca4
4 changed files with 25 additions and 20 deletions
|
@ -5,14 +5,12 @@
|
|||
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
kotlin("android")
|
||||
kotlin("kapt")
|
||||
id("com.github.android-password-store.android-application")
|
||||
id("com.github.android-password-store.crowdin-plugin")
|
||||
id("com.github.android-password-store.kotlin-android")
|
||||
id("com.github.android-password-store.kotlin-kapt")
|
||||
id("com.github.android-password-store.versioning-plugin")
|
||||
id("dagger.hilt.android.plugin")
|
||||
id("com.github.android-password-store.kotlin-common")
|
||||
`versioning-plugin`
|
||||
`aps-plugin`
|
||||
`crowdin-plugin`
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -31,7 +29,18 @@ repositories {
|
|||
}
|
||||
}
|
||||
|
||||
configure<CrowdinExtension> { projectName = "android-password-store" }
|
||||
configure<crowdin.CrowdinExtension> {
|
||||
projectName = "android-password-store"
|
||||
skipCleanup = false
|
||||
}
|
||||
|
||||
fun isSnapshot(): Boolean {
|
||||
with(project.providers) {
|
||||
val workflow = environmentVariable("GITHUB_WORKFLOW").forUseAtConfigurationTime()
|
||||
val snapshot = environmentVariable("SNAPSHOT").forUseAtConfigurationTime()
|
||||
return workflow.isPresent || snapshot.isPresent
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
if (isSnapshot()) {
|
||||
|
|
|
@ -4,13 +4,11 @@
|
|||
*/
|
||||
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("com.github.android-password-store.android-library")
|
||||
id("com.github.android-password-store.kotlin-android")
|
||||
id("com.vanniktech.maven.publish")
|
||||
kotlin("android")
|
||||
id("org.jetbrains.dokka")
|
||||
id("com.github.android-password-store.kotlin-common")
|
||||
`aps-plugin`
|
||||
`psl-plugin`
|
||||
id("com.github.android-password-store.psl-plugin")
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
plugins {
|
||||
id("com.github.android-password-store.binary-compatibility")
|
||||
id("com.github.android-password-store.gradle")
|
||||
id("com.github.android-password-store.git-hooks")
|
||||
id("com.github.android-password-store.kotlin-common")
|
||||
id("com.github.android-password-store.binary-compatibility")
|
||||
id("com.github.android-password-store.git-hooks")
|
||||
id("com.github.android-password-store.gradle")
|
||||
id("com.github.android-password-store.spotless")
|
||||
}
|
||||
|
|
|
@ -4,12 +4,10 @@
|
|||
*/
|
||||
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("com.github.android-password-store.android-library")
|
||||
id("com.github.android-password-store.kotlin-android")
|
||||
id("com.vanniktech.maven.publish")
|
||||
kotlin("android")
|
||||
id("org.jetbrains.dokka")
|
||||
id("com.github.android-password-store.kotlin-common")
|
||||
`aps-plugin`
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
Loading…
Reference in a new issue