Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GradleApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syed Javed Ali
GradleApp
Commits
3eebb0f9
Commit
3eebb0f9
authored
Feb 02, 2021
by
Syed Javed Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ext, exclude feature
parent
5f0dcb33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
build.gradle
GradleApp/build.gradle
+30
-3
No files found.
GradleApp/build.gradle
View file @
3eebb0f9
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment