diff --git a/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishExtension.kt b/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishExtension.kt index 1d1813d9..507b9e36 100644 --- a/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishExtension.kt +++ b/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishExtension.kt @@ -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): Unit = - (this as ExtensionAware).extensions.configure(extensionName, configure) + (this as ExtensionAware).extensions.configure(EXTENSION_NAME, configure) } } diff --git a/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishPlugin.kt b/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishPlugin.kt index 504c7c03..10bf0870 100644 --- a/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishPlugin.kt +++ b/buildTools/gradle/src/main/kotlin/com/infomaniak/gradle/plugins/PublishPlugin.kt @@ -31,7 +31,7 @@ class PublishPlugin : Plugin { target.plugins.apply("maven-publish") // Create the PublishExtension and add it to the project - val extension = target.extensions.create(PublishExtension.extensionName) + val extension = target.extensions.create(PublishExtension.EXTENSION_NAME) target.group = "com.github.infomaniak.multiplatform_swisstransfer" target.version = Versions.mavenVersionName