在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):4finance/uptodate-gradle-plugin开源软件地址(OpenSource Url):https://github.com/4finance/uptodate-gradle-plugin开源编程语言(OpenSource Language):Groovy 89.5%开源软件介绍(OpenSource Introduction):uptodate-gradle-pluginGradle plugin that tells you what libs have new versions on Maven Central, so when you come back to a project, you know what you can update. How it works?You run the plugin:
And you get for example this:
How to install it?Latest version is . You can change Step 1: Add dependency to JCenter and to the plugin
Step 2: Add the plugin to your build (gradle.build)
And now you can run the plugin with
How to configure which configurations should be checked for updates?By default all project configurations are checked for updates but you can exclude any of them.
If you want to check only specific configurations it's also possible, simply include those configurations.
Please note that excludes take precedence over includes. How to exclude non-final versions from reported updates?You can also provide patterns of versions that you would like to exclude. There are also some patterns (like BETA, RC, etc.) defined in com.ofg.uptodate.UptodatePluginExtension.VersionPatterns By default following patterns are excluded: ALPHA, BETA, RC, CR, SNAPSHOT, MILESTONE, RELEASE( i.e. r08)
You can also add your own patterns to the already excluded version patterns.
How to tune HTTP connections?You can change connection timeout (5000 ms by default) and/or limit simultaneous HTTP connections (8 connections by default) by connectionTimeout and simultaneousHttpConnections properties respectively.
How to run the plugin if you are behind an HTTP proxy?The proxy settings can be configured by using one of the following approaches: 1. Via System properties (recommended)Make sure to have the following properties configured when running the plugin:
2. Via plugin configurationAdd the proxyHostname, proxyPort (defaults to -1, which is the default port of the scheme) and proxyScheme (defaults to 'http') properties to the plugin configuration.
How to print project names along with information about new (or lack of) dependency updates?By default (sub)project names are not printed so that you can easily operate on uptodate task output (e.g.:
How to break the build if new dependencies have been found?You can add the possibility to break the build for new versions of dependencies by applying the following closure
If turned on the default behaviour is such that if ANY new dependency is found then the build will be broken. You can customize the inclusion and exclusion patterns by the following methods:
To make the functionality available on demand you can apply for example a project property:
How to run the plugin on every build?You can run the plugin automatically on every build, just by adding to your build.gradle
But be warned, this will slow down the build by a few seconds (required to hit maven remote repo with http), so it is not suggested unless you don't care about build time. ChangelogTo see what has changed in recent versions of Uptodate plugin see the CHANGELOG Releasing
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论