-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
127 lines (106 loc) · 2.88 KB
/
Copy pathbuild.gradle
File metadata and controls
127 lines (106 loc) · 2.88 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
plugins {
id 'org.springframework.boot' version '2.7.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.vaadin' version '23.1.3'
id 'java'
id 'checkstyle'
id 'com.google.cloud.tools.jib' version '3.2.1'
}
defaultTasks("clean", "build")
group = 'com.github.ProfSchmergmann'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
maven { setUrl("https://maven.vaadin.com/vaadin-addons") }
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
ext {
set('vaadinVersion', "23.1.2")
}
dependencies {
// Spring
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
compileOnly 'org.springframework.boot:spring-boot-devtools'
// Vaadin
implementation 'com.vaadin:vaadin-spring-boot-starter'
// SQLite
implementation 'org.xerial:sqlite-jdbc'
// Checkstyle
implementation 'com.puppycrawl.tools:checkstyle:10.3.2'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Testing (JUnit)
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
implementation 'org.springframework.security:spring-security-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
dependencyManagement {
imports {
mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
vaadin {
nodeAutoUpdate = true
nodeVersion = 'v18.3.0'
optimizeBundle = true
pnpmEnable = true
productionMode = true
runNpmInstall = true
}
checkstyle {
toolVersion '10.3.1'
configFile file ("config/checkstyle/checkstyle.xml")
ignoreFailures = true
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
jar {
manifest {
attributes(
'Main-Class': 'com.github.ProfSchmergmann.TournamentWebApplication.TournamentWebApplication'
)
}
}
tasks.named("bootJar") {
archiveBaseName.set('TournamentWebApplication')
archiveClassifier.set('BETA_')
archiveVersion.set('0.1')
}
jib {
from {
image = 'amazoncoretto:17.0.4'
}
to {
// image = 'localhost:5000/my-image/built-with-jib'
image = 'my-image/built-with-jib'
// credHelper = 'osxkeychain'
tags = ['tag2', 'latest']
}
container {
mainClass = 'com.github.ProfSchmergmann.TournamentWebApplication.TournamentWebApplication'
ports = ['1000']
labels = [version:'BETA_0.1']
format = 'OCI'
}
}