-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (49 loc) · 1.74 KB
/
build.gradle.kts
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
import java.io.FileOutputStream
plugins {
application
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
vendor.set(JvmVendorSpec.AMAZON)
}
}
application {
mainClass.set("uk.co.datumedge.binsley.BinsleyApp")
}
tasks.named<Test>("test") {
useJUnitPlatform()
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation(project(":organization"))
implementation(project(":WorkflowMetrics"))
implementation("ch.qos.logback:logback-classic:1.5.6")
implementation("software.amazon.awscdk:aws-cdk-lib:2.144.0")
implementation("software.constructs:constructs:10.3.0")
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation(platform("org.assertj:assertj-bom:3.26.0"))
testImplementation("org.assertj:assertj-core")
testImplementation(platform("software.amazon.awssdk:bom:2.25.65"))
testImplementation("software.amazon.awssdk:cognitoidentityprovider")
testImplementation("software.amazon.awssdk:iam")
testImplementation("software.amazon.awssdk:ssm")
testImplementation("software.amazon.awssdk:sso")
testImplementation("software.amazon.awssdk:ssooidc")
testImplementation("software.amazon.awssdk:sts")
testImplementation("com.fasterxml.jackson.core:jackson-databind")
}
val generateCdkBootstrap = tasks.register<Exec>("generateCdkBootstrap") {
commandLine("cdk", "bootstrap", "--show-template")
doFirst {
standardOutput = FileOutputStream(layout.buildDirectory.file("cdk-bootstrap.generated.yaml").get().asFile)
}
}
tasks.named("run") {
dependsOn(generateCdkBootstrap)
}