Skip to content

Commit

Permalink
publish: Remove dependency on InfrastructurePlugin from PublishPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Jul 10, 2024
1 parent 16f35c5 commit 390a3f8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions infrastructure-publish/src/main/kotlin/publish/PublishPlugin.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.redmadrobot.build.publish

import com.android.build.api.dsl.LibraryExtension
import com.redmadrobot.build.InfrastructurePlugin
import com.redmadrobot.build.dsl.isReleaseVersion
import com.redmadrobot.build.internal.InternalGradleInfrastructureApi
import com.redmadrobot.build.publish.internal.isPluginAutomatedPublishing
import com.redmadrobot.build.publish.internal.java
import com.redmadrobot.build.publish.internal.publishing
import com.redmadrobot.build.publish.internal.signing
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.*
Expand All @@ -18,10 +17,13 @@ import org.gradle.plugins.signing.Sign
*
* Tied to `com.redmadrobot.publish` plugin ID.
*/
public open class PublishPlugin : InfrastructurePlugin() {
public open class PublishPlugin : Plugin<Project> {

@InternalGradleInfrastructureApi
override fun Project.configure() {
override fun apply(target: Project) {
target.configure()
}

private fun Project.configure() {
apply(plugin = "maven-publish")
val configPlugin = plugins.apply(PublishConfigPlugin::class)

Expand Down

0 comments on commit 390a3f8

Please sign in to comment.