-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (62 loc) · 2.01 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
68
69
70
plugins {
id 'java-library'
}
repositories {
mavenCentral()
}
dependencies {
api(
// For getting the Cognito UserPool Group Description, reading YAML, and accessing SSM
libs.softwareAmazonAwssdk.cognitoidentityprovider,
libs.comFasterxmlJacksonDataformat.jacksonDataformatYaml,
libs.softwareAmazonAwssdk.ssm,
// For SAML generation, from Keycloak
libs.orgKecloak.keycloakSamlCore,
libs.orgKecloak.keycloakServices,
libs.orgBouncycastle.bcprovJdk18on,
libs.orgBouncycastle.bcpkixJdk18on,
// For the AWS CDK
libs.softwareAmazonAwscdk.awsCdkLib,
libs.softwareConstructs.constructs
)
implementation(
libs.comAmazonaws.awsLambdaJavaCore,
libs.comAmazonaws.awsLambdaJavaEvents,
libs.orgApacheLoggingLog4j.log4jCore,
libs.orgApacheLoggingLog4j.log4jApi,
libs.orgJetbrains.annotations
)
runtimeOnly libs.comAmazonaws.awsLambdaJavaLog4j2
testImplementation(
libs.orgJunitJupiter.junitJupiter,
libs.orgJunitJupiter.junitJupiterApi,
libs.orgJunitJupiter.junitJupiterParams,
libs.orgMockito.mockitoCore
)
testRuntimeOnly libs.orgJunitPlatform.junitPlatformLauncher
}
test {
jvmArgs "-Xshare:off"
useJUnitPlatform()
}
// Task for building the zip file for upload
tasks.register('buildZip', Zip) {
// Using the Zip API from gradle to build a zip file of all the dependencies
// Link: https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Zip.html
// set the base name of the zip file
archiveBaseName = "customIdp"
from compileJava
from processResources
into('lib') {
from configurations.runtimeClasspath
}
}
tasks.register('awscdk', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = "gov.nj.innovation.customAwsIdp.awscdk.AwsIdpCdkApp"
}
build.dependsOn buildZip
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}