From 585797f1e45886adde8378fe8d3829a4d421b88c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:14:57 +0000 Subject: [PATCH] Update dependency com.facebook:ktfmt to v0.52 | datasource | package | from | to | | ---------- | ------------------ | ---- | ---- | | maven | com.facebook:ktfmt | 0.51 | 0.52 | --- gradle/hubdle.libs.versions.toml | 2 +- .../project/extensions/HubdleExtension.kt | 7 ++--- .../extensions/_internal/HubdleState.kt | 8 ++---- .../_internal/configureDependencies.kt | 14 ++-------- .../_internal/withPluginExtensions.kt | 2 +- .../apis/HubdleConfigurableExtension.kt | 5 ++-- .../apis/HubdleEnableableExtension.kt | 12 +++------ ...leMinimalSourceSetConfigurableExtension.kt | 5 ++-- .../HubdleSourceSetConfigurableExtension.kt | 5 ++-- .../config/HubdleConfigExtension.kt | 9 +++---- .../analysis/HubdleConfigAnalysisExtension.kt | 7 ++--- .../HubdleConfigAnalysisReportsExtension.kt | 7 ++--- .../HubdleConfigAnalysisDetektExtension.kt | 7 ++--- .../HubdleConfigAnalysisSonarExtension.kt | 11 ++++---- ...igBinaryCompatibilityValidatorExtension.kt | 7 +++-- .../coverage/HubdleConfigCoverageExtension.kt | 7 ++--- .../HubdleConfigDocumentationExtension.kt | 7 ++--- .../HubdleConfigDocumentationApiExtension.kt | 7 ++--- .../changelog/AddChangelogItemTask.kt | 14 +++------- .../changelog/GenerateChangelogHtmlTask.kt | 5 +--- ...leConfigDocumentationChangelogExtension.kt | 17 +++--------- .../changelog/_internal/Changelog.kt | 5 ++-- ...ubdleConfigDocumentationReadmeExtension.kt | 7 ++--- ...onfigDocumentationReadmeBadgesExtension.kt | 4 +-- .../readme/badges/WriteReadmeBadgesTask.kt | 14 +++++----- .../documentation/site/BuildSiteTask.kt | 2 +- .../HubdleConfigDocumentationSiteExtension.kt | 7 ++--- .../documentation/site/PreBuildSiteTask.kt | 26 ++++++++++++------- .../config/documentation/site/ProjectInfo.kt | 3 ++- ...onfigDocumentationSiteAnalysisExtension.kt | 4 +-- .../format/HubdleConfigFormatExtension.kt | 21 +++------------ .../install/HubdleConfigInstallExtension.kt | 7 ++--- .../HubdleConfigInstallPreCommitsExtension.kt | 7 ++--- .../tasks/InstallApplyFormatPreCommitTask.kt | 5 +--- .../tasks/InstallAssemblePreCommitTask.kt | 5 +--- .../InstallCheckAnalysisPreCommitTask.kt | 5 +--- .../tasks/InstallCheckApiPreCommitTask.kt | 5 +--- .../tasks/InstallCheckFormatPreCommitTask.kt | 5 +--- .../tasks/InstallDumpApiPreCommitTask.kt | 5 +--- .../pre/commits/tasks/InstallPreCommitTask.kt | 7 ++--- .../tasks/InstallTestsPreCommitTask.kt | 5 +--- .../commits/tasks/WriteFilePreCommitTask.kt | 7 ++--- .../HubdleConfigLanguageSettingsExtension.kt | 7 ++--- .../nexus/HubdleConfigNexusExtension.kt | 11 ++++---- .../config/project/HubdleProjectExtension.kt | 7 ++--- .../HubdleConfigPublishingExtension.kt | 7 ++--- .../HubdleConfigPublishingMavenExtension.kt | 7 ++--- ...HubdleConfigPublishingMavenPomExtension.kt | 7 ++--- .../HubdleConfigPublishingSigningExtension.kt | 12 +++------ .../testing/HubdleConfigTestingExtension.kt | 7 ++--- .../HubdleConfigVersioningExtension.kt | 7 ++--- .../HubdleConfigVersioningSemverExtension.kt | 7 ++--- .../extensions/java/HubdleJavaExtension.kt | 10 +++---- .../features/HubdleJavaFeaturesExtension.kt | 7 ++--- .../kotlin/HubdleKotlinExtension.kt | 14 +++------- .../_internal/configureKotlinSourceSets.kt | 5 ++-- .../kotlin/_internal/forKotlinSets.kt | 2 +- .../android/HubdleKotlinAndroidExtension.kt | 19 +++----------- ...HubdleKotlinAndroidApplicationExtension.kt | 19 ++++---------- ...tlinAndroidApplicationFeaturesExtension.kt | 5 ++-- ...bdleKotlinAndroidBuildFeaturesExtension.kt | 13 +++------- .../HubdleKotlinAndroidFeaturesExtension.kt | 7 ++--- .../HubdleKotlinAndroidLibraryExtension.kt | 19 ++++---------- ...leKotlinAndroidLibraryFeaturesExtension.kt | 5 ++-- .../HubdleKotlinCompilerOptionsExtension.kt | 7 ++--- .../features/HubdleKotlinFeaturesExtension.kt | 7 ++--- .../HubdleKotlinComposeFeatureExtension.kt | 11 ++++---- ...eKotlinContextReceiversFeatureExtension.kt | 4 +-- .../HubdleKotlinCoroutinesFeatureExtension.kt | 18 +++++++------ ...dleKotlinExtendedStdlibFeatureExtension.kt | 7 ++--- .../HubdleKotlinKotestFeatureExtension.kt | 7 ++--- .../HubdleKotlinMoleculeFeatureExtension.kt | 7 ++--- ...bdleKotlinSerializationFeatureExtension.kt | 11 ++++---- .../HubdleKotlinSqlDelightFeatureExtension.kt | 7 ++--- .../kotlin/jvm/HubdleKotlinJvmExtension.kt | 12 +++------ ...dleKotlinCompilerPluginFeatureExtension.kt | 10 +++---- .../HubdleKotlinJvmFeaturesExtension.kt | 7 ++--- ...enerateMetaRuntimeClasspathProviderTask.kt | 11 ++++---- .../HubdleKotlinMultiplatformExtension.kt | 7 ++--- .../HubdleKotlinMultiplatformTarget.kt | 3 +-- ...dleKotlinMultiplatformFeaturesExtension.kt | 7 ++--- ...tformMinimumTargetPerOsFeatureExtension.kt | 6 ++--- ...bdleKotlinMultiplatformAndroidExtension.kt | 7 ++--- ...tlinMultiplatformAndroidNativeExtension.kt | 4 +-- ...HubdleKotlinMultiplatformAppleExtension.kt | 7 ++--- ...ubdleKotlinMultiplatformCommonExtension.kt | 7 ++--- .../HubdleKotlinMultiplatformIOSExtension.kt | 19 +++----------- .../HubdleKotlinMultiplatformJsExtension.kt | 7 ++--- ...tlinMultiplatformJvmAndAndroidExtension.kt | 4 +-- .../HubdleKotlinMultiplatformJvmExtension.kt | 7 ++--- ...HubdleKotlinMultiplatformLinuxExtension.kt | 17 +++--------- ...HubdleKotlinMultiplatformMacOSExtension.kt | 17 +++--------- ...HubdleKotlinMultiplatformMinGWExtension.kt | 17 +++--------- ...ubdleKotlinMultiplatformNativeExtension.kt | 7 ++--- .../HubdleKotlinMultiplatformTvOSExtension.kt | 19 +++----------- ...ubdleKotlinMultiplatformWAsmJsExtension.kt | 7 ++--- ...bdleKotlinMultiplatformWatchOSExtension.kt | 7 ++--- ...ultiplatformAndroidNativeArm32Extension.kt | 4 +-- ...ultiplatformAndroidNativeArm64Extension.kt | 4 +-- ...nMultiplatformAndroidNativeX64Extension.kt | 4 +-- ...nMultiplatformAndroidNativeX86Extension.kt | 4 +-- ...dleKotlinMultiplatformIOSArm64Extension.kt | 7 ++--- ...MultiplatformIOSSimulatorArm64Extension.kt | 4 +-- ...ubdleKotlinMultiplatformIOSX64Extension.kt | 7 ++--- .../KotlinMultiplatformLinuxArm64Extension.kt | 7 ++--- .../KotlinMultiplatformLinuxX64Extension.kt | 7 ++--- ...eKotlinMultiplatformMacOSArm64Extension.kt | 4 +-- ...dleKotlinMultiplatformMacOSX64Extension.kt | 7 ++--- ...dleKotlinMultiplatformMinGWX64Extension.kt | 7 ++--- ...leKotlinMultiplatformTvOSArm64Extension.kt | 4 +-- ...ultiplatformTvOSSimulatorArm64Extension.kt | 4 +-- ...bdleKotlinMultiplatformTvOSX64Extension.kt | 7 ++--- ...otlinMultiplatformWatchOSArm32Extension.kt | 4 +-- ...otlinMultiplatformWatchOSArm64Extension.kt | 4 +-- ...ultiplatformWatchOSDeviceArm64Extension.kt | 4 +-- ...iplatformWatchOSSimulatorArm64Extension.kt | 4 +-- ...eKotlinMultiplatformWatchOSX64Extension.kt | 4 +-- ...inMinimalSourceSetConfigurableExtension.kt | 5 ++-- ...dleKotlinSourceSetConfigurableExtension.kt | 5 ++-- .../project/extensions/shared/PluginId.kt | 3 +-- .../HubdleAndroidDelegateSharedApis.kt | 2 +- .../features/HubdleGradleFeatureExtension.kt | 7 ++--- .../HubdleIntellijFeatureExtension.kt | 7 ++--- .../HubdleJavaApplicationFeatureExtension.kt | 7 ++--- .../HubdleJavaVersionFeatureExtension.kt | 7 ++--- .../HubdleJvmToolchainFeatureExtension.kt | 7 ++--- .../HubdleGradlePluginFeatureExtension.kt | 17 +++++------- ...dleGradleVersionCatalogFeatureExtension.kt | 12 +++------ .../HubdleIntellijPluginFeatureExtension.kt | 12 ++++----- .../features/tasks/GenerateProjectDataTask.kt | 7 ++--- .../settings/HubdleSettingsExtension.kt | 5 +--- .../hubdle/settings/HubdleSettingsPlugin.kt | 7 ++--- .../tasks/GenerateHubdleCatalogTask.kt | 5 +--- .../config/BinaryCompatibilityStateTest.kt | 6 +++-- .../changelog/AddChangelogItemTest.kt | 12 ++++----- .../changelog/TestChangelogUtils.kt | 3 ++- .../project/kotlin/jvm/KotlinJvmTest.kt | 8 +++--- hubdle-version-catalog/CHANGELOG.md | 1 + 138 files changed, 336 insertions(+), 737 deletions(-) diff --git a/gradle/hubdle.libs.versions.toml b/gradle/hubdle.libs.versions.toml index ca6c3ebf48..11694ba4ee 100644 --- a/gradle/hubdle.libs.versions.toml +++ b/gradle/hubdle.libs.versions.toml @@ -40,7 +40,7 @@ cash-sqldelight = "2.0.0" cash-turbine = "1.1.0" diffplug-gradle-spotless = "7.0.0.BETA1" eclipse-jgit = "6.10.0.202406032230-r" -facebook-ktfmt = "0.51" +facebook-ktfmt = "0.52" github-gradle-nexus-publish-plugin = "2.0.0" github-triplet-play = "3.10.1" gitlab-arturbosch-detekt = "1.23.6" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/HubdleExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/HubdleExtension.kt index e9ae3e7dbd..9e42ef3430 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/HubdleExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/HubdleExtension.kt @@ -12,11 +12,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/HubdleState.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/HubdleState.kt index d675e4be55..acd03088ca 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/HubdleState.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/HubdleState.kt @@ -35,7 +35,7 @@ internal class HubdleState(private val project: Project) { internal inline fun createExtension( vararg constructionArguments: Any, - block: T.() -> Unit = {} + block: T.() -> Unit = {}, ): T { val extensionName = "_Internal${T::class.simpleName}".substringBeforeLast("Extension") val extension: T = project.extensions.create(extensionName, *constructionArguments) @@ -54,11 +54,7 @@ internal class HubdleState(private val project: Project) { val applicablePlugins: List get() = _applicablePlugins.toList() - fun applicablePlugin( - isEnabled: Provider, - scope: Scope, - pluginId: PluginId, - ) { + fun applicablePlugin(isEnabled: Provider, scope: Scope, pluginId: PluginId) { val applicablePlugin = ApplicablePlugin(isEnabled = isEnabled, scope = scope, pluginId = pluginId) _applicablePlugins.add(applicablePlugin) diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/configureDependencies.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/configureDependencies.kt index e7b9a95a6d..01eeebe661 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/configureDependencies.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/configureDependencies.kt @@ -14,22 +14,12 @@ import org.gradle.api.provider.Provider internal fun HubdleConfigurableExtension.configurableDependencies() { lazyConfigurable { - project.forKotlinSetsDependencies( - TEST, - COMMON_TEST, - TEST_FUNCTIONAL, - TEST_INTEGRATION, - ) { + project.forKotlinSetsDependencies(TEST, COMMON_TEST, TEST_FUNCTIONAL, TEST_INTEGRATION) { implementation(library(jetbrains_kotlin_test)) implementation(library(jetbrains_kotlin_test_annotations_common)) } - project.forKotlinSetsDependencies( - TEST, - JVM_TEST, - TEST_FUNCTIONAL, - TEST_INTEGRATION, - ) { + project.forKotlinSetsDependencies(TEST, JVM_TEST, TEST_FUNCTIONAL, TEST_INTEGRATION) { if (hubdleTesting.isFullEnabled.get()) { val testModuleFramework: Provider = provider { when (hubdleTesting.options.get()) { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/withPluginExtensions.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/withPluginExtensions.kt index 7544efe508..7526933ad9 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/withPluginExtensions.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/_internal/withPluginExtensions.kt @@ -25,7 +25,7 @@ internal fun Project.withId(id: PluginId, block: () -> Unit) { internal inline fun Project.withId( id: PluginId, - crossinline block: T.() -> Unit + crossinline block: T.() -> Unit, ) { pluginManager.withPlugin("$id") { block(extensions.getByType()) } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleConfigurableExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleConfigurableExtension.kt index 2458a40aef..d0e2e0c792 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleConfigurableExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleConfigurableExtension.kt @@ -2,9 +2,8 @@ package com.javiersc.hubdle.project.extensions.apis import org.gradle.api.Project -public abstract class HubdleConfigurableExtension( - project: Project, -) : HubdleEnableableExtension(project) { +public abstract class HubdleConfigurableExtension(project: Project) : + HubdleEnableableExtension(project) { internal abstract fun Project.defaultConfiguration() } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleEnableableExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleEnableableExtension.kt index ec80950253..ec356c5811 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleEnableableExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleEnableableExtension.kt @@ -20,9 +20,8 @@ import org.gradle.api.tasks.TaskContainer import org.gradle.kotlin.dsl.configure import org.gradle.kotlin.dsl.the -public abstract class HubdleEnableableExtension( - override val project: Project, -) : BaseHubdleEnableableExtension { +public abstract class HubdleEnableableExtension(override val project: Project) : + BaseHubdleEnableableExtension { internal val tasks: TaskContainer get() = project.tasks @@ -69,10 +68,7 @@ public abstract class HubdleEnableableExtension( hubdleState.applicablePlugin(isEnabled, scope, pluginId) } - internal fun applicablePlugin( - scope: ApplicablePlugin.Scope, - pluginId: PluginId, - ) { + internal fun applicablePlugin(scope: ApplicablePlugin.Scope, pluginId: PluginId) { applicablePlugin(isFullEnabled, scope, pluginId) } @@ -127,7 +123,7 @@ internal fun T.enableAndExecute(action: Action T.enableAndExecute( enabled: Provider = provider { true }, - action: Action + action: Action, ) { enabled(enabled) action.execute(this) diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleMinimalSourceSetConfigurableExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleMinimalSourceSetConfigurableExtension.kt index 0b7d6f8fd5..14562a10b2 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleMinimalSourceSetConfigurableExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleMinimalSourceSetConfigurableExtension.kt @@ -8,9 +8,8 @@ import org.gradle.api.Project import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet -public abstract class HubdleMinimalSourceSetConfigurableExtension( - project: Project, -) : HubdleConfigurableExtension(project) { +public abstract class HubdleMinimalSourceSetConfigurableExtension(project: Project) : + HubdleConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleSourceSetConfigurableExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleSourceSetConfigurableExtension.kt index bf37a68ccd..7e6a62c1a9 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleSourceSetConfigurableExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/apis/HubdleSourceSetConfigurableExtension.kt @@ -6,9 +6,8 @@ import org.gradle.api.NamedDomainObjectProvider import org.gradle.api.Project import org.gradle.api.provider.Property -public abstract class HubdleSourceSetConfigurableExtension( - project: Project, -) : HubdleMinimalSourceSetConfigurableExtension(project) { +public abstract class HubdleSourceSetConfigurableExtension(project: Project) : + HubdleMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/HubdleConfigExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/HubdleConfigExtension.kt index bb0f387c39..2ead9db9c4 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/HubdleConfigExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/HubdleConfigExtension.kt @@ -29,11 +29,8 @@ import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension @HubdleDslMarker -public open class HubdleConfigExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } @@ -136,7 +133,7 @@ constructor( @HubdleDslMarker public fun publishing( enabled: Provider = provider { isTagPrefixProject }, - action: Action = Action {} + action: Action = Action {}, ) { publishing.enableAndExecute(enabled, action) } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/HubdleConfigAnalysisExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/HubdleConfigAnalysisExtension.kt index 5fdbe870d7..e277b52e96 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/HubdleConfigAnalysisExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/HubdleConfigAnalysisExtension.kt @@ -14,11 +14,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleConfigAnalysisExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigAnalysisExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/reports/HubdleConfigAnalysisReportsExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/reports/HubdleConfigAnalysisReportsExtension.kt index 27272d9047..a82149ccf8 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/reports/HubdleConfigAnalysisReportsExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/reports/HubdleConfigAnalysisReportsExtension.kt @@ -6,11 +6,8 @@ import javax.inject.Inject import org.gradle.api.Project import org.gradle.api.provider.Property -public open class HubdleConfigAnalysisReportsExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleConfigAnalysisReportsExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisDetektExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisDetektExtension.kt index 45f6c4d63c..51149503f8 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisDetektExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisDetektExtension.kt @@ -23,11 +23,8 @@ import org.gradle.api.provider.SetProperty import org.gradle.kotlin.dsl.configure import org.gradle.kotlin.dsl.withType -public open class HubdleConfigAnalysisDetektExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigAnalysisDetektExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisSonarExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisSonarExtension.kt index 66d1f8470b..0e0396ff6c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisSonarExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/analysis/tools/HubdleConfigAnalysisSonarExtension.kt @@ -25,11 +25,8 @@ import org.gradle.kotlin.dsl.findByType import org.sonarqube.gradle.SonarExtension import org.sonarqube.gradle.SonarProperties -public open class HubdleConfigAnalysisSonarExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigAnalysisSonarExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } @@ -54,7 +51,9 @@ constructor( override fun Project.defaultConfiguration() { applicablePlugin( - scope = ApplicablePlugin.Scope.CurrentProject, pluginId = PluginId.Sonarqube) + scope = ApplicablePlugin.Scope.CurrentProject, + pluginId = PluginId.Sonarqube, + ) lazyConfigurable { configureSonarqube(project) } // TODO: Remove both when project isolation is fixed in Sonar Gradle plugin as hubdle diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/binary/compatibility/validator/HubdleConfigBinaryCompatibilityValidatorExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/binary/compatibility/validator/HubdleConfigBinaryCompatibilityValidatorExtension.kt index 71c01d4436..b70cd97774 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/binary/compatibility/validator/HubdleConfigBinaryCompatibilityValidatorExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/binary/compatibility/validator/HubdleConfigBinaryCompatibilityValidatorExtension.kt @@ -23,9 +23,7 @@ import org.gradle.api.tasks.TaskProvider @HubdleDslMarker public open class HubdleConfigBinaryCompatibilityValidatorExtension @Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +constructor(project: Project) : HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -38,7 +36,8 @@ constructor( override fun Project.defaultConfiguration() { applicablePlugin( scope = Scope.CurrentProject, - pluginId = PluginId.JetbrainsKotlinxBinaryCompatibilityValidator) + pluginId = PluginId.JetbrainsKotlinxBinaryCompatibilityValidator, + ) lazyConfigurable { // TODO: Change this configurable with 0.7.0 as it must be applied on each project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/coverage/HubdleConfigCoverageExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/coverage/HubdleConfigCoverageExtension.kt index 3a84d943ff..2ad403faf1 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/coverage/HubdleConfigCoverageExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/coverage/HubdleConfigCoverageExtension.kt @@ -20,11 +20,8 @@ import org.gradle.api.tasks.TaskProvider import org.gradle.kotlin.dsl.the @HubdleDslMarker -public open class HubdleConfigCoverageExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigCoverageExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/HubdleConfigDocumentationExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/HubdleConfigDocumentationExtension.kt index 030c8c0ca4..12926f5db2 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/HubdleConfigDocumentationExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/HubdleConfigDocumentationExtension.kt @@ -15,11 +15,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleConfigDocumentationExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleConfigDocumentationExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/api/HubdleConfigDocumentationApiExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/api/HubdleConfigDocumentationApiExtension.kt index d37cd28b21..e1cb6c4667 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/api/HubdleConfigDocumentationApiExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/api/HubdleConfigDocumentationApiExtension.kt @@ -15,11 +15,8 @@ import org.gradle.kotlin.dsl.withType import org.jetbrains.dokka.gradle.DokkaTaskPartial @HubdleDslMarker -public open class HubdleConfigDocumentationApiExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigDocumentationApiExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/AddChangelogItemTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/AddChangelogItemTask.kt index e98e6f70a7..2b3e25f043 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/AddChangelogItemTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/AddChangelogItemTask.kt @@ -22,11 +22,8 @@ import org.gradle.api.tasks.TaskAction import org.gradle.api.tasks.options.Option import org.gradle.kotlin.dsl.property -public abstract class AddChangelogItemTask -@Inject -constructor( - objects: ObjectFactory, -) : DefaultTask() { +public abstract class AddChangelogItemTask @Inject constructor(objects: ObjectFactory) : + DefaultTask() { @Input @Option(option = "added", description = "Add an item to the `added` section") @@ -59,10 +56,7 @@ constructor( public val updated: Property = objects.property() @Input - @Option( - option = "renovate", - description = "Extract dependencies from the table in the PR body", - ) + @Option(option = "renovate", description = "Extract dependencies from the table in the PR body") @Optional public val renovate: Property = objects.property() @@ -195,7 +189,7 @@ private fun String.addChanges(header: String, changes: List): Changelog private fun Project.dependenciesFromRenovatePullRequestBody( body: String?, - path: String? + path: String?, ): List { val renovateLines: List = when { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/GenerateChangelogHtmlTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/GenerateChangelogHtmlTask.kt index c4f94f5552..2350e9fd7f 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/GenerateChangelogHtmlTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/GenerateChangelogHtmlTask.kt @@ -12,10 +12,7 @@ import org.gradle.api.tasks.TaskAction public abstract class GenerateChangelogHtmlTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : DefaultTask() { +constructor(objects: ObjectFactory, layout: ProjectLayout) : DefaultTask() { @get:Input public abstract val html: Property diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/HubdleConfigDocumentationChangelogExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/HubdleConfigDocumentationChangelogExtension.kt index 209e4f599d..c858a74a0a 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/HubdleConfigDocumentationChangelogExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/HubdleConfigDocumentationChangelogExtension.kt @@ -30,9 +30,7 @@ import org.jetbrains.changelog.tasks.PatchChangelogTask @HubdleDslMarker public open class HubdleConfigDocumentationChangelogExtension @Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +constructor(project: Project) : HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -48,15 +46,7 @@ constructor( lazyConfigurable { configure { repositoryUrl.set(hubdlePublishingMavenPom.scmUrl) - groups.set( - listOf( - "Added", - "Changed", - "Deprecated", - "Fixed", - "Removed", - "Updated", - )) + groups.set(listOf("Added", "Changed", "Deprecated", "Fixed", "Removed", "Updated")) combinePreReleases.set(false) versionPrefix.set(hubdleSemver.tagPrefix) @@ -116,7 +106,8 @@ constructor( configuration.attributes { attributes -> attributes.attribute( LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, - project.objects.named(GENERATED_CHANGELOG_HTML_ATTRIBUTE)) + project.objects.named(GENERATED_CHANGELOG_HTML_ATTRIBUTE), + ) } configuration.outgoing { publications -> publications.artifact(generateChangelogHtmlTask) diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/_internal/Changelog.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/_internal/Changelog.kt index cc64179aba..f8e1362e20 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/_internal/Changelog.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/changelog/_internal/Changelog.kt @@ -14,7 +14,7 @@ import java.io.File internal class Changelog( val header: String, val versions: List, - val references: List + val references: List, ) { override fun toString(): String = @@ -98,7 +98,8 @@ internal class Changelog( const val unreleased: String = "Unreleased" val dependencyUpdateRegex = Regex( - """^(- *)+ (`*)+([a-zA-Z0-9.-]+)+([a-zA-Z0-9.-:-]+)+( -> )+([a-zA-Z0-9.-]+)+(`)""") + """^(- *)+ (`*)+([a-zA-Z0-9.-]+)+([a-zA-Z0-9.-:-]+)+( -> )+([a-zA-Z0-9.-]+)+(`)""" + ) } } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/HubdleConfigDocumentationReadmeExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/HubdleConfigDocumentationReadmeExtension.kt index 27d801b39d..40bd3d8eb0 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/HubdleConfigDocumentationReadmeExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/HubdleConfigDocumentationReadmeExtension.kt @@ -12,11 +12,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleConfigDocumentationReadmeExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleConfigDocumentationReadmeExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/HubdleConfigDocumentationReadmeBadgesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/HubdleConfigDocumentationReadmeBadgesExtension.kt index c0cf14557e..6f2956b291 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/HubdleConfigDocumentationReadmeBadgesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/HubdleConfigDocumentationReadmeBadgesExtension.kt @@ -17,9 +17,7 @@ import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion @HubdleDslMarker public open class HubdleConfigDocumentationReadmeBadgesExtension @Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +constructor(project: Project) : HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/WriteReadmeBadgesTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/WriteReadmeBadgesTask.kt index 97d7a5118d..f6ea4b5de0 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/WriteReadmeBadgesTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/readme/badges/WriteReadmeBadgesTask.kt @@ -15,11 +15,8 @@ import org.gradle.api.tasks.PathSensitivity import org.gradle.api.tasks.TaskAction @CacheableTask -public abstract class WriteReadmeBadgesTask -@Inject -constructor( - private val layout: ProjectLayout, -) : DefaultTask() { +public abstract class WriteReadmeBadgesTask @Inject constructor(private val layout: ProjectLayout) : + DefaultTask() { init { group = "documentation" @@ -66,7 +63,10 @@ constructor( addAll(buildReadmeBadges()) addAll( content.subList( - content.indexOfFirst { it.contains("# ") }, content.lastIndex + 1)) + content.indexOfFirst { it.contains("# ") }, + content.lastIndex + 1, + ) + ) add("") } @@ -149,7 +149,7 @@ constructor( private enum class MavenRepo { MavenCentral, - Snapshot + Snapshot, } private enum class Sonar(val label: String, val path: String) { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/BuildSiteTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/BuildSiteTask.kt index 321d273e16..187a571502 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/BuildSiteTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/BuildSiteTask.kt @@ -50,7 +50,7 @@ constructor( public fun register( project: Project, - preBuildSiteTask: TaskProvider + preBuildSiteTask: TaskProvider, ): TaskProvider { val buildSiteTask = project.tasks.register(name) buildSiteTask.configure { task -> task.inputs.files(preBuildSiteTask) } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/HubdleConfigDocumentationSiteExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/HubdleConfigDocumentationSiteExtension.kt index f77ec63812..13fdcf1be8 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/HubdleConfigDocumentationSiteExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/HubdleConfigDocumentationSiteExtension.kt @@ -19,11 +19,8 @@ import org.gradle.kotlin.dsl.configure import ru.vyarus.gradle.plugin.mkdocs.MkdocsExtension @HubdleDslMarker -public open class HubdleConfigDocumentationSiteExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigDocumentationSiteExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/PreBuildSiteTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/PreBuildSiteTask.kt index eafede7559..d0b577ec6c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/PreBuildSiteTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/PreBuildSiteTask.kt @@ -69,7 +69,10 @@ constructor( public fun run() { buildDotDocsDirectory(dotDocsDirectory) fileSystemOperations.buildBuildDotDocs( - rootDirectory, dotDocsDirectory, buildDotDocsDirectory) + rootDirectory, + dotDocsDirectory, + buildDotDocsDirectory, + ) buildChangelogInDocs(rootDirectory, fileSystemOperations) buildApiInDocs() buildProjectsInDocs(rootDirectory, projectsInfo.get(), fileSystemOperations) @@ -82,7 +85,7 @@ constructor( internal fun register( project: Project, - configure: PreBuildSiteTask.() -> Unit + configure: PreBuildSiteTask.() -> Unit, ): TaskProvider = project.tasks.register(NAME) { configure(this) } } @@ -225,7 +228,8 @@ constructor( writeText( readLines().joinToString("\n") { line -> line.replace(".docs/docs/assets", "assets") - }) + } + ) } } } @@ -246,7 +250,7 @@ constructor( private fun buildChangelogInDocs( rootDirectory: File, - fileSystemOperations: FileSystemOperations + fileSystemOperations: FileSystemOperations, ) { with(fileSystemOperations) { if (File("$rootDirectory/CHANGELOG.md").exists()) { @@ -282,7 +286,7 @@ constructor( private fun buildProjectsInDocs( rootDirectory: File, projectsInfo: List, - fileSystemOperations: FileSystemOperations + fileSystemOperations: FileSystemOperations, ) { with(fileSystemOperations) { val projectsPath = "$rootDirectory/build/.docs/docs/projects" @@ -300,7 +304,8 @@ constructor( writeText( readLines().joinToString("\n") { line -> line.replace(".docs/docs/assets", "assets") - }) + } + ) } } @@ -331,7 +336,8 @@ constructor( addAll( projects.map { project -> "- $project: $path/$project.md".prependIndent("$indent ") - }) + } + ) } } .cleanNavProjects() @@ -385,7 +391,8 @@ constructor( addAll(newNavigations) add("") } - .joinToString("\n")) + .joinToString("\n") + ) } private fun getDocsNavigation(): DocsNavigation { @@ -397,7 +404,8 @@ constructor( content .subList(navIndex + 1, content.count()) .takeWhile { it.replace(" ", "").startsWith("-") } - .toSet()) + .toSet(), + ) } private fun List.cleanNavProjects(): List = diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/ProjectInfo.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/ProjectInfo.kt index 13b8630c78..7794de5f4a 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/ProjectInfo.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/ProjectInfo.kt @@ -34,7 +34,8 @@ internal val Project.projectsInfo: List ProjectInfo(project.name, project.path, mdFile) } else { logger.lifecycle( - "${project.name} hasn't a markdown file, so it won't be added to docs") + "${project.name} hasn't a markdown file, so it won't be added to docs" + ) null } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/analysis/HubdleConfigDocumentationSiteAnalysisExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/analysis/HubdleConfigDocumentationSiteAnalysisExtension.kt index 34d2328218..718c9cf149 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/analysis/HubdleConfigDocumentationSiteAnalysisExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/documentation/site/analysis/HubdleConfigDocumentationSiteAnalysisExtension.kt @@ -16,9 +16,7 @@ import org.gradle.api.tasks.TaskProvider public open class HubdleConfigDocumentationSiteAnalysisExtension @Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +constructor(project: Project) : HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/format/HubdleConfigFormatExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/format/HubdleConfigFormatExtension.kt index 4715c54512..df8dac8712 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/format/HubdleConfigFormatExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/format/HubdleConfigFormatExtension.kt @@ -30,11 +30,8 @@ import org.gradle.language.base.plugins.LifecycleBasePlugin.CHECK_TASK_NAME import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension @HubdleDslMarker -public open class HubdleConfigFormatExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigFormatExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } @@ -141,12 +138,7 @@ constructor( ?.flatMap { it.kotlin.sourceDirectories } ?.map { it.relativeTo(projectDir) } ?.filterNot { it.path.startsWith(layout.buildDirectory.asFile.get().name) } - ?.flatMap { - listOf( - "${it.unixPath}/**/*.kt", - "${it.unixPath}/*.kt", - ) - } + ?.flatMap { listOf("${it.unixPath}/**/*.kt", "${it.unixPath}/*.kt") } ?.toSet() .orEmpty() } @@ -169,12 +161,7 @@ constructor( ?.asSequence() ?.flatMap { it.resources.sourceDirectories } ?.map { it.relativeTo(projectDir) } - ?.flatMap { - listOf( - "${it.unixPath}/**/*.kt", - "${it.unixPath}/*.kt", - ) - } + ?.flatMap { listOf("${it.unixPath}/**/*.kt", "${it.unixPath}/*.kt") } ?.toSet() .orEmpty() } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/HubdleConfigInstallExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/HubdleConfigInstallExtension.kt index b19eb03b87..92d325db91 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/HubdleConfigInstallExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/HubdleConfigInstallExtension.kt @@ -12,11 +12,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleConfigInstallExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleConfigInstallExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/HubdleConfigInstallPreCommitsExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/HubdleConfigInstallPreCommitsExtension.kt index 5e43713261..65b1be727b 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/HubdleConfigInstallPreCommitsExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/HubdleConfigInstallPreCommitsExtension.kt @@ -17,11 +17,8 @@ import javax.inject.Inject import org.gradle.api.Project import org.gradle.api.provider.Property -public open class HubdleConfigInstallPreCommitsExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigInstallPreCommitsExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallApplyFormatPreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallApplyFormatPreCommitTask.kt index 3d62ed7198..4a256f9cbc 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallApplyFormatPreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallApplyFormatPreCommitTask.kt @@ -15,10 +15,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class InstallApplyFormatPreCommitTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : InstallPreCommitTask(layout) { +constructor(objects: ObjectFactory, layout: ProjectLayout) : InstallPreCommitTask(layout) { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallAssemblePreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallAssemblePreCommitTask.kt index 3d203bfbd6..ef7852e3f0 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallAssemblePreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallAssemblePreCommitTask.kt @@ -15,10 +15,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class InstallAssemblePreCommitTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : InstallPreCommitTask(layout) { +constructor(objects: ObjectFactory, layout: ProjectLayout) : InstallPreCommitTask(layout) { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckAnalysisPreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckAnalysisPreCommitTask.kt index 91ae796156..82e5ab511f 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckAnalysisPreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckAnalysisPreCommitTask.kt @@ -14,10 +14,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class InstallCheckAnalysisPreCommitTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : InstallPreCommitTask(layout) { +constructor(objects: ObjectFactory, layout: ProjectLayout) : InstallPreCommitTask(layout) { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckApiPreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckApiPreCommitTask.kt index b946d515a2..31b204db06 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckApiPreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckApiPreCommitTask.kt @@ -15,10 +15,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class InstallCheckApiPreCommitTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : InstallPreCommitTask(layout) { +constructor(objects: ObjectFactory, layout: ProjectLayout) : InstallPreCommitTask(layout) { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckFormatPreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckFormatPreCommitTask.kt index 64b65f3a6a..f8abcf0791 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckFormatPreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallCheckFormatPreCommitTask.kt @@ -15,10 +15,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class InstallCheckFormatPreCommitTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : InstallPreCommitTask(layout) { +constructor(objects: ObjectFactory, layout: ProjectLayout) : InstallPreCommitTask(layout) { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallDumpApiPreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallDumpApiPreCommitTask.kt index 1e7a6bfa28..a087fdf6f4 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallDumpApiPreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallDumpApiPreCommitTask.kt @@ -15,10 +15,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class InstallDumpApiPreCommitTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : InstallPreCommitTask(layout) { +constructor(objects: ObjectFactory, layout: ProjectLayout) : InstallPreCommitTask(layout) { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallPreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallPreCommitTask.kt index f543557410..bdc0dad301 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallPreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallPreCommitTask.kt @@ -16,11 +16,8 @@ import org.gradle.api.tasks.TaskAction import org.gradle.kotlin.dsl.register @CacheableTask -public abstract class InstallPreCommitTask -@Inject -constructor( - layout: ProjectLayout, -) : InstallTask, DefaultTask() { +public abstract class InstallPreCommitTask @Inject constructor(layout: ProjectLayout) : + InstallTask, DefaultTask() { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallTestsPreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallTestsPreCommitTask.kt index 9bbf789a5a..dc16227e37 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallTestsPreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/InstallTestsPreCommitTask.kt @@ -16,10 +16,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class InstallTestsPreCommitTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : InstallPreCommitTask(layout) { +constructor(objects: ObjectFactory, layout: ProjectLayout) : InstallPreCommitTask(layout) { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/WriteFilePreCommitTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/WriteFilePreCommitTask.kt index 1d2edb2419..bba8797880 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/WriteFilePreCommitTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/install/pre/commits/tasks/WriteFilePreCommitTask.kt @@ -12,11 +12,8 @@ import org.gradle.kotlin.dsl.named import org.gradle.kotlin.dsl.register @CacheableTask -public abstract class WriteFilePreCommitTask -@Inject -constructor( - layout: ProjectLayout, -) : DefaultTask() { +public abstract class WriteFilePreCommitTask @Inject constructor(layout: ProjectLayout) : + DefaultTask() { init { group = "install" diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/language/settings/HubdleConfigLanguageSettingsExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/language/settings/HubdleConfigLanguageSettingsExtension.kt index 5d0d3ec98a..3e5070a7ff 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/language/settings/HubdleConfigLanguageSettingsExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/language/settings/HubdleConfigLanguageSettingsExtension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension import org.jetbrains.kotlin.gradle.plugin.LanguageSettingsBuilder -public open class HubdleConfigLanguageSettingsExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleConfigLanguageSettingsExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/nexus/HubdleConfigNexusExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/nexus/HubdleConfigNexusExtension.kt index d9a144b130..b4a4fc1803 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/nexus/HubdleConfigNexusExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/nexus/HubdleConfigNexusExtension.kt @@ -22,11 +22,8 @@ import org.gradle.api.provider.Property import org.gradle.kotlin.dsl.configure @HubdleDslMarker -public open class HubdleConfigNexusExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigNexusExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -80,7 +77,9 @@ constructor( override fun Project.defaultConfiguration() { applicablePlugin( - scope = Scope.CurrentProject, pluginId = PluginId.GithubGradleNexusPublishPlugin) + scope = Scope.CurrentProject, + pluginId = PluginId.GithubGradleNexusPublishPlugin, + ) lazyConfigurable { configure { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/project/HubdleProjectExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/project/HubdleProjectExtension.kt index 291a50d1ed..b20a8c06c1 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/project/HubdleProjectExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/project/HubdleProjectExtension.kt @@ -12,11 +12,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleProjectExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleProjectExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/HubdleConfigPublishingExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/HubdleConfigPublishingExtension.kt index d8eca0f928..1f16752d99 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/HubdleConfigPublishingExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/HubdleConfigPublishingExtension.kt @@ -17,11 +17,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleConfigPublishingExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigPublishingExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenExtension.kt index 84a70f4f3d..0723ce7b64 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenExtension.kt @@ -36,11 +36,8 @@ import org.gradle.kotlin.dsl.register import org.gradle.kotlin.dsl.withType @HubdleDslMarker -public open class HubdleConfigPublishingMavenExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleConfigPublishingMavenExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenPomExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenPomExtension.kt index 0ac8a7b54d..69d8b839b8 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenPomExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/maven/HubdleConfigPublishingMavenPomExtension.kt @@ -9,11 +9,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleConfigPublishingMavenPomExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleConfigPublishingMavenPomExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/signing/HubdleConfigPublishingSigningExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/signing/HubdleConfigPublishingSigningExtension.kt index 649ce304d3..d2b728047a 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/signing/HubdleConfigPublishingSigningExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/publishing/signing/HubdleConfigPublishingSigningExtension.kt @@ -27,11 +27,8 @@ import org.gradle.plugins.signing.Sign import org.gradle.plugins.signing.SigningExtension @HubdleDslMarker -public open class HubdleConfigPublishingSigningExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleConfigPublishingSigningExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } @@ -69,10 +66,7 @@ constructor( public fun signing(action: Action = Action {}): Unit = fallbackAction(action) override fun Project.defaultConfiguration() { - applicablePlugin( - scope = Scope.CurrentProject, - pluginId = PluginId.GradleSigning, - ) + applicablePlugin(scope = Scope.CurrentProject, pluginId = PluginId.GradleSigning) lazyConfigurable { configureSigningForPublishing() } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/testing/HubdleConfigTestingExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/testing/HubdleConfigTestingExtension.kt index d11136ee3b..7e2c39ce68 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/testing/HubdleConfigTestingExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/testing/HubdleConfigTestingExtension.kt @@ -22,11 +22,8 @@ import org.gradle.kotlin.dsl.develocity import org.gradle.kotlin.dsl.withType @HubdleDslMarker -public abstract class HubdleConfigTestingExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public abstract class HubdleConfigTestingExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/HubdleConfigVersioningExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/HubdleConfigVersioningExtension.kt index e661fc4521..0f4b40b599 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/HubdleConfigVersioningExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/HubdleConfigVersioningExtension.kt @@ -12,11 +12,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public abstract class HubdleConfigVersioningExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public abstract class HubdleConfigVersioningExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/semver/HubdleConfigVersioningSemverExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/semver/HubdleConfigVersioningSemverExtension.kt index 17e7496f4c..89fb6042e7 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/semver/HubdleConfigVersioningSemverExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/config/versioning/semver/HubdleConfigVersioningSemverExtension.kt @@ -19,11 +19,8 @@ import org.gradle.kotlin.dsl.configure import org.gradle.kotlin.dsl.the @HubdleDslMarker -public abstract class HubdleConfigVersioningSemverExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public abstract class HubdleConfigVersioningSemverExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/HubdleJavaExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/HubdleJavaExtension.kt index 599af62a0b..381cd73edb 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/HubdleJavaExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/HubdleJavaExtension.kt @@ -18,11 +18,8 @@ import org.gradle.api.provider.Property import org.gradle.kotlin.dsl.configure @HubdleDslMarker -public open class HubdleJavaExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleJavaExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -47,7 +44,8 @@ constructor( set.java.srcDirs(normalAndGeneratedDirs(provider { "${set.name}/java" })) set.resources.setSrcDirs(emptySet()) set.resources.srcDirs( - normalAndGeneratedDirs(provider { "${set.name}/resources" })) + normalAndGeneratedDirs(provider { "${set.name}/resources" }) + ) } } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/features/HubdleJavaFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/features/HubdleJavaFeaturesExtension.kt index 9cf826d067..fdbc856605 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/features/HubdleJavaFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/java/features/HubdleJavaFeaturesExtension.kt @@ -14,11 +14,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleJavaFeaturesExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project), HubdleJavaDelegateFeaturesExtension { +public open class HubdleJavaFeaturesExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project), HubdleJavaDelegateFeaturesExtension { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/HubdleKotlinExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/HubdleKotlinExtension.kt index 2cdefe2830..5a82f9c6c2 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/HubdleKotlinExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/HubdleKotlinExtension.kt @@ -21,11 +21,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleKotlinExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleKotlinExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } @@ -83,9 +80,4 @@ internal val HubdleEnableableExtension.hubdleKotlinAny: Set - get() = - setOf( - hubdleAndroidApplication, - hubdleAndroidLibrary, - hubdleKotlinMultiplatformAndroid, - ) + get() = setOf(hubdleAndroidApplication, hubdleAndroidLibrary, hubdleKotlinMultiplatformAndroid) diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/configureKotlinSourceSets.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/configureKotlinSourceSets.kt index 39cd350423..badd84270f 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/configureKotlinSourceSets.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/configureKotlinSourceSets.kt @@ -44,7 +44,8 @@ internal fun HubdleSrcSetConfExt<*>.configurableTestFixtures() { applicablePlugin( isEnabled = isTestFixturesFullEnabled, scope = Scope.CurrentProject, - pluginId = PluginId.JavaTestFixtures) + pluginId = PluginId.JavaTestFixtures, + ) lazyConfigurable(isEnabled = isTestFixturesFullEnabled) { configure { targets.map { target -> @@ -193,7 +194,7 @@ internal fun Project.normalAndGeneratedDirs(dir: Provider): SetProperty< private fun Project.calculateKmpSourceSetDirectory( name: String, - targetsProp: SetProperty + targetsProp: SetProperty, ): Provider = project.provider { val targets: Set = targetsProp.get().toSet() diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/forKotlinSets.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/forKotlinSets.kt index e714c7b9e2..bad00d3da6 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/forKotlinSets.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/_internal/forKotlinSets.kt @@ -7,7 +7,7 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler internal fun Project.forKotlinSetsDependencies( vararg names: String, - action: KotlinDependencyHandler.() -> Unit + action: KotlinDependencyHandler.() -> Unit, ) { configure { sourceSets.configureEach { set -> if (set.name in names) set.dependencies(action) } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/HubdleKotlinAndroidExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/HubdleKotlinAndroidExtension.kt index 2bd62a64f6..658bee721c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/HubdleKotlinAndroidExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/HubdleKotlinAndroidExtension.kt @@ -23,11 +23,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension // TODO: transform into `HubdleConfigurableExtension` @HubdleDslMarker -public open class HubdleKotlinAndroidExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleKotlinAndroidExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } @@ -132,15 +129,7 @@ internal val Project.hubdleAndroid: HubdleKotlinAndroidExtension get() = getHubdleExtension() internal val HubdleEnableableExtension.hubdleAndroidAny: Set - get() = - setOf( - hubdleAndroidApplication, - hubdleAndroidLibrary, - ) + get() = setOf(hubdleAndroidApplication, hubdleAndroidLibrary) internal val Project.hubdleAndroidAny: Set - get() = - setOf( - hubdleAndroidApplication, - hubdleAndroidLibrary, - ) + get() = setOf(hubdleAndroidApplication, hubdleAndroidLibrary) diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/HubdleKotlinAndroidApplicationExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/HubdleKotlinAndroidApplicationExtension.kt index f06cfbe12c..41cfbacba6 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/HubdleKotlinAndroidApplicationExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/HubdleKotlinAndroidApplicationExtension.kt @@ -22,11 +22,8 @@ import org.gradle.api.provider.Property import org.gradle.kotlin.dsl.configure @HubdleDslMarker -public open class HubdleKotlinAndroidApplicationExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project), HubdleAndroidDelegateSharedApis { +public open class HubdleKotlinAndroidApplicationExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project), HubdleAndroidDelegateSharedApis { override val project: Project get() = super.project @@ -55,15 +52,9 @@ constructor( override fun Project.defaultConfiguration() { val application = hubdleAndroidApplication - applicablePlugin( - scope = Scope.CurrentProject, - pluginId = PluginId.AndroidApplication, - ) - - applicablePlugin( - scope = Scope.CurrentProject, - pluginId = PluginId.JetbrainsKotlinAndroid, - ) + applicablePlugin(scope = Scope.CurrentProject, pluginId = PluginId.AndroidApplication) + + applicablePlugin(scope = Scope.CurrentProject, pluginId = PluginId.JetbrainsKotlinAndroid) lazyConfigurable { configure { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/features/HubdleKotlinAndroidApplicationFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/features/HubdleKotlinAndroidApplicationFeaturesExtension.kt index 16034ed5c2..1bcb869a7b 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/features/HubdleKotlinAndroidApplicationFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/application/features/HubdleKotlinAndroidApplicationFeaturesExtension.kt @@ -20,9 +20,8 @@ import org.gradle.api.provider.Property @HubdleDslMarker public open class HubdleKotlinAndroidApplicationFeaturesExtension @Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project), HubdleKotlinAndroidApplicationDelegateFeaturesExtension { +constructor(project: Project) : + HubdleEnableableExtension(project), HubdleKotlinAndroidApplicationDelegateFeaturesExtension { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidBuildFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidBuildFeaturesExtension.kt index a0ee9c13f3..d885a74610 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidBuildFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidBuildFeaturesExtension.kt @@ -14,21 +14,14 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleKotlinAndroidBuildFeaturesExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinAndroidBuildFeaturesExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } override val oneOfExtensions: Set get() = - setOf( - hubdleAndroidApplication, - hubdleAndroidLibrary, - hubdleKotlinMultiplatformAndroid, - ) + setOf(hubdleAndroidApplication, hubdleAndroidLibrary, hubdleKotlinMultiplatformAndroid) public val aidl: Property = property { getBooleanProperty(BuildFeatures.aidl).orElse(trueIfApp()).get() diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidFeaturesExtension.kt index baefa7d7eb..c48830504f 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/features/HubdleKotlinAndroidFeaturesExtension.kt @@ -10,11 +10,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleKotlinAndroidFeaturesExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleKotlinAndroidFeaturesExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/HubdleKotlinAndroidLibraryExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/HubdleKotlinAndroidLibraryExtension.kt index 864e0af943..c5fcfaa984 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/HubdleKotlinAndroidLibraryExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/HubdleKotlinAndroidLibraryExtension.kt @@ -23,11 +23,8 @@ import org.gradle.api.provider.Property import org.gradle.kotlin.dsl.configure @HubdleDslMarker -public open class HubdleKotlinAndroidLibraryExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project), HubdleAndroidDelegateSharedApis { +public open class HubdleKotlinAndroidLibraryExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project), HubdleAndroidDelegateSharedApis { override val project: Project get() = super.project @@ -78,15 +75,9 @@ constructor( } private fun applicablePlugins() { - applicablePlugin( - scope = Scope.CurrentProject, - pluginId = PluginId.AndroidLibrary, - ) - - applicablePlugin( - scope = Scope.CurrentProject, - pluginId = PluginId.JetbrainsKotlinAndroid, - ) + applicablePlugin(scope = Scope.CurrentProject, pluginId = PluginId.AndroidLibrary) + + applicablePlugin(scope = Scope.CurrentProject, pluginId = PluginId.JetbrainsKotlinAndroid) } private fun configurePublishing() { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/features/HubdleKotlinAndroidLibraryFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/features/HubdleKotlinAndroidLibraryFeaturesExtension.kt index b04793456c..8670b54507 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/features/HubdleKotlinAndroidLibraryFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/android/library/features/HubdleKotlinAndroidLibraryFeaturesExtension.kt @@ -21,9 +21,8 @@ import org.gradle.api.provider.Property @HubdleDslMarker public open class HubdleKotlinAndroidLibraryFeaturesExtension @Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project), HubdleKotlinAndroidLibraryDelegateFeaturesExtension { +constructor(project: Project) : + HubdleEnableableExtension(project), HubdleKotlinAndroidLibraryDelegateFeaturesExtension { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/compiler/options/HubdleKotlinCompilerOptionsExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/compiler/options/HubdleKotlinCompilerOptionsExtension.kt index 261c7840ea..f387056b9e 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/compiler/options/HubdleKotlinCompilerOptionsExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/compiler/options/HubdleKotlinCompilerOptionsExtension.kt @@ -15,11 +15,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @HubdleDslMarker -public open class HubdleKotlinCompilerOptionsExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinCompilerOptionsExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/HubdleKotlinFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/HubdleKotlinFeaturesExtension.kt index 7741ba6eff..2c846a692b 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/HubdleKotlinFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/HubdleKotlinFeaturesExtension.kt @@ -9,11 +9,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleKotlinFeaturesExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleKotlinFeaturesExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinComposeFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinComposeFeatureExtension.kt index 2ce2b34cf0..130b85a4ec 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinComposeFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinComposeFeatureExtension.kt @@ -24,11 +24,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property import org.jetbrains.compose.ComposeExtension -public open class HubdleKotlinComposeFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinComposeFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -59,7 +56,9 @@ constructor( override fun Project.defaultConfiguration() { applicablePlugin(scope = Scope.CurrentProject, pluginId = PluginId.JetbrainsCompose) applicablePlugin( - scope = Scope.CurrentProject, pluginId = PluginId.JetbrainsKotlinPluginCompose) + scope = Scope.CurrentProject, + pluginId = PluginId.JetbrainsKotlinPluginCompose, + ) lazyConfigurable { if (hubdleAndroidFeatures.isFullEnabled.get()) { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinContextReceiversFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinContextReceiversFeatureExtension.kt index 9f1ddf57f0..eb3836a26d 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinContextReceiversFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinContextReceiversFeatureExtension.kt @@ -16,9 +16,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile public open class HubdleKotlinContextReceiversFeatureExtension @Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +constructor(project: Project) : HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinCoroutinesFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinCoroutinesFeatureExtension.kt index 4c5412ed01..1e8795eacb 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinCoroutinesFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinCoroutinesFeatureExtension.kt @@ -29,11 +29,8 @@ import org.gradle.api.provider.Property import org.gradle.kotlin.dsl.configure import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension -public open class HubdleKotlinCoroutinesFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinCoroutinesFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -48,9 +45,14 @@ constructor( } forKotlinSetsDependencies( - TEST, COMMON_TEST, TEST_FUNCTIONAL, TEST_INTEGRATION, TEST_FIXTURES) { - implementation(library(jetbrains_kotlinx_coroutines_test)) - } + TEST, + COMMON_TEST, + TEST_FUNCTIONAL, + TEST_INTEGRATION, + TEST_FIXTURES, + ) { + implementation(library(jetbrains_kotlinx_coroutines_test)) + } } } lazyConfigurable(isEnabled = isAnyAndroidFullEnabled) { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinExtendedStdlibFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinExtendedStdlibFeatureExtension.kt index fbfb2b1260..5adab17934 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinExtendedStdlibFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinExtendedStdlibFeatureExtension.kt @@ -32,11 +32,8 @@ import org.gradle.api.tasks.testing.junitplatform.JUnitPlatformOptions import org.gradle.api.tasks.testing.testng.TestNGOptions import org.gradle.kotlin.dsl.withType -public open class HubdleKotlinExtendedStdlibFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinExtendedStdlibFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinKotestFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinKotestFeatureExtension.kt index d0cce816ca..7339924ba0 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinKotestFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinKotestFeatureExtension.kt @@ -20,11 +20,8 @@ import org.gradle.api.Action import org.gradle.api.Project import org.gradle.api.provider.Property -public open class HubdleKotlinKotestFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinKotestFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinMoleculeFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinMoleculeFeatureExtension.kt index bb83180975..a4815c4df8 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinMoleculeFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinMoleculeFeatureExtension.kt @@ -20,11 +20,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property import org.gradle.api.provider.Provider -public open class HubdleKotlinMoleculeFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinMoleculeFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSerializationFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSerializationFeatureExtension.kt index 2a30d7a1b6..f9f95de4c7 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSerializationFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSerializationFeatureExtension.kt @@ -22,11 +22,8 @@ import org.gradle.api.Action import org.gradle.api.Project import org.gradle.api.provider.Property -public open class HubdleKotlinSerializationFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinSerializationFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -56,7 +53,9 @@ constructor( override fun Project.defaultConfiguration() { applicablePlugin( - scope = Scope.CurrentProject, pluginId = PluginId.JetbrainsKotlinPluginSerialization) + scope = Scope.CurrentProject, + pluginId = PluginId.JetbrainsKotlinPluginSerialization, + ) lazyConfigurable { forKotlinSetsDependencies(MAIN, COMMON_MAIN) { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSqlDelightFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSqlDelightFeatureExtension.kt index d11db3e00a..211c30e015 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSqlDelightFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/features/shared/HubdleKotlinSqlDelightFeatureExtension.kt @@ -23,11 +23,8 @@ import org.gradle.api.provider.Property import org.gradle.api.provider.Provider import org.gradle.kotlin.dsl.invoke -public open class HubdleKotlinSqlDelightFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinSqlDelightFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/HubdleKotlinJvmExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/HubdleKotlinJvmExtension.kt index a15cb26845..04e168a8e9 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/HubdleKotlinJvmExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/HubdleKotlinJvmExtension.kt @@ -26,11 +26,8 @@ import org.gradle.api.provider.Property import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension @HubdleDslMarker -public open class HubdleKotlinJvmExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinSourceSetConfigurableExtension(project), HubdleGradleDependencies { +public open class HubdleKotlinJvmExtension @Inject constructor(project: Project) : + HubdleKotlinSourceSetConfigurableExtension(project), HubdleGradleDependencies { override val project: Project get() = super.project @@ -61,10 +58,7 @@ constructor( configurableTestFunctionalSourceSets() configurableKotlinTestFunctionalSourceSets() configurableDependencies() - configurableMavenPublishing( - mavenPublicationName = "java", - configJavaExtension = true, - ) + configurableMavenPublishing(mavenPublicationName = "java", configJavaExtension = true) } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinCompilerPluginFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinCompilerPluginFeatureExtension.kt index db82763977..fc445ca7b5 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinCompilerPluginFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinCompilerPluginFeatureExtension.kt @@ -56,11 +56,8 @@ import org.gradle.kotlin.dsl.withType import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension import org.jetbrains.kotlin.gradle.plugin.LanguageSettingsBuilder -public open class HubdleKotlinCompilerPluginFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinCompilerPluginFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -236,7 +233,8 @@ constructor( projectDependencies.map { projectDependency: ProjectDependency -> projectDependency.dependencyProject.tasks.withType() } - }) + } + ) } private fun LanguageSettingsBuilder.optInExperimentalAPIs() { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinJvmFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinJvmFeaturesExtension.kt index 231cb8bb8b..3f5907d138 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinJvmFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/HubdleKotlinJvmFeaturesExtension.kt @@ -22,11 +22,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleKotlinJvmFeaturesExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project), HubdleKotlinJvmDelegateFeaturesExtension { +public open class HubdleKotlinJvmFeaturesExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project), HubdleKotlinJvmDelegateFeaturesExtension { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/compiler/GenerateMetaRuntimeClasspathProviderTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/compiler/GenerateMetaRuntimeClasspathProviderTask.kt index 66685653eb..e56196dd15 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/compiler/GenerateMetaRuntimeClasspathProviderTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/jvm/features/compiler/GenerateMetaRuntimeClasspathProviderTask.kt @@ -30,10 +30,7 @@ import org.gradle.kotlin.dsl.register @CacheableTask public abstract class GenerateMetaRuntimeClasspathProviderTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : DefaultTask() { +constructor(objects: ObjectFactory, layout: ProjectLayout) : DefaultTask() { @Input public val mainClass: Property = objects.property() @@ -55,7 +52,8 @@ constructor( .replace(":", "/") .replace("_", "/") kotlinDir.dir(generatedPath) - }) + } + ) @Internal public val outputFile: RegularFileProperty = @@ -76,7 +74,8 @@ constructor( appendLine("package $mainClassPackage") appendLine() appendLine( - "import com.javiersc.kotlin.compiler.test.services.MetaRuntimeClasspathProvider") + "import com.javiersc.kotlin.compiler.test.services.MetaRuntimeClasspathProvider" + ) appendLine("import org.jetbrains.kotlin.test.services.TestServices") appendLine() appendLine("open class GeneratedMetaRuntimeClasspathProvider(") diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformExtension.kt index e05af54150..48769da006 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformExtension.kt @@ -35,11 +35,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinTarget @HubdleDslMarker -public open class HubdleKotlinMultiplatformExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformTarget.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformTarget.kt index d42ab70e8d..2742c71f65 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformTarget.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/HubdleKotlinMultiplatformTarget.kt @@ -26,8 +26,7 @@ internal enum class HubdleKotlinMultiplatformTarget(val target: String) { Linux(target = "linux"), MinGW(target = "mingw"), JS(target = "js"), - WAsm(target = "wasm"), - ; + WAsm(target = "wasm"); override fun toString(): String = target } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformFeaturesExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformFeaturesExtension.kt index f6d0acb190..ccf3c94211 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformFeaturesExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformFeaturesExtension.kt @@ -18,11 +18,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleKotlinMultiplatformFeaturesExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project), HubdleKotlinMultiplatformDelegateFeaturesExtension { +public open class HubdleKotlinMultiplatformFeaturesExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project), HubdleKotlinMultiplatformDelegateFeaturesExtension { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformMinimumTargetPerOsFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformMinimumTargetPerOsFeatureExtension.kt index 6308410da0..eb5e86e836 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformMinimumTargetPerOsFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/features/HubdleKotlinMultiplatformMinimumTargetPerOsFeatureExtension.kt @@ -16,9 +16,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension public open class HubdleKotlinMultiplatformMinimumTargetPerOsFeatureExtension @Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +constructor(project: Project) : HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } @@ -42,7 +40,7 @@ public interface HubdleKotlinMultiplatformMinimumTargetPerOsDelegateFeatureExten internal fun HubdleConfigurableExtension.configurableTargetPerOs( operativeSystem: Boolean, - block: KotlinMultiplatformExtension.() -> Unit + block: KotlinMultiplatformExtension.() -> Unit, ) { val isMinimumTargetPerOs: Property = hubdleMinimumTargetPerOs.isFullEnabled val isEnabledPerOS = property { isMinimumTargetPerOs.get() && operativeSystem } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidExtension.kt index d522a362df..b6e8bb731f 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidExtension.kt @@ -21,11 +21,8 @@ import org.gradle.kotlin.dsl.configure import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker -public open class HubdleKotlinMultiplatformAndroidExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project), HubdleAndroidDelegateSharedApis { +public open class HubdleKotlinMultiplatformAndroidExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project), HubdleAndroidDelegateSharedApis { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidNativeExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidNativeExtension.kt index bab237edc0..a77fe090af 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidNativeExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAndroidNativeExtension.kt @@ -23,9 +23,7 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker public open class HubdleKotlinMultiplatformAndroidNativeExtension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAppleExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAppleExtension.kt index 4ef29e6ca7..d1a8ee7dc1 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAppleExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformAppleExtension.kt @@ -17,11 +17,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformAppleExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformAppleExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformCommonExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformCommonExtension.kt index 6507953028..ad41b8fddc 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformCommonExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformCommonExtension.kt @@ -9,11 +9,8 @@ import org.gradle.api.Project import org.gradle.api.provider.Property @HubdleDslMarker -public open class HubdleKotlinMultiplatformCommonExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformCommonExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformIOSExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformIOSExtension.kt index 13bda69dba..acf452593c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformIOSExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformIOSExtension.kt @@ -20,11 +20,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformIOSExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformIOSExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project @@ -92,18 +89,10 @@ constructor( sourceSets.findByName("iosSimulatorArm64Test") val iosMainSourceSets: List = - listOfNotNull( - iosArm64Main, - iosX64Main, - iosSimulatorArm64Main, - ) + listOfNotNull(iosArm64Main, iosX64Main, iosSimulatorArm64Main) val iosTestSourceSets: List = - listOfNotNull( - iosArm64Test, - iosX64Test, - iosSimulatorArm64Test, - ) + listOfNotNull(iosArm64Test, iosX64Test, iosSimulatorArm64Test) val iosMain = sourceSets.maybeCreate("iosMain") val iosTest = sourceSets.maybeCreate("iosTest") diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJsExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJsExtension.kt index c85ecf8425..89080107e1 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJsExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJsExtension.kt @@ -14,11 +14,8 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsBrowserDsl import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsNodeDsl @HubdleDslMarker -public open class HubdleKotlinMultiplatformJsExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformJsExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmAndAndroidExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmAndAndroidExtension.kt index 26f137d1b9..2c1b7a8524 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmAndAndroidExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmAndAndroidExtension.kt @@ -13,9 +13,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker public open class HubdleKotlinMultiplatformJvmAndAndroidExtension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmExtension.kt index a79c47c9b0..26cce95b50 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformJvmExtension.kt @@ -11,11 +11,8 @@ import org.gradle.kotlin.dsl.configure import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker -public open class HubdleKotlinMultiplatformJvmExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformJvmExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformLinuxExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformLinuxExtension.kt index a2fa341553..b6ff7de298 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformLinuxExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformLinuxExtension.kt @@ -19,11 +19,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformLinuxExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformLinuxExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project @@ -76,16 +73,10 @@ constructor( val linuxX64Test: KotlinSourceSet? = sourceSets.findByName("linuxX64Test") val linuxMainSourceSets: List = - listOfNotNull( - linuxArm64Main, - linuxX64Main, - ) + listOfNotNull(linuxArm64Main, linuxX64Main) val linuxTestSourceSets: List = - listOfNotNull( - linuxArm64Test, - linuxX64Test, - ) + listOfNotNull(linuxArm64Test, linuxX64Test) val linuxMain = sourceSets.maybeCreate("linuxMain") val linuxTest = sourceSets.maybeCreate("linuxTest") diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMacOSExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMacOSExtension.kt index 4b8fa6127d..fb407d32cd 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMacOSExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMacOSExtension.kt @@ -19,11 +19,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformMacOSExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformMacOSExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project @@ -78,15 +75,9 @@ constructor( val macosArm64Test: KotlinSourceSet? = sourceSets.findByName("macosArm64Test") val macosMainSourceSets: List = - listOfNotNull( - macosX64Main, - macosArm64Main, - ) + listOfNotNull(macosX64Main, macosArm64Main) val macosTestSourceSets: List = - listOfNotNull( - macosX64Test, - macosArm64Test, - ) + listOfNotNull(macosX64Test, macosArm64Test) val macosMain = sourceSets.maybeCreate("macosMain") val macosTest = sourceSets.maybeCreate("macosTest") diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMinGWExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMinGWExtension.kt index c8373023ab..0c82f7cada 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMinGWExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformMinGWExtension.kt @@ -18,11 +18,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformMinGWExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformMinGWExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project @@ -63,14 +60,8 @@ constructor( val commonTest: KotlinSourceSet by sourceSets.getting val mingwX64Test: KotlinSourceSet? = sourceSets.findByName("mingwX64Test") - val mingwMainSourceSets: List = - listOfNotNull( - mingwX64Main, - ) - val mingwTestSourceSets: List = - listOfNotNull( - mingwX64Test, - ) + val mingwMainSourceSets: List = listOfNotNull(mingwX64Main) + val mingwTestSourceSets: List = listOfNotNull(mingwX64Test) val mingwMain = sourceSets.maybeCreate("mingwMain") val mingwTest = sourceSets.maybeCreate("mingwTest") diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformNativeExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformNativeExtension.kt index d86a56dd33..6b93e73da7 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformNativeExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformNativeExtension.kt @@ -14,11 +14,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformNativeExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformNativeExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformTvOSExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformTvOSExtension.kt index 1b8c4ee07d..889d3c8e0f 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformTvOSExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformTvOSExtension.kt @@ -20,11 +20,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformTvOSExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformTvOSExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project @@ -92,17 +89,9 @@ constructor( sourceSets.findByName("tvosSimulatorArm64Test") val tvosMainSourceSets: List = - listOfNotNull( - tvosArm64Main, - tvosX64Main, - tvosSimulatorArm64Main, - ) + listOfNotNull(tvosArm64Main, tvosX64Main, tvosSimulatorArm64Main) val tvosTestSourceSets: List = - listOfNotNull( - tvosArm64Test, - tvosX64Test, - tvosSimulatorArm64Test, - ) + listOfNotNull(tvosArm64Test, tvosX64Test, tvosSimulatorArm64Test) val tvosMain = sourceSets.maybeCreate("tvosMain") val tvosTest = sourceSets.maybeCreate("tvosTest") diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWAsmJsExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWAsmJsExtension.kt index 7e86dcd2a3..3631a3457c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWAsmJsExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWAsmJsExtension.kt @@ -11,11 +11,8 @@ import org.gradle.kotlin.dsl.configure import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker -public open class HubdleKotlinMultiplatformWAsmJsExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformWAsmJsExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWatchOSExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWatchOSExtension.kt index 35820954de..2ebbbe8b2c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWatchOSExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/HubdleKotlinMultiplatformWatchOSExtension.kt @@ -22,11 +22,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet @HubdleDslMarker -public open class HubdleKotlinMultiplatformWatchOSExtension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformWatchOSExtension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm32Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm32Extension.kt index 530d08aade..d9cc008c6a 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm32Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm32Extension.kt @@ -13,9 +13,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker public open class HubdleKotlinMultiplatformAndroidNativeArm32Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm64Extension.kt index 64e54f3187..86445dd878 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeArm64Extension.kt @@ -13,9 +13,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker public open class HubdleKotlinMultiplatformAndroidNativeArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX64Extension.kt index aa922ddcd8..c7071e6924 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX64Extension.kt @@ -13,9 +13,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker public open class HubdleKotlinMultiplatformAndroidNativeX64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX86Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX86Extension.kt index 5a749d1646..8079fdcd3a 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX86Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/android/HubdleKotlinMultiplatformAndroidNativeX86Extension.kt @@ -13,9 +13,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension @HubdleDslMarker public open class HubdleKotlinMultiplatformAndroidNativeX86Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSArm64Extension.kt index 7f883b1d2e..24b1a92006 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSArm64Extension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.gradle.internal.os.OperatingSystem @HubdleDslMarker -public open class HubdleKotlinMultiplatformIOSArm64Extension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformIOSArm64Extension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSSimulatorArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSSimulatorArm64Extension.kt index 6ded9856bc..46a2437fd3 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSSimulatorArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSSimulatorArm64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformIOSSimulatorArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSX64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSX64Extension.kt index b210ce3c30..c96942a6a4 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSX64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/ios/HubdleKotlinMultiplatformIOSX64Extension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.gradle.internal.os.OperatingSystem @HubdleDslMarker -public open class HubdleKotlinMultiplatformIOSX64Extension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformIOSX64Extension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxArm64Extension.kt index 0a200f5aaf..b4e30f6222 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxArm64Extension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.gradle.internal.os.OperatingSystem @HubdleDslMarker -public open class KotlinMultiplatformLinuxArm64Extension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class KotlinMultiplatformLinuxArm64Extension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxX64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxX64Extension.kt index c36cb392cf..5cf033601a 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxX64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/linux/KotlinMultiplatformLinuxX64Extension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.gradle.internal.os.OperatingSystem @HubdleDslMarker -public open class KotlinMultiplatformLinuxX64Extension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class KotlinMultiplatformLinuxX64Extension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSArm64Extension.kt index be9e927b2c..a642efbf31 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSArm64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformMacOSArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSX64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSX64Extension.kt index 71a1acaf48..1cfb215d71 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSX64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/macos/HubdleKotlinMultiplatformMacOSX64Extension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.gradle.internal.os.OperatingSystem @HubdleDslMarker -public open class HubdleKotlinMultiplatformMacOSX64Extension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformMacOSX64Extension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/mingw/HubdleKotlinMultiplatformMinGWX64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/mingw/HubdleKotlinMultiplatformMinGWX64Extension.kt index ea63d0d810..538cd17441 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/mingw/HubdleKotlinMultiplatformMinGWX64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/mingw/HubdleKotlinMultiplatformMinGWX64Extension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.gradle.internal.os.OperatingSystem @HubdleDslMarker -public open class HubdleKotlinMultiplatformMinGWX64Extension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformMinGWX64Extension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSArm64Extension.kt index f2d26b0b22..27545784e8 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSArm64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformTvOSArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSSimulatorArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSSimulatorArm64Extension.kt index fe6c522468..42fb35a9fc 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSSimulatorArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSSimulatorArm64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformTvOSSimulatorArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSX64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSX64Extension.kt index 5533900ebc..2d30f3db0f 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSX64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/tvos/HubdleKotlinMultiplatformTvOSX64Extension.kt @@ -11,11 +11,8 @@ import org.gradle.api.provider.Property import org.gradle.internal.os.OperatingSystem @HubdleDslMarker -public open class HubdleKotlinMultiplatformTvOSX64Extension -@Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +public open class HubdleKotlinMultiplatformTvOSX64Extension @Inject constructor(project: Project) : + HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm32Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm32Extension.kt index b54130af28..68515a0511 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm32Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm32Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformWatchOSArm32Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm64Extension.kt index 9a37d84807..29cf2255e8 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSArm64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformWatchOSArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSDeviceArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSDeviceArm64Extension.kt index 0ab9cf636d..f37cf5aaeb 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSDeviceArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSDeviceArm64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformWatchOSDeviceArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSSimulatorArm64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSSimulatorArm64Extension.kt index f8e39e8f7b..b9c6eff77a 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSSimulatorArm64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSSimulatorArm64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformWatchOSSimulatorArm64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSX64Extension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSX64Extension.kt index 1dbcf2b677..c7670f055b 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSX64Extension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/multiplatform/targets/watchos/HubdleKotlinMultiplatformWatchOSX64Extension.kt @@ -13,9 +13,7 @@ import org.gradle.internal.os.OperatingSystem @HubdleDslMarker public open class HubdleKotlinMultiplatformWatchOSX64Extension @Inject -constructor( - project: Project, -) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { +constructor(project: Project) : HubdleKotlinMinimalSourceSetConfigurableExtension(project) { override val project: Project get() = super.project diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinMinimalSourceSetConfigurableExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinMinimalSourceSetConfigurableExtension.kt index cc4e9eb0a8..8d5a6bc46b 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinMinimalSourceSetConfigurableExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinMinimalSourceSetConfigurableExtension.kt @@ -8,9 +8,8 @@ import org.gradle.api.Project import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet -public abstract class HubdleKotlinMinimalSourceSetConfigurableExtension( - project: Project, -) : HubdleMinimalSourceSetConfigurableExtension(project) { +public abstract class HubdleKotlinMinimalSourceSetConfigurableExtension(project: Project) : + HubdleMinimalSourceSetConfigurableExtension(project) { override val main: NamedDomainObjectProvider get() { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinSourceSetConfigurableExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinSourceSetConfigurableExtension.kt index fe54dae223..4fb5ab706b 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinSourceSetConfigurableExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/kotlin/shared/HubdleKotlinSourceSetConfigurableExtension.kt @@ -16,9 +16,8 @@ import org.gradle.api.provider.Provider import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet -public abstract class HubdleKotlinSourceSetConfigurableExtension( - project: Project, -) : HubdleSourceSetConfigurableExtension(project) { +public abstract class HubdleKotlinSourceSetConfigurableExtension(project: Project) : + HubdleSourceSetConfigurableExtension(project) { override val main: NamedDomainObjectProvider get() { diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/PluginId.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/PluginId.kt index f9c57e526d..23195846d2 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/PluginId.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/PluginId.kt @@ -30,8 +30,7 @@ public enum class PluginId(public val id: String) { MavenPublish("org.gradle.maven-publish"), Sonarqube("org.sonarqube"), SqlDelight("app.cash.sqldelight"), - VyarusMkdocsBuild("ru.vyarus.mkdocs-build"), - ; + VyarusMkdocsBuild("ru.vyarus.mkdocs-build"); override fun toString(): String = id } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/android/HubdleAndroidDelegateSharedApis.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/android/HubdleAndroidDelegateSharedApis.kt index 7faf625c49..0a3cdef94c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/android/HubdleAndroidDelegateSharedApis.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/android/HubdleAndroidDelegateSharedApis.kt @@ -23,7 +23,7 @@ public interface HubdleAndroidDelegateSharedApis { @HubdleDslMarker public fun HubdleEnableableExtension.configuration( name: String, - action: Action + action: Action, ) { lazyConfigurable { project.configurations.named(name, action::execute) } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleGradleFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleGradleFeatureExtension.kt index 5568493e02..112132b710 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleGradleFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleGradleFeatureExtension.kt @@ -18,11 +18,8 @@ import org.gradle.api.initialization.dsl.VersionCatalogBuilder import org.gradle.api.plugins.catalog.CatalogPluginExtension import org.gradle.api.provider.Property -public open class HubdleGradleFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleGradleFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleIntellijFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleIntellijFeatureExtension.kt index 6a3a95a54c..4ec23f2145 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleIntellijFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleIntellijFeatureExtension.kt @@ -13,11 +13,8 @@ import org.gradle.api.Action import org.gradle.api.Project import org.gradle.api.provider.Property -public open class HubdleIntellijFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleEnableableExtension(project) { +public open class HubdleIntellijFeatureExtension @Inject constructor(project: Project) : + HubdleEnableableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaApplicationFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaApplicationFeatureExtension.kt index 905e6d6671..1cbe81dd62 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaApplicationFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaApplicationFeatureExtension.kt @@ -16,11 +16,8 @@ import org.gradle.api.Project import org.gradle.api.plugins.JavaApplication import org.gradle.api.provider.Property -public open class HubdleJavaApplicationFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleJavaApplicationFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaVersionFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaVersionFeatureExtension.kt index bf807b5818..c31a07326e 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaVersionFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJavaVersionFeatureExtension.kt @@ -16,11 +16,8 @@ import org.gradle.kotlin.dsl.withType import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -public open class HubdleJavaVersionFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleJavaVersionFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { true } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJvmToolchainFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJvmToolchainFeatureExtension.kt index a928cdd80f..c644c506eb 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJvmToolchainFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/HubdleJvmToolchainFeatureExtension.kt @@ -21,11 +21,8 @@ import org.gradle.jvm.toolchain.JvmVendorSpec import org.gradle.kotlin.dsl.configure import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension -public open class HubdleJvmToolchainFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleJvmToolchainFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradlePluginFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradlePluginFeatureExtension.kt index e992e02a6a..b611ae506c 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradlePluginFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradlePluginFeatureExtension.kt @@ -43,11 +43,8 @@ import org.gradle.kotlin.dsl.withType import org.gradle.plugin.devel.GradlePluginDevelopmentExtension import org.gradle.plugin.devel.tasks.PluginUnderTestMetadata -public open class HubdleGradlePluginFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project), HubdleGradleDependencies { +public open class HubdleGradlePluginFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project), HubdleGradleDependencies { override val isEnabled: Property = property { false } @@ -117,7 +114,8 @@ constructor( vararg dependencies: ProviderConvertible ) { this.pluginUnderTestExternalDependencies.addAll( - provider { dependencies.map { it.asProvider().get() } }) + provider { dependencies.map { it.asProvider().get() } } + ) } @HubdleDslMarker @@ -145,10 +143,7 @@ constructor( } override fun Project.defaultConfiguration() { - applicablePlugin( - scope = Scope.CurrentProject, - pluginId = PluginId.JavaGradlePlugin, - ) + applicablePlugin(scope = Scope.CurrentProject, pluginId = PluginId.JavaGradlePlugin) applicablePlugin( isEnabled = property { isFullEnabled.get() && hubdlePublishing.isFullEnabled.get() }, @@ -217,7 +212,7 @@ constructor( gradlePluginDevelopmentExtension.website.set(hubdlePublishingMavenPom.url) gradlePluginDevelopmentExtension.vcsUrl.set(hubdlePublishingMavenPom.scmUrl) } - }, + } ) } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradleVersionCatalogFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradleVersionCatalogFeatureExtension.kt index b767888386..5622352697 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradleVersionCatalogFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/gradle/HubdleGradleVersionCatalogFeatureExtension.kt @@ -12,11 +12,8 @@ import javax.inject.Inject import org.gradle.api.Project import org.gradle.api.provider.Property -public open class HubdleGradleVersionCatalogFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleGradleVersionCatalogFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -24,10 +21,7 @@ constructor( get() = setOf(hubdleJava, hubdleKotlinJvm) override fun Project.defaultConfiguration() { - applicablePlugin( - scope = Scope.CurrentProject, - PluginId.GradleVersionCatalog, - ) + applicablePlugin(scope = Scope.CurrentProject, PluginId.GradleVersionCatalog) configurableMavenPublishing(mavenPublicationName = "versionCatalog") } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/intellij/HubdleIntellijPluginFeatureExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/intellij/HubdleIntellijPluginFeatureExtension.kt index 9f918d369c..a0e45a4307 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/intellij/HubdleIntellijPluginFeatureExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/intellij/HubdleIntellijPluginFeatureExtension.kt @@ -40,11 +40,8 @@ import org.jetbrains.intellij.tasks.RunPluginVerifierTask import org.jetbrains.intellij.tasks.SignPluginTask @HubdleDslMarker -public open class HubdleIntellijPluginFeatureExtension -@Inject -constructor( - project: Project, -) : HubdleConfigurableExtension(project) { +public open class HubdleIntellijPluginFeatureExtension @Inject constructor(project: Project) : + HubdleConfigurableExtension(project) { override val isEnabled: Property = property { false } @@ -190,7 +187,7 @@ constructor( } lazyConfigurable( - isEnabled = property { isFullEnabled.get() && hubdlePublishing.isFullEnabled.get() }, + isEnabled = property { isFullEnabled.get() && hubdlePublishing.isFullEnabled.get() } ) { configurePublishPlugin() configureSignPlugin() @@ -257,7 +254,8 @@ private fun HubdleIntellijPluginFeatureExtension.configureGeneratedChangelogHtml attributes { attributes -> attributes.attribute( LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, - objects.named(GENERATED_CHANGELOG_HTML_ATTRIBUTE)) + objects.named(GENERATED_CHANGELOG_HTML_ATTRIBUTE), + ) } } diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/tasks/GenerateProjectDataTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/tasks/GenerateProjectDataTask.kt index 380751a782..2398ac5b50 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/tasks/GenerateProjectDataTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/project/extensions/shared/features/tasks/GenerateProjectDataTask.kt @@ -27,11 +27,8 @@ import org.gradle.kotlin.dsl.property import org.gradle.kotlin.dsl.register @CacheableTask -public open class GenerateProjectDataTask -@Inject -constructor( - objects: ObjectFactory, -) : DefaultTask() { +public open class GenerateProjectDataTask @Inject constructor(objects: ObjectFactory) : + DefaultTask() { init { group = BasePlugin.BUILD_GROUP diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsExtension.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsExtension.kt index fae4d2fd47..84101e0290 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsExtension.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsExtension.kt @@ -14,10 +14,7 @@ import org.gradle.kotlin.dsl.property @HubdleSettingsDslMarker public open class HubdleSettingsExtension @Inject -constructor( - private val objects: ObjectFactory, - private val providers: ProviderFactory, -) { +constructor(private val objects: ObjectFactory, private val providers: ProviderFactory) { public val autoInclude: HubdleAutoIncludeExtension = objects.newInstance() diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsPlugin.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsPlugin.kt index ff59fff465..a9d88e65cb 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsPlugin.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/HubdleSettingsPlugin.kt @@ -34,11 +34,8 @@ import org.gradle.kotlin.dsl.register import org.gradle.kotlin.dsl.the import org.gradle.language.base.plugins.LifecycleBasePlugin.ASSEMBLE_TASK_NAME -public open class HubdleSettingsPlugin -@Inject -constructor( - private val objects: ObjectFactory, -) : Plugin { +public open class HubdleSettingsPlugin @Inject constructor(private val objects: ObjectFactory) : + Plugin { override fun apply(target: Settings) { target.enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") diff --git a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/tasks/GenerateHubdleCatalogTask.kt b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/tasks/GenerateHubdleCatalogTask.kt index 727e9ff4e4..0251bb6824 100644 --- a/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/tasks/GenerateHubdleCatalogTask.kt +++ b/hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/settings/tasks/GenerateHubdleCatalogTask.kt @@ -15,10 +15,7 @@ import org.gradle.kotlin.dsl.mapProperty @CacheableTask public open class GenerateHubdleCatalogTask @Inject -constructor( - objects: ObjectFactory, - layout: ProjectLayout, -) : DefaultTask() { +constructor(objects: ObjectFactory, layout: ProjectLayout) : DefaultTask() { @Input public val libraries: MapProperty = diff --git a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/BinaryCompatibilityStateTest.kt b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/BinaryCompatibilityStateTest.kt index 71bf46382d..8f35823f2f 100644 --- a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/BinaryCompatibilityStateTest.kt +++ b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/BinaryCompatibilityStateTest.kt @@ -27,7 +27,8 @@ internal class BinaryCompatibilityStateTest : GradleTestKitTest() { | public fun ()V |} """ - .trimMargin()) + .trimMargin() + ) val libraryApiDir: File = projectDir.resolve("library/api") libraryApiDir.shouldBeADirectory() @@ -41,7 +42,8 @@ internal class BinaryCompatibilityStateTest : GradleTestKitTest() { | public fun ()V |} """ - .trimMargin()) + .trimMargin() + ) } } } diff --git a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/AddChangelogItemTest.kt b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/AddChangelogItemTest.kt index 343f0fc358..02f43759f2 100644 --- a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/AddChangelogItemTest.kt +++ b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/AddChangelogItemTest.kt @@ -111,7 +111,7 @@ internal class AddChangelogItemTest : GradleTestKitTest() { | ---------- | --------------------------------------------------------- | ----- | --- | | maven | com.gradle.enterprise:com.gradle.enterprise.gradle.plugin | 3.6.4 | 3.7 | """ - .trimIndent(), + .trimIndent() ) gradlewArgumentFromTXT() projectDir.testChangelog() @@ -131,7 +131,7 @@ internal class AddChangelogItemTest : GradleTestKitTest() { | maven | com.javiersc.either:either-core | 2.0.1 | 2.0.2 | | maven | com.javiersc.either:either-core | 2.0.1 | 2.0.2 | """ - .trimIndent(), + .trimIndent() ) gradlewArgumentFromTXT() projectDir.testChangelog() @@ -148,7 +148,7 @@ internal class AddChangelogItemTest : GradleTestKitTest() { | ---------- | --------------------------------------------------------- | ----- | ----- | | maven | com.javiersc.mokoki:mokoki-core | 1.0.0 | 1.0.1 | """ - .trimIndent(), + .trimIndent() ) gradlewArgumentFromTXT() projectDir.testChangelog() @@ -170,7 +170,7 @@ internal class AddChangelogItemTest : GradleTestKitTest() { | github-tags | actions/cache | v2.1.6 | v2.1.7 | | github-tags | actions/cache | v2.1.6 | v2.1.7 | """ - .trimIndent(), + .trimIndent() ) gradlewArgumentFromTXT() projectDir.testChangelog() @@ -187,7 +187,7 @@ internal class AddChangelogItemTest : GradleTestKitTest() { | -------------- | ------- | ----- | --- | | gradle-version | gradle | 7.3.3 | 7.4 | """ - .trimIndent(), + .trimIndent() ) gradlewArgumentFromTXT() projectDir.testChangelog() @@ -204,7 +204,7 @@ internal class AddChangelogItemTest : GradleTestKitTest() { | ---------- | ----------------------------------------------------- | ------------------------------ | ------------------------------ | | maven | com.javiersc.hubdle:com.javiersc.hubdle.gradle.plugin | 0.6.4+2.0.0-dev-17175-SNAPSHOT | 0.6.4+2.0.0-dev-18803-SNAPSHOT | """ - .trimIndent(), + .trimIndent() ) gradlewArgumentFromTXT() projectDir.testChangelog() diff --git a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/TestChangelogUtils.kt b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/TestChangelogUtils.kt index 632734236c..410aa6ed39 100644 --- a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/TestChangelogUtils.kt +++ b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/config/documentation/changelog/TestChangelogUtils.kt @@ -25,5 +25,6 @@ internal fun File.updateChangelogActualDate() { changelogActual.writeText( changelogActual .readText() - .replace("{{ PLACEHOLDER_DATE }}", SimpleDateFormat("yyyy-MM-dd").format(Date()))) + .replace("{{ PLACEHOLDER_DATE }}", SimpleDateFormat("yyyy-MM-dd").format(Date())) + ) } diff --git a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/kotlin/jvm/KotlinJvmTest.kt b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/kotlin/jvm/KotlinJvmTest.kt index 0f3a477c27..b9b9218579 100644 --- a/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/kotlin/jvm/KotlinJvmTest.kt +++ b/hubdle-gradle-plugin/testFunctional/kotlin/com/javiersc/hubdle/project/kotlin/jvm/KotlinJvmTest.kt @@ -29,7 +29,8 @@ internal class KotlinJvmTest : GradleTestKitTest() { private val GradleRunner.mavenLocalBuildTestPath get() = projectDir.resolve( - "build/mavenLocalBuildTest/repository/com/kotlin/jvm/sandbox-project/") + "build/mavenLocalBuildTest/repository/com/kotlin/jvm/sandbox-project/" + ) @BeforeTest fun `clean m2_com_kotlin before test`() { @@ -149,10 +150,7 @@ internal class KotlinJvmTest : GradleTestKitTest() { } private val gpgMap = - mapOf( - "SIGNING_GNUPG_KEY" to gpgKey, - "SIGNING_GNUPG_PASSPHRASE" to gpgKeyPassphrase, - ) + mapOf("SIGNING_GNUPG_KEY" to gpgKey, "SIGNING_GNUPG_PASSPHRASE" to gpgKeyPassphrase) private val gpgKey get() = diff --git a/hubdle-version-catalog/CHANGELOG.md b/hubdle-version-catalog/CHANGELOG.md index f073e91b14..bd6142c091 100644 --- a/hubdle-version-catalog/CHANGELOG.md +++ b/hubdle-version-catalog/CHANGELOG.md @@ -14,6 +14,7 @@ ### Updated +- `com.facebook:ktfmt -> 0.52` - `org.jetbrains.kotlinx:kotlinx-io-core -> 0.5.3` - `com.gradle.develocity:com.gradle.develocity.gradle.plugin -> 3.18` - `com.diffplug.spotless:spotless-plugin-gradle -> 7.0.0.BETA1`