-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
100 lines (88 loc) · 3.23 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
buildscript {
ext {
springBootVersion = '2.1.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'com.google.cloud.tools.jib' version '1.0.0'
id "org.asciidoctor.convert" version "1.5.3"
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'org.igorski'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
//dependencies {
// compile "org.springframework.boot:spring-boot-starter-data-jpa:*"
// compile "org.springframework.boot:spring-boot-starter-web:*"
// compile "org.projectlombok:lombok:*"
// compile "org.springframework.boot:spring-boot-devtools:*"
// compile "org.postgresql:postgresql:*"
// compile "com.h2database:h2:*"
// compile "org.springframework.boot:spring-boot-starter-actuator:*"
// compile "io.micrometer:micrometer-registry-prometheus:*"
// compile "org.springframework.boot:spring-boot-starter-thymeleaf:*"
// compile "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:2.3.0"
// compile "org.webjars:bootstrap:4.2.1"
// compile "org.webjars:jquery:3.3.1"
// testCompile "org.springframework.boot:spring-boot-starter-test:*"
// testCompile "org.springframework.restdocs:spring-restdocs-mockmvc:*"
// compile "org.springframework.restdocs:spring-restdocs-asciidoctor:${spring-restdocs.version}"
//
// implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect', version: '2.3.0'
// implementation group: 'org.webjars', name: 'jquery', version: '3.3.1'
// implementation group: 'org.webjars', name: 'bootstrap', version: '4.2.1'
//}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.6'
annotationProcessor 'org.projectlombok:lombok:1.18.6'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.3.RELEASE'
testCompile 'org.springframework.restdocs:spring-restdocs-mockmvc:2.0.3.RELEASE'
implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect', version: '2.3.0'
implementation group: 'org.webjars', name: 'jquery', version: '3.3.1'
implementation group: 'org.webjars', name: 'bootstrap', version: '4.2.1'
}
ext {
snippetsDir = file('build/generated-snippets')
}
test {
outputs.dir snippetsDir
}
asciidoctor {
inputs.dir snippetsDir
dependsOn test
}
jib {
from {
image = 'registry.hub.docker.com/openjdk:8-jdk-alpine'
credHelper = 'wincred'
}
to {
image = 'igorski/examples:jib'
credHelper = 'wincred'
}
container {
jvmFlags = ['-Djava.security.egd=file:/dev/./urandom', '-Duser.timezone=GMT+01', '-Xdebug']
mainClass = 'org.igorski.example.SimpleExampleApplication'
ports = ['8080']
}
}