-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
76 lines (61 loc) · 1.51 KB
/
build.gradle
File metadata and controls
76 lines (61 loc) · 1.51 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.1'
}
group 'app'
version '1.0-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
application {
mainClassName = 'AutoCodeApplication'
}
repositories {
mavenCentral()
}
ext {
junitVersion = '5.10.0'
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
implementation 'software.amazon.awscdk:aws-cdk-lib:2.93.0'
implementation 'software.constructs:constructs:10.3.0'
implementation 'software.amazon.awssdk:rds:2.21.20'
implementation 'software.amazon.awssdk:regions:2.21.20'
implementation 'software.amazon.awssdk:ssm:2.26.19'
implementation 'software.amazon.awssdk:elasticache:2.26.20'
implementation 'software.amazon.awssdk:eks:2.26.20'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
shadowJar {
archiveBaseName.set('app')
archiveClassifier.set('')
archiveVersion.set('1.0-SNAPSHOT')
manifest {
attributes 'Main-Class': 'AutoCodeApplication'
}
}
tasks.named('jar') {
enabled = false
}
tasks.named('distZip') {
dependsOn tasks.named('shadowJar')
}
tasks.named('distTar') {
dependsOn tasks.named('shadowJar')
}
tasks.named('startScripts') {
dependsOn tasks.named('shadowJar')
}
build {
dependsOn tasks.named('shadowJar')
}