117 lines
5.0 KiB
Groovy
117 lines
5.0 KiB
Groovy
plugins {
|
|
id "java"
|
|
id "maven-publish"
|
|
id "idea"
|
|
id "eclipse"
|
|
alias(libs.plugins.gradle.git.properties)
|
|
alias(libs.plugins.spring.boot)
|
|
id "jhipster.docker-conventions"
|
|
id "jhipster.code-quality-conventions"
|
|
id "org.liquibase.gradle"
|
|
// jhipster-needle-gradle-plugins - JHipster will add additional gradle plugins here
|
|
}
|
|
|
|
group = "com.sisvietnamvn.web"
|
|
version = "1.0.4"
|
|
|
|
description = ""
|
|
|
|
java {
|
|
sourceCompatibility=21
|
|
targetCompatibility=21
|
|
}
|
|
assert System.properties["java.specification.version"] == "21" || "25"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
// Local maven repository is required for libraries built locally with maven like development jhipster-bom.
|
|
// mavenLocal()
|
|
// jhipster-needle-gradle-repositories - JHipster will add additional repositories
|
|
}
|
|
|
|
apply from: "gradle/spring-boot.gradle"
|
|
apply from: "gradle/liquibase.gradle"
|
|
// jhipster-needle-gradle-apply-from - JHipster will add additional gradle scripts to be applied here
|
|
|
|
idea {
|
|
module {
|
|
excludeDirs += files("node_modules")
|
|
}
|
|
}
|
|
|
|
// eclipse {
|
|
// sourceSets {
|
|
// main {
|
|
// java {
|
|
// srcDirs += ["build/generated/sources/annotationProcessor/java/main"]
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
dependencies {
|
|
implementation "dev.samstevens.totp:totp-spring-boot-starter:1.7.1"
|
|
implementation libs.jhipster.framework
|
|
implementation libs.mapstruct
|
|
implementation libs.springdoc.openapi.starter.webmvc.api
|
|
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:3.0.3"
|
|
implementation "com.oracle.database.jdbc:ojdbc8"
|
|
implementation "org.springframework.boot:spring-boot-jackson2"
|
|
implementation "org.springframework.boot:spring-boot-starter"
|
|
implementation "org.springframework.boot:spring-boot-starter-actuator"
|
|
implementation "org.springframework.boot:spring-boot-starter-aspectj"
|
|
implementation "org.springframework.boot:spring-boot-starter-cache"
|
|
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
|
|
implementation "org.springframework.boot:spring-boot-starter-jackson"
|
|
implementation "org.springframework.boot:spring-boot-starter-liquibase"
|
|
implementation "org.springframework.boot:spring-boot-starter-mail"
|
|
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
|
|
implementation "org.springframework.boot:spring-boot-starter-oauth2-client"
|
|
implementation "org.springframework.boot:spring-boot-starter-security"
|
|
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
|
|
implementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
|
|
implementation "org.springframework.boot:spring-boot-starter-tomcat"
|
|
implementation "org.springframework.boot:spring-boot-starter-validation"
|
|
implementation "org.springframework.boot:spring-boot-starter-web"
|
|
implementation "org.springframework.security:spring-security-data"
|
|
implementation "com.fasterxml.jackson.datatype:jackson-datatype-hppc"
|
|
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
|
|
implementation "com.zaxxer:HikariCP"
|
|
implementation "io.micrometer:micrometer-registry-prometheus"
|
|
implementation "javax.cache:cache-api"
|
|
implementation "org.apache.commons:commons-lang3"
|
|
implementation "org.ehcache:ehcache::jakarta"
|
|
implementation "org.hibernate.orm:hibernate-core"
|
|
implementation "org.hibernate.orm:hibernate-jcache"
|
|
implementation "org.hibernate.validator:hibernate-validator"
|
|
implementation "tools.jackson.datatype:jackson-datatype-hibernate7"
|
|
implementation "tools.jackson.module:jackson-module-jaxb-annotations"
|
|
testImplementation(libs.archunit.junit5.api) {
|
|
exclude group: 'org.slf4j', module: 'slf4j-api'
|
|
}
|
|
testImplementation "org.springframework.boot:spring-boot-starter-jackson-test"
|
|
testImplementation "org.springframework.boot:spring-boot-starter-security-test"
|
|
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
|
testImplementation "org.springframework.boot:spring-boot-starter-webmvc-test"
|
|
testImplementation "org.springframework.boot:spring-boot-test"
|
|
testImplementation "org.springframework.security:spring-security-test"
|
|
testImplementation "org.testcontainers:testcontainers"
|
|
testImplementation "org.testcontainers:testcontainers-jdbc"
|
|
testImplementation "org.testcontainers:testcontainers-junit-jupiter"
|
|
testRuntimeOnly(libs.archunit.junit5.engine) {
|
|
exclude group: 'org.slf4j', module: 'slf4j-api'
|
|
}
|
|
annotationProcessor libs.mapstruct.processor
|
|
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
|
|
annotationProcessor "org.glassfish.jaxb:jaxb-runtime"
|
|
annotationProcessor "org.hibernate.orm:hibernate-processor"
|
|
// jhipster-needle-gradle-dependency - JHipster will add additional dependencies here
|
|
}
|
|
|
|
tasks.register('printSourceSets') {
|
|
doLast {
|
|
println "classesDirs = ${sourceSets.main.output.classesDirs.files}"
|
|
println "runtimeClasspath = ${sourceSets.main.runtimeClasspath.files}"
|
|
}
|
|
}
|