Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non-required @Inject constructors. #253

Merged
merged 1 commit into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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