import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.springframework.boot.gradle.tasks.bundling.BootJar plugins { id("org.springframework.boot") version "2.3.4.RELEASE" id("io.spring.dependency-management") version "1.0.10.RELEASE" kotlin("jvm") version "1.4.10" kotlin("plugin.spring") version "1.4.10" } group = "software.aws.beer" version = "0.0.1-SNAPSHOT" java.sourceCompatibility = JavaVersion.VERSION_11 repositories { mavenCentral() jcenter() } extra["springCloudVersion"] = "Hoxton.SR8" dependencies { implementation("software.amazon.awssdk:secretsmanager:2.15.14") implementation("software.amazon.awssdk:s3:2.15.14") implementation("org.jetbrains.exposed:exposed-core:0.28.1") implementation("org.jetbrains.exposed:exposed-dao:0.28.1") implementation("org.jetbrains.exposed:exposed-jdbc:0.28.1") implementation("org.springframework.boot:spring-boot-starter-mustache") implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("org.springframework.boot:spring-boot-starter-data-jpa") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") implementation("org.jetbrains.kotlin:kotlin-reflect") implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") developmentOnly("org.springframework.boot:spring-boot-devtools") runtimeOnly("mysql:mysql-connector-java") testImplementation("org.springframework.boot:spring-boot-starter-test") { exclude(group = "org.junit.vintage", module = "junit-vintage-engine") } } dependencyManagement { imports { mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}") } } tasks.withType { useJUnitPlatform() } tasks.getByName("bootJar") { archiveFileName.set("web.jar") } tasks.withType { kotlinOptions { freeCompilerArgs = listOf("-Xjsr305=strict") jvmTarget = "11" } }