groovy - How to navigate in Gradle API documentation? -
this unusual question. have problem navigating in gradle groovy api doc. example see following code,
uploadarchives { repositories { ivy { credentials { username "username" password "pw" } url "http://repo.mycompany.com" } } } in above code how can find goes "credentials" closure in api documentaion ?
thanks
i'm quite new gradle myself, do:
- start
projectbuild script executed againstprojectinstance - look
repositories { } - it mentions
repositoryhandler,ivy { }there ivy()returnsivyartifactrepository, guess closure executed against that- however there no
credentials { }defined onivyartifactrepository - jump its api doc check superclasses (link on top of page)
- you can see there
credentialsdefined onauthenticationsupported passwordcredentialsmentioned there, , see hasusername,passwordproperties
it's not intuitive, , miss code completion lot, once hang of it, becomes easier find way through documentation.
Comments
Post a Comment