Skip to content

Commit

Permalink
gradle: Rename Publish.extensionName to EXTENSION_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Jul 30, 2024
1 parent bc12799 commit 735cf2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ open class PublishExtension {
var mavenName: String? = null

companion object {
internal const val extensionName = "publishConfig"
internal const val EXTENSION_NAME = "publishConfig"

fun Project.publishConfig(configure: Action<PublishExtension>): Unit =
(this as ExtensionAware).extensions.configure(extensionName, configure)
(this as ExtensionAware).extensions.configure(EXTENSION_NAME, configure)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PublishPlugin : Plugin<Project> {
target.plugins.apply("maven-publish")

// Create the PublishExtension and add it to the project
val extension = target.extensions.create<PublishExtension>(PublishExtension.extensionName)
val extension = target.extensions.create<PublishExtension>(PublishExtension.EXTENSION_NAME)

target.group = "com.github.infomaniak.multiplatform_swisstransfer"
target.version = Versions.mavenVersionName
Expand Down

0 comments on commit 735cf2c

Please sign in to comment.