Skip to content

Commit

Permalink
Remove non-required @Inject constructors. (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob authored Jul 22, 2023
1 parent 0c2f8df commit a17b85a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<URI>
Expand Down

0 comments on commit a17b85a

Please sign in to comment.