Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xnat-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dhcp
xnat-web
Commits
db602fd0
Commit
db602fd0
authored
9 years ago
by
John Flavin
Browse files
Options
Downloads
Patches
Plain Diff
FIX Cargo and tomcat properties no longer required
parent
34e4c801
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.gradle
+12
-9
12 additions, 9 deletions
build.gradle
with
12 additions
and
9 deletions
build.gradle
+
12
−
9
View file @
db602fd0
...
...
@@ -290,17 +290,19 @@ dependencies {
}
cargo
{
def
blankProperty
=
"xxx"
def
blankPort
=
0
containerId
=
'tomcat7x'
port
=
deployPort
as
in
t
port
=
hasProperty
(
'deployPort'
)
?
getProperty
(
'deployPort'
)
as
int
:
blankPor
t
deployable
{
context
=
deployContext
context
=
hasProperty
(
'deployContext'
)
?
getProperty
(
'deployContext'
)
:
blankProperty
}
remote
{
hostname
=
deployHost
username
=
deployUser
password
=
deployPassword
hostname
=
hasProperty
(
'deployHost'
)
?
getProperty
(
'deployHost'
)
:
blankProperty
username
=
hasProperty
(
'deployUser'
)
?
getProperty
(
'deployUser'
)
:
blankProperty
password
=
hasProperty
(
'
deployPassword
'
)
?
getProperty
(
'deployPassword'
)
:
blankProperty
}
}
...
...
@@ -335,12 +337,13 @@ publishing {
}
}
repositories
{
def
blankProperty
=
"xxx"
maven
{
credentials
{
// These properties must be set in the ~/.gradle/gradle.properties file or passed on the Gradle command
// line in the form -DrepoUsername=foo -DrepoPassword=bar.
username
repoUsername
password
repoPassword
username
hasProperty
(
'repoUsername'
)
?
getProperty
(
'repoUsername'
)
:
blankProperty
password
hasProperty
(
'repoPassword'
)
?
getProperty
(
'repoPassword'
)
:
blankProperty
}
if
(
project
.
version
.
endsWith
(
'-SNAPSHOT'
))
{
url
"http://nrgxnat.artifactoryonline.com/nrgxnat/libs-snapshot-local"
...
...
@@ -352,8 +355,8 @@ publishing {
credentials
{
// These properties must be set in the ~/.gradle/gradle.properties file or passed on the Gradle command
// line in the form -DrepoUsername=foo -DrepoPassword=bar.
username
repoUsername
password
repoPassword
username
hasProperty
(
'repoUsername'
)
?
getProperty
(
'repoUsername'
)
:
blankProperty
password
hasProperty
(
'repoPassword'
)
?
getProperty
(
'repoPassword'
)
:
blankProperty
}
if
(
project
.
version
.
endsWith
(
'-SNAPSHOT'
))
{
url
"http://nrgxnat.artifactoryonline.com/nrgxnat/libs-snapshot-local"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment