2023-09-06 04:44:15 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'org.springframework.boot' version '3.1.3'
|
|
|
|
id 'io.spring.dependency-management' version '1.1.3'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'inc.sdt.controlcentermanagement'
|
2023-09-12 04:57:39 +00:00
|
|
|
version = '0.0.6'
|
2023-09-06 04:44:15 +00:00
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = '17'
|
|
|
|
}
|
|
|
|
|
2023-09-08 01:17:39 +00:00
|
|
|
def codeArtifactToken = "aws codeartifact get-authorization-token --domain sdt --domain-owner 003960268191 --region ap-northeast-1 --query authorizationToken --output text".execute().text
|
|
|
|
|
2023-09-06 04:44:15 +00:00
|
|
|
repositories {
|
2023-09-08 01:17:39 +00:00
|
|
|
maven {
|
|
|
|
url 'https://sdt-003960268191.d.codeartifact.ap-northeast-1.amazonaws.com/maven/sdt-development/'
|
|
|
|
credentials {
|
|
|
|
username "aws"
|
|
|
|
password codeArtifactToken
|
|
|
|
}
|
|
|
|
// url 'http://192.168.1.232:8081/repository/maven-releases/'
|
|
|
|
// allowInsecureProtocol true
|
|
|
|
}
|
2023-09-06 04:44:15 +00:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-09-06 04:50:09 +00:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web") {
|
|
|
|
exclude group: "org.springframework.boot", module: "spring-boot-starter-tomcat"
|
|
|
|
}
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-undertow")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
|
2023-09-08 01:17:39 +00:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-amqp")
|
2023-09-06 04:50:09 +00:00
|
|
|
testImplementation ("org.springframework.boot:spring-boot-starter-test")
|
2023-09-06 04:44:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('test') {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|