-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (57 loc) · 1.76 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
id 'org.cyclonedx.bom' version '1.3.0'
id 'com.bmuschko.docker-remote-api' version '6.4.0'
}
repositories {
mavenCentral()
mavenLocal()
google()
maven {
url = uri('http://repo.maven.apache.org/maven2')
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.4.1'
implementation 'org.springframework.boot:spring-boot-starter-web:2.4.1'
implementation 'org.springframework.boot:spring-boot-starter-security:2.4.1'
implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'log4j:log4j:1.2.12'
implementation 'org.mariadb.jdbc:mariadb-java-client:2.7.2'
implementation 'com.datastax.cassandra:cassandra-driver-core:3.11.0'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
runtimeOnly 'org.springframework.boot:spring-boot-devtools:2.4.1'
runtimeOnly 'com.h2database:h2:1.4.200'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.4.1'
testImplementation 'junit:junit:4.13.1'
}
group = 'com.sebas'
version = '3.2'
description = 'checkplace'
sourceCompatibility = '1.8'
//Import task types
import com.bmuschko.gradle.docker.tasks.image.*
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task buildImage(type: DockerBuildImage) {
inputDir = file('.')
images.add("docker.io/sebastianrevuelta/checkplace:${project.version}")
}
task trivyScan(type: Exec) {
dependsOn buildImage
doFirst {
commandLine "sh", "./trivy.sh", "docker.io/sebastianrevuelta/checkplace:${project.version}"
}
}