build.gradle
857 Bytes
plugins {
id 'java'
id 'org.springframework.boot'
id 'com.github.johnrengelman.shadow'
}
dependencies {
implementation project(':cashier-trade')
implementation project(':cashier-rtmart')
implementation 'org.springframework.cloud:spring-cloud-starter'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation libs.spring.cloud.nacos.discovery
implementation libs.spring.cloud.nacos.config
// implementation 'org.springframework.boot:spring-boot-starter-actuator'
// testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
springBoot {
mainClass = 'com.diligrp.cashier.boss.CashierServiceBootstrap'
}
tasks.bootJar {
archiveFileName = "cashier-service-${version}.jar"
destinationDirectory = file("$rootProject.buildDir/libs")
}