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

Move publishType and ivyRepositoryPattern to NexusRepository #1

Merged

Conversation

maczikasz
Copy link
Owner

It makes more sense to have these properties configured on an individual repository level rather than at the plugin level This will allow the configuration of repositories with different publication types and repository layouts, mimics the original gradle configuration more closely

It makes more sense to have these properties configured on an individual repository level rather than at the plugin level
This will allow the configuration of repositories with different publication types and repository layouts, mimics the original gradle configuration more closely
@maczikasz maczikasz self-assigned this May 24, 2023
repositories {
myNexus {
nexusUrl = uri('${server.baseUrl()}/shouldNotBeUsed')
snapshotRepositoryUrl = uri('${server.baseUrl()}/snapshots')
allowInsecureProtocol = true
username = 'username'
password = 'password'

ivyPatternLayout {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ivyPatternLayout {
ivyPatternLayout {

@@ -33,6 +36,9 @@ open class NexusRepository @Inject constructor(@Input val name: String, project:
@Input
val snapshotRepositoryUrl = project.objects.property<URI>()

@Input
val publicationType: Property<NexusPublishExtension.PublicationType> = project.objects.property<NexusPublishExtension.PublicationType>().value(NexusPublishExtension.PublicationType.MAVEN)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we cannot use convention because we need to support older versions of Gradle, right?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly, convention was introudced in 5.1

@maczikasz maczikasz merged commit c677617 into maczikasz/ivy-publish-support May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants