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

Error building the jar in Windows #123

Closed
afernandezmlt opened this issue Jul 26, 2018 · 3 comments
Closed

Error building the jar in Windows #123

afernandezmlt opened this issue Jul 26, 2018 · 3 comments

Comments

@afernandezmlt
Copy link
Contributor

I had an error trying to build the jar in windows, googling a bit I found out that on line 121 and 125 of build.gradle there was an error with the variables ossrhUsername and ossrhPassword.
When I change the line
authentication(userName: ossrhUsername, password: ossrhPassword)
to
authentication(userName: hasProperty('ossrhUsername')?ossrhUsername:'', password: hasProperty('ossrhPassword')?ossrhPassword:'')

the build works well.
Maybe there was reported previously but I didn't find it...
Hope this helps.

@tobidelbruck
Copy link

Thanks, that fixed it for me too!

QuintinWillison pushed a commit to ably/ably-java that referenced this issue Feb 27, 2020
Based on this solution:
NeuronRobotics/nrjavaserial#123 (comment)

Though I don't (yet) understand why it's needed.
paddybyers pushed a commit to ably/ably-java that referenced this issue Feb 28, 2020
Based on this solution:
NeuronRobotics/nrjavaserial#123 (comment)

Though I don't (yet) understand why it's needed.
@mdelouwere
Copy link

Great fix,

worked for me ass well.

@madhephaestus
Copy link
Member

oopsie, this issue should never came up. That section is uesd for publishing to sonnotype. It makes reference to fields that exist in my secret credentials file, which is never comitted to git. I sym-link it into the build directory to publish. build.gradle should never have been pushed with that section uncommented.

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

No branches or pull requests

4 participants