From 57c69ddb1974b6c47c4f096a5b6d93afe16cba0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Thu, 20 Jul 2023 12:02:10 +0100 Subject: [PATCH] Remove non-required @Inject constructors. --- .../github/gradlenexus/publishplugin/NexusPublishExtension.kt | 3 +-- .../io/github/gradlenexus/publishplugin/NexusRepository.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishExtension.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishExtension.kt index 5cb47d7b..10a431e8 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishExtension.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusPublishExtension.kt @@ -23,9 +23,8 @@ import org.gradle.api.tasks.Nested import org.gradle.kotlin.dsl.domainObjectContainer import org.gradle.kotlin.dsl.newInstance import java.time.Duration -import javax.inject.Inject -abstract class NexusPublishExtension @Inject constructor(objects: ObjectFactory) { +abstract class NexusPublishExtension(objects: ObjectFactory) { companion object { internal const val NAME = "nexusPublishing" diff --git a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusRepository.kt b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusRepository.kt index 8be42c23..f3a8c5b5 100644 --- a/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusRepository.kt +++ b/src/main/kotlin/io/github/gradlenexus/publishplugin/NexusRepository.kt @@ -29,10 +29,9 @@ import org.gradle.api.tasks.Input import org.gradle.api.tasks.Internal import org.gradle.api.tasks.Optional import java.net.URI -import javax.inject.Inject import kotlin.reflect.KClass -abstract class NexusRepository @Inject constructor(@Input val name: String) { +abstract class NexusRepository(@Input val name: String) { @get:Input abstract val nexusUrl: Property