Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit afd0eeb

Browse files
committed
refactor(build-logic): move all code to a single top-level project
1 parent 54bb467 commit afd0eeb

36 files changed

+47
-120
lines changed

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build-logic/android-plugins/build.gradle.kts

Lines changed: 0 additions & 64 deletions
This file was deleted.

build-logic/automation-plugins/build.gradle.kts

Lines changed: 0 additions & 48 deletions
This file was deleted.

build-logic/kotlin-plugins/build.gradle.kts renamed to build-logic/build.gradle.kts

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,32 @@ afterEvaluate {
2020
tasks.withType<KotlinCompile>().configureEach {
2121
kotlinOptions {
2222
jvmTarget = JavaVersion.VERSION_11.toString()
23-
freeCompilerArgs = freeCompilerArgs + "-Xsam-conversions=class" + "-opt-in=kotlin.RequiresOptIn"
23+
freeCompilerArgs = freeCompilerArgs + listOf(
24+
"-Xsam-conversions=class",
25+
"-opt-in=kotlin.RequiresOptIn",
26+
)
2427
}
2528
}
2629
}
2730

2831
gradlePlugin {
2932
plugins {
33+
register("android-application") {
34+
id = "com.github.android-password-store.android-application"
35+
implementationClass = "app.passwordstore.gradle.ApplicationPlugin"
36+
}
37+
register("android-library") {
38+
id = "com.github.android-password-store.android-library"
39+
implementationClass = "app.passwordstore.gradle.LibraryPlugin"
40+
}
41+
register("crowdin") {
42+
id = "com.github.android-password-store.crowdin-plugin"
43+
implementationClass = "app.passwordstore.gradle.crowdin.CrowdinDownloadPlugin"
44+
}
45+
register("git-hooks") {
46+
id = "com.github.android-password-store.git-hooks"
47+
implementationClass = "app.passwordstore.gradle.GitHooksPlugin"
48+
}
3049
register("kotlin-android") {
3150
id = "com.github.android-password-store.kotlin-android"
3251
implementationClass = "app.passwordstore.gradle.KotlinAndroidPlugin"
@@ -47,6 +66,26 @@ gradlePlugin {
4766
id = "com.github.android-password-store.ktfmt"
4867
implementationClass = "app.passwordstore.gradle.KtfmtPlugin"
4968
}
69+
register("published-android-library") {
70+
id = "com.github.android-password-store.published-android-library"
71+
implementationClass = "app.passwordstore.gradle.PublishedAndroidLibraryPlugin"
72+
}
73+
register("psl") {
74+
id = "com.github.android-password-store.psl-plugin"
75+
implementationClass = "app.passwordstore.gradle.psl.PublicSuffixListPlugin"
76+
}
77+
register("rename-artifacts") {
78+
id = "com.github.android-password-store.rename-artifacts"
79+
implementationClass = "app.passwordstore.gradle.RenameArtifactsPlugin"
80+
}
81+
register("sentry") {
82+
id = "com.github.android-password-store.sentry"
83+
implementationClass = "app.passwordstore.gradle.SentryPlugin"
84+
}
85+
register("versioning") {
86+
id = "com.github.android-password-store.versioning-plugin"
87+
implementationClass = "app.passwordstore.gradle.versioning.VersioningPlugin"
88+
}
5089
register("versions") {
5190
id = "com.github.android-password-store.versions"
5291
implementationClass = "app.passwordstore.gradle.DependencyUpdatesPlugin"
@@ -58,9 +97,15 @@ dependencies {
5897
implementation(libs.build.agp)
5998
implementation(libs.build.detekt)
6099
implementation(libs.build.diffutils)
100+
implementation(libs.build.download)
61101
implementation(libs.build.kotlin)
62102
implementation(libs.build.ktfmt)
103+
implementation(libs.build.mavenpublish)
104+
implementation(libs.build.metalava)
105+
implementation(libs.build.okhttp)
63106
implementation(libs.build.r8)
107+
implementation(libs.build.semver)
108+
implementation(libs.build.sentry)
64109
implementation(libs.build.vcu)
65110
implementation(libs.build.versions)
66111
implementation(libs.kotlin.coroutines.core)

build-logic/settings.gradle.kts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,3 @@ dependencyResolutionManagement {
6161
}
6262
}
6363
}
64-
65-
include("android-plugins")
66-
67-
include("automation-plugins")
68-
69-
include("kotlin-plugins")

0 commit comments

Comments
 (0)