Skip to content

Commit

Permalink
prepend com.squareup.anvil to the convention plugin IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow committed Oct 30, 2023
1 parent 68c66a0 commit 8884f4d
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions annotations-optional/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'library'
id 'publish'
id 'com.squareup.anvil.library'
id 'com.squareup.anvil.publish'
}

publish {
Expand Down
4 changes: 2 additions & 2 deletions annotations/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'library'
id 'publish'
id 'com.squareup.anvil.library'
id 'com.squareup.anvil.publish'
}

publish {
Expand Down
8 changes: 4 additions & 4 deletions build-logic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ plugins {

gradlePlugin {
plugins {
module {
id = "library"
library {
id = "com.squareup.anvil.library"
implementationClass = "com.squareup.anvil.LibraryPlugin"
}
root {
id = "root"
id = "com.squareup.anvil.root"
implementationClass = "com.squareup.anvil.RootPlugin"
}
publish {
id = "publish"
id = "com.squareup.anvil.publish"
implementationClass = "com.squareup.anvil.PublishConventionPlugin"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ open class KtlintConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
target.plugins.apply(KtlintPlugin::class.java)

target.plugins.apply(org.jlleitschuh.gradle.ktlint.KtlintPlugin::class.java)

target.extensions.configure(KtlintExtension::class.java) { ktlint ->
ktlint.version.set(target.libsCatalog.version("ktlint"))
ktlint.verbose.set(true)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.ktlint) apply false
alias(libs.plugins.mavenPublishBase) apply false
id 'root'
id 'com.squareup.anvil.root'
}

boolean isCi = (System.getenv('CI') ?: 'false').toBoolean()
Expand Down
4 changes: 2 additions & 2 deletions compiler-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'library'
id 'publish'
id 'com.squareup.anvil.library'
id 'com.squareup.anvil.publish'
}

publish {
Expand Down
4 changes: 2 additions & 2 deletions compiler-utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id 'library'
id 'com.squareup.anvil.library'
id 'java-test-fixtures'
id 'publish'
id 'com.squareup.anvil.publish'
}

publish {
Expand Down
4 changes: 2 additions & 2 deletions compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id 'library'
id 'com.squareup.anvil.library'
alias libs.plugins.kotlin.kapt
alias libs.plugins.buildconfig
id 'publish'
id 'com.squareup.anvil.publish'
}

buildConfig {
Expand Down
4 changes: 2 additions & 2 deletions gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
id 'library'
id 'com.squareup.anvil.library'
alias libs.plugins.gradlePublish
alias libs.plugins.buildconfig
id 'java-gradle-plugin'
id 'publish'
id 'com.squareup.anvil.publish'
}

buildConfig {
Expand Down

0 comments on commit 8884f4d

Please sign in to comment.