-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
106 lines (84 loc) · 2.93 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'se.transmode.gradle:gradle-docker:1.2'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0"
classpath 'com.bmuschko:gradle-docker-plugin:3.2.1'
}
}
plugins {
id 'org.springframework.boot' version '1.5.9.RELEASE'
id "com.bmuschko.nexus" version "2.3.1"
}
apply plugin: com.bmuschko.gradle.docker.DockerRemoteApiPlugin
allprojects {
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'war'
apply plugin: "org.springframework.boot"
apply plugin: 'com.bmuschko.docker-remote-api'
apply plugin: 'com.bmuschko.docker-java-application'
// -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
// HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:8080/health || exit 1
docker {
project.group = "marcelmaatkamp"
url = "unix:///var/run/docker.sock"
javaApplication {
baseImage = 'anapsix/alpine-java:jre8'
maintainer = 'Marcel Maatkamp <[email protected]>'
}
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}
bootRepackage {
enabled = false
}
jar {
zip64 = true
}
mainClassName = 'application.Application'
compileJava {
options.fork = true
options.forkOptions.setMemoryMaximumSize("4g")
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
nexus {
sign = false
repositoryUrl = 'https://nexus/repository/maven-releases'
snapshotRepositoryUrl = 'https://nexus/repository/maven--snapshots'
}
}
dependencies {
compile "org.springframework.boot:spring-boot-devtools"
compile "org.springframework.boot:spring-boot-starter-amqp"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-data-neo4j"
compile "org.springframework.boot:spring-boot-starter-data-mongodb"
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
compile "org.projectlombok:lombok:1.16.18"
compile "com.thoughtworks.xstream:xstream:1.4.10"
compile "org.apache.commons:commons-lang3:3.7"
compile "joda-time:joda-time:2.9.9"
compile "com.google.guava:guava:23.5-jre"
compile "org.codehaus.jettison:jettison:1.3.8"
compile "org.neo4j:neo4j-ogm-bolt-driver:2.1.5"
compile "eu.bittrade.libs:steemj-core:0.4.3"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile "junit:junit:4.12"
testCompile "org.assertj:assertj-core:3.9.0"
testCompile "com.github.fakemongo:fongo:2.1.0"
}