0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-19 19:52:14 +02:00

Add build-plugin

This commit is contained in:
Wolf Montwé 2023-02-13 16:02:16 +01:00
parent a3819fd102
commit 557bf1dcc7
No known key found for this signature in database
GPG Key ID: 6D45B21512ACBF72
4 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,11 @@
plugins {
`kotlin-dsl`
}
dependencies {
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
}
fun plugin(provider: Provider<PluginDependency>) = with(provider.get()) {
"$pluginId:$pluginId.gradle.plugin:$version"
}

View File

@ -0,0 +1,21 @@
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
versionCatalogs.create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
rootProject.name = "build-plugin"

View File

@ -0,0 +1,6 @@
import org.gradle.accessors.dm.LibrariesForLibs
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByName
val Project.libs: LibrariesForLibs
get() = extensions.getByName<LibrariesForLibs>("libs")

View File

@ -15,6 +15,8 @@ dependencyResolutionManagement {
}
}
includeBuild("build-plugin")
include(":app:k9mail")
include(":app:ui:base")
include(":app:ui:setup")