-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
99 lines (86 loc) · 2.22 KB
/
build.gradle
File metadata and controls
99 lines (86 loc) · 2.22 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
id 'maven-publish'
id 'com.google.cloud.tools.jib' version '3.2.0'
}
group = 'com.qticket'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/QueueTicket/common")
credentials {
username = "QueueTicket"
password = System.getenv("GITHUB_TOKEN")
}
}
}
ext {
set('springCloudVersion', "2023.0.3")
}
dependencies {
implementation 'com.qticket:common:0.0.12'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.94.Final:osx-aarch_64'
implementation 'org.springframework.kafka:spring-kafka'
implementation 'io.micrometer:micrometer-registry-prometheus'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
jib {
from {
image = "openjdk:17-jdk-slim"
platforms {
platform {
architecture = "arm64"
os = "linux"
}
// platform {
// architecture = "amd64"
// os = "linux"
// }
}
}
to {
image = "shoon95/${project.name}:latest"
}
container {
mainClass = "com.qticket.gateway.GatewayApplication"
creationTime = "USE_CURRENT_TIMESTAMP"
}
}