Commit 3eebb0f9 authored by Syed Javed Ali's avatar Syed Javed Ali

added ext, exclude feature

parent 5f0dcb33
...@@ -31,9 +31,17 @@ plugins{ ...@@ -31,9 +31,17 @@ plugins{
repositories{ repositories{
mavenCentral() //collects jars from mvn central repository mavenCentral() //collects jars from mvn central repository
maven{ //to collect jar from any other repository //jcenter() //collects jars from mvn central repository
url 'http://nexus.saas.hand-china.com/content/repositories/rdc/' // maven{ //to collect jar from any other repository
} // url 'http://nexus.saas.hand-china.com/content/repositories/rdc/'
// }
mavenLocal() //to collect jar from local repository
}
//to maintain version of jars same for same framework
ext{
springversion="5.2.7.RELEASE";
} }
dependencies{ dependencies{
...@@ -50,6 +58,25 @@ testCompile group: 'junit', name: 'junit', version: '4.13' ...@@ -50,6 +58,25 @@ testCompile group: 'junit', name: 'junit', version: '4.13'
// https://mvnrepository.com/artifact/com.oracle/ojdbc7 // https://mvnrepository.com/artifact/com.oracle/ojdbc7
compile group: 'com.oracle', name: 'ojdbc7', version: '12.1.0.2' compile group: 'com.oracle', name: 'ojdbc7', version: '12.1.0.2'
// jar collected from maven local
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.7.0'
//from local file system
compile files("D:\\POC-2\\commons-io-2.2.jar")
// https://mvnrepository.com/artifact/org.springframework/spring-context-support
compile group: 'org.springframework', name: 'spring-context-support', version: "$springversion"
// https://mvnrepository.com/artifact/org.springframework/spring-jdbc
compile group: 'org.springframework', name: 'spring-jdbc', version: "$springversion"
// https://mvnrepository.com/artifact/org.springframework/spring-web
compile group: 'org.springframework', name: 'spring-web', version: "$springversion"
// to exclude any sub jar coming with main jar
compile ('org.springframework:spring-context-support:5.2.7.RELEASE'){
exclude group: 'org.springframework', module: 'spring-jcl'
}
} }
//execute test task from 'Gradle tasks tab' //execute test task from 'Gradle tasks tab'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment