Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nice-gradle-config
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
JIRA
JIRA
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
nice.base
nice-gradle-config
Commits
ea2792b3
Commit
ea2792b3
authored
May 30, 2019
by
ziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
a6fb099d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
docker-nice-bz-m.gradle
docker-nice-bz-m.gradle
+21
-0
No files found.
docker-nice-bz-m.gradle
0 → 100644
View file @
ea2792b3
buildscript
{
repositories
{
maven
{
url
"https://maven.aliyun.com/repository/central"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
mavenCentral
()
}
dependencies
{
classpath
(
'gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.21.0'
)
}
}
apply
plugin:
com
.
palantir
.
gradle
.
docker
.
PalantirDockerPlugin
def
registryAddress
=
project
.
getProperties
().
get
(
'isProd'
)
==
"prod"
?
'172.18.0.181:5000'
:
'172.16.22.3:5000'
docker
{
dependsOn
build
name
"${registryAddress}/${project.group}-${jar.baseName}"
files
jar
.
archivePath
buildArgs
([
'JAR_FILE'
:
"${jar.archiveName}"
])
noCache
true
}
\ No newline at end of file
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