在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):hibernate/gradle-maven-publish-auth开源软件地址(OpenSource Url):https://github.com/hibernate/gradle-maven-publish-auth开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Maven Repository Auth PluginGradle plugin used to apply credential information defined in Maven config files to Maven repositories used in Gradle builds - both for upload and download Applying pluginSee https://plugins.gradle.org/plugin/org.hibernate.build.maven-repo-auth for details on how to apply the plugin. Applying the plugin does a number of things:
ExamplesLet’s assume we use a Maven repository located at the URL
DownloadsTo download artifacts from the repository, we configure it in the Gradle build like so:
Because the name applied to the repo in the Gradle build matches the id of the server as configured in
the Maven Uploads (legacy publishing)The plugin can also apply the credentials when the legacy approach of publishing via an Upload task available through Gradle’s MavenPlugin. E.g.:
Again, because the repo-name / server-id match, the credentials will be applied. PublishingGradle also defines a proper DSL for "publications", which is also supported by the plugin:
LimitationsThe plugin does not yet work with buildscript repositories. In the following case, the credentials will not get applied:
Gradle WrapperTo upgrade Gradle Wrapper to a new version, run
Additional resources |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论