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

Allow configurable timeouts and simplify local maven publishing #20

Merged
merged 8 commits into from
Feb 4, 2021

Conversation

torbsto
Copy link
Contributor

@torbsto torbsto commented Feb 4, 2021

Fixes #19

Also disables singing and property checking for local maven releases.

build.gradle.kts Show resolved Hide resolved
this.allTasks.filter { it is Sign }.forEach {
// disable sign for publishToLocalMaven
it.onlyIf { !onlyLocalPublish }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This disables all sign tasks if we only do a publishToLocalMaven. Is there anything against it?

Copy link
Member

Choose a reason for hiding this comment

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

Very nice, publishing to local is very helpful

Comment on lines +30 to +31
var connectTimeout: Long = 300
var clientTimeout: Long = 300
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I set the defaults to 5m, might be a bit high? I didn't find any suggested defaults, the publishing plugin uses 60s, but I think we already had trouble with that, right?

Copy link
Member

Choose a reason for hiding this comment

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

5m sounds reasonable, 60s is definitely too low

@torbsto torbsto marked this pull request as ready for review February 4, 2021 15:30
@torbsto torbsto merged commit a0daa47 into master Feb 4, 2021
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.

Allow configuration of timeout when publishing to nexus
2 participants