plugins {
  id 'java'
  id 'com.github.johnrengelman.shadow' version '7.1.2'
}

group 'com.monoToMicro'
version '0.0.1'
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11

repositories {
  mavenCentral()
  mavenLocal()
}

dependencies {
  implementation 'com.amazonaws:aws-lambda-java-core:1.2.3'
  implementation 'com.amazonaws:aws-lambda-java-events:3.11.3'
  implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.3'

  implementation platform('software.amazon.awssdk:bom:2.17.136')
  implementation platform('com.amazonaws:aws-xray-recorder-sdk-bom:2.14.0')
  implementation 'software.amazon.awssdk:aws-crt-client:2.17.143-PREVIEW'
  implementation 'software.amazon.lambda:powertools-serialization:1.17.0'
  
  implementation 'software.amazon.awssdk:dynamodb-enhanced', {
    exclude group: 'software.amazon.awssdk', module: 'netty-nio-client'
    exclude group: 'software.amazon.awssdk', module: 'apache-client'
  }
  implementation 'org.slf4j:slf4j-api:1.7.36'
  implementation 'org.slf4j:slf4j-simple:1.7.36'
  implementation 'com.amazonaws:aws-xray-recorder-sdk-core'
  implementation 'com.amazonaws:aws-xray-recorder-sdk-aws-sdk-v2'
  implementation 'com.amazonaws:aws-xray-recorder-sdk-aws-sdk-v2-instrumentor'
}

shadowJar {
  archiveClassifier.set('')
}

build{
  finalizedBy("shadowJar")
}