From 8622665e3b1a7c4dc3b8f8dd7c1995be30017785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Segovia=20C=C3=B3rdoba?= Date: Tue, 8 Oct 2024 16:44:18 +0200 Subject: [PATCH] Remove `semver` public function for the `SemverSettingsExtension` --- .../api/semver-settings-gradle-plugin.api | 4 ---- .../semver/settings/gradle/plugin/SemverSettingsPlugin.kt | 6 ------ 2 files changed, 10 deletions(-) diff --git a/semver-settings-gradle-plugin/api/semver-settings-gradle-plugin.api b/semver-settings-gradle-plugin/api/semver-settings-gradle-plugin.api index 0fea949c..0634a2c9 100644 --- a/semver-settings-gradle-plugin/api/semver-settings-gradle-plugin.api +++ b/semver-settings-gradle-plugin/api/semver-settings-gradle-plugin.api @@ -23,7 +23,3 @@ public final class com/javiersc/semver/settings/gradle/plugin/SemverSettingsPlug public final synthetic fun execute (Ljava/lang/Object;)V } -public final class com/javiersc/semver/settings/gradle/plugin/SemverSettingsPluginKt { - public static final fun semver (Lorg/gradle/api/initialization/Settings;Lorg/gradle/api/Action;)V -} - diff --git a/semver-settings-gradle-plugin/main/kotlin/com/javiersc/semver/settings/gradle/plugin/SemverSettingsPlugin.kt b/semver-settings-gradle-plugin/main/kotlin/com/javiersc/semver/settings/gradle/plugin/SemverSettingsPlugin.kt index 09552b49..be942e41 100644 --- a/semver-settings-gradle-plugin/main/kotlin/com/javiersc/semver/settings/gradle/plugin/SemverSettingsPlugin.kt +++ b/semver-settings-gradle-plugin/main/kotlin/com/javiersc/semver/settings/gradle/plugin/SemverSettingsPlugin.kt @@ -3,11 +3,9 @@ package com.javiersc.semver.settings.gradle.plugin import com.javiersc.semver.project.gradle.plugin.SemverExtension -import org.gradle.api.Action import org.gradle.api.Plugin import org.gradle.api.initialization.Settings import org.gradle.kotlin.dsl.configure -import org.gradle.kotlin.dsl.getByType public class SemverSettingsPlugin : Plugin { @@ -27,7 +25,3 @@ public class SemverSettingsPlugin : Plugin { } } } - -public fun Settings.semver(action: Action) { - action.execute(extensions.getByType()) -}