Closed Bpazy closed 7 years ago
when
user = 'hanzi...' key = '9e7e86971f49...'
everything is ok.
But when put user and key in gradle.properties
user
key
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
I will get HTTP/1.1 401 Unauthorized [message:This resource requires authentication]
HTTP/1.1 401 Unauthorized [message:This resource requires authentication]
And in this case, use println it will output correct user and key(just like write the user and key in source code on the topside)
println
Resolved! gradle.properties value should not in quotes. Such as:
gradle.properties
//gradle.properties user = test
instate of user = 'test'
user = 'test'
when
everything is ok.
But when put
user
andkey
in gradle.propertiesI will get
HTTP/1.1 401 Unauthorized [message:This resource requires authentication]
And in this case, use
println
it will output correctuser
andkey
(just like write theuser
andkey
in source code on the topside)