spring-gradle-plugins / Propdeps Plugin
New "provided" and "optiona;
Stars: ✭ 56
Programming Languages
groovy
2714 projects
Overview
Provides additional optional
and provided
dependency configurations for Gradle
along with Maven POM generation support.
Configuration
See tags to determine the latest available version. Then configure the plugin in your project as follows:
buildscript {
repositories {
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'io.spring.gradle:propdeps-plugin:0.0.9.RELEASE'
}
}
// ...
configure(allprojects) {
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
}
Usage
The optional
and provided
dependency configurations can be used in the same way
as existing configurations:
dependencies {
compile("commons-logging:commons-logging:1.1.1")
optional("log4j:log4j:1.2.17")
provided("javax.servlet:javax.servlet-api:3.0.1")
testCompile("junit:junit:4.11")
}
No additional tasks are installed, however, existing eclipse
idea
and
install
tasks are enhanced to support the new configurations:
$ gradle install
$ gradle eclipse
$ gradle idea
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].