Skip to content

Commit 31a9541

Browse files
committed
Build using Gradle
1 parent f664fec commit 31a9541

6 files changed

Lines changed: 306 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.gradle
12
.DS_Store
23
*.class
34

@@ -9,6 +10,7 @@
910
#Build targets
1011
/target
1112
*/target
13+
build
1214

1315
.idea/
1416
*.class

build.gradle

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
group = 'org.examples.java'
2+
version = '1.0-SNAPSHOT'
3+
4+
apply plugin: 'java'
5+
apply plugin:'application'
6+
7+
mainClassName = "org.examples.java.App"
8+
9+
repositories {
10+
mavenCentral()
11+
}
12+
13+
sourceCompatibility = 1.8
14+
targetCompatibility = 1.8
15+
16+
dependencies {
17+
testCompile group: 'junit', name: 'junit', version: '4.+'
18+
}
19+
20+
jar {
21+
manifest {
22+
attributes 'Main-Class': 'org.examples.java.App'
23+
}
24+
}
25+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Oct 07 19:44:20 CEST 2016
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-bin.zip

gradlew

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
This repository contain samples that shows integration of Docker and Java.
44

5+
== Maven
6+
7+
=== Classical
8+
9+
. Build app: `mvn package`
10+
. Run app: `mvn exec:java`
11+
12+
=== With Docker
13+
514
. Build app: `mvn package -Pdocker`
615
. Run app: `mvn install -Pdocker`
716

17+
== Gradle
18+
19+
=== Classical
20+
21+
. Build app: `./gradlew build`
22+
. Run app: `./gradlew run`
23+
24+
=== With Docker
25+
26+
Work in progress
27+

0 commit comments

Comments
 (0)