forked from jpos/jPOS-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
51 lines (43 loc) · 1.13 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'docker'
buildscript {
repositories { jcenter() }
dependencies {
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
group = 'org.jpos.template'
version = '2.0.2'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {url 'http://jpos.org/maven' }
mavenLocal()
}
dependencies {
compile ('org.jpos:jpos:2.0.+') {
exclude(module: 'junit')
exclude(module: 'hamcrest-core')
}
testCompile 'junit:junit:4.8.2'
}
apply from: 'jpos-app.gradle'
genDocker {
description 'Generate Docker Image'
baseImage "jpos/ubuntu_vivid_jdk8"
maintainer 'A jPOS Developer "[email protected]"'
tag project.name
tagVersion "latest"
dryRun=true
runCommand 'chmod 755 /app/bin/q2 /app/bin/start /app/bin/stop /app/bin/bsh'
//--Uncomment and modify line below to expose a port.
//exposePort 4444
}
genDocker << {
println " # In order to build your image, run"
println " # cd build/docker && docker build -t='xxxx/xxxx' ."
}