NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

Error building the jar in Windows #123

Closed afernandezmlt closed 4 years ago

afernandezmlt commented 6 years ago

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 commented 5 years ago

Thanks, that fixed it for me too!

mdelouwere commented 4 years ago

Great fix,

worked for me ass well.

madhephaestus commented 4 years ago

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.