Initial version of smartbooking generated by generator-jhipster@9.0.0-beta.0

This commit is contained in:
2025-12-10 16:41:34 +01:00
commit e4b8486f4b
376 changed files with 44072 additions and 0 deletions

20
gradle/libs.versions.toml Normal file
View File

@@ -0,0 +1,20 @@
[versions]
mapstruct = "1.6.3"
archunit-junit5 = "1.4.1"
checkstyle = "12.2.0"
jacoco = "0.8.14"
# jhipster-needle-gradle-dependency-catalog-version - JHipster will add additional versions for convention plugins heref
[libraries]
jhipster-framework = { module = "tech.jhipster:jhipster-framework", version = "9.0.0-beta.0" }
springdoc-openapi-starter-webmvc-api = { module = "org.springdoc:springdoc-openapi-starter-webmvc-api", version = "2.8.14" }
archunit-junit5-api = { module = "com.tngtech.archunit:archunit-junit5-api", version.ref = "archunit-junit5" }
archunit-junit5-engine = { module = "com.tngtech.archunit:archunit-junit5-engine", version.ref = "archunit-junit5" }
mapstruct = { module = "org.mapstruct:mapstruct", version.ref = "mapstruct" }
mapstruct-processor = { module = "org.mapstruct:mapstruct-processor", version.ref = "mapstruct" }
# jhipster-needle-gradle-dependency-catalog-libraries - JHipster will add additional libraries versions
[plugins]
gradle-git-properties = { id = "com.gorylenko.gradle-git-properties", version = "2.5.4" }
spring-boot = { id = "org.springframework.boot", version = "3.5.8" }
# jhipster-needle-gradle-dependency-catalog-plugins - JHipster will add additional plugins versions

51
gradle/liquibase.gradle Normal file
View File

@@ -0,0 +1,51 @@
configurations {
liquibaseRuntime.extendsFrom sourceSets.main.compileClasspath
}
dependencies {
implementation "org.liquibase:liquibase-core"
liquibaseRuntime "org.liquibase:liquibase-core"
// Dependency required to parse options. Refer to https://github.com/liquibase/liquibase-gradle-plugin/tree/Release_2.2.0#news.
liquibaseRuntime "info.picocli:picocli:4.7.7"
liquibaseRuntime "org.postgresql:postgresql"
liquibaseRuntime "org.liquibase.ext:liquibase-hibernate6:${liquibaseVersion}"
// jhipster-needle-gradle-dependency - JHipster will add additional dependencies here
}
project.ext.diffChangelogFile = "src/main/resources/config/liquibase/changelog/" + new Date().format("yyyyMMddHHmmss") + "_changelog.xml"
if (!project.hasProperty("runList")) {
project.ext.runList = "main"
}
liquibase {
activities {
main {
driver "org.postgresql.Driver"
url "jdbc:postgresql://localhost:5432/smartbooking"
username "smartbooking"
changelogFile "src/main/resources/config/liquibase/master.xml"
logLevel "debug"
classpath "src/main/resources/"
}
diffLog {
driver "org.postgresql.Driver"
url "jdbc:postgresql://localhost:5432/smartbooking"
username "smartbooking"
changelogFile project.ext.diffChangelogFile
referenceUrl "hibernate:spring:it.sw.pa.comune.artegna.domain?dialect=org.hibernate.dialect.PostgreSQLDialect&hibernate.physical_naming_strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy"
logLevel "debug"
classpath "$buildDir/classes/java/main"
}
}
runList = project.ext.runList
}
liquibaseDiff.dependsOn(compileJava)
liquibaseDiffChangelog.dependsOn(compileJava)
ext {
if (project.hasProperty("no-liquibase")) {
springProfiles += ",no-liquibase"
}
}

69
gradle/profile_dev.gradle Normal file
View File

@@ -0,0 +1,69 @@
dependencies {
developmentOnly "org.springframework.boot:spring-boot-devtools"
// jhipster-needle-gradle-dependency - JHipster will add additional dependencies here
}
springBoot {
buildInfo {
excludes = ['time']
}
}
bootRun {
args = ["--spring.profiles.active=${springProfiles}"]
}
task webapp(type: NpmTask) {
inputs.property('appVersion', project.version)
inputs.files("build.gradle")
.withPropertyName('build.gradle')
.withPathSensitivity(PathSensitivity.RELATIVE)
inputs.files('.postcssrc.js', 'package-lock.json', 'package.json', 'tsconfig.app.json', 'tsconfig.json', 'vite.config.mts')
.withPropertyName('vue-build')
.withPathSensitivity(PathSensitivity.RELATIVE)
inputs.dir("src/main/webapp/")
.withPropertyName("src/main/webapp/")
.withPathSensitivity(PathSensitivity.RELATIVE)
outputs.dir("build/resources/main/static/")
.withPropertyName("webapp-build-dir")
dependsOn(npmInstall)
args = ["run", "webapp:build"]
environment = [APP_VERSION: project.version]
}
processResources {
inputs.property('version', version)
inputs.property('springProfiles', springProfiles)
filesMatching("**/application.yml") {
filter {
it.replace("@project.version@", version)
}
filter {
it.replace("@spring.profiles.active@", springProfiles)
}
}
}
task integrationTest(type: Test) {
maxHeapSize = "1G"
useJUnitPlatform()
description = "Execute integration tests."
group = "verification"
include "**/*IT*", "**/*IntTest*"
testLogging {
events = ['FAILED', 'SKIPPED']
exceptionFormat = "full"
}
systemProperty('spring.profiles.active', springTestProfiles)
// uncomment if the tests reports are not generated
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
// ignoreFailures true
reports.html.required = false
}
integrationTest.dependsOn(test)
processResources.dependsOn(webapp)
bootJar.dependsOn(processResources)

View File

@@ -0,0 +1,57 @@
dependencies {
// jhipster-needle-gradle-dependency - JHipster will add additional dependencies here
}
ext {
if (project.hasProperty("api-docs")) {
springProfiles += ",api-docs"
}
}
springBoot {
buildInfo()
}
bootRun {
args = ["--spring.profiles.active=${springProfiles}"]
}
task webapp(type: NpmTask) {
dependsOn(npmInstall)
args = ["run", "webapp:prod"]
environment = [APP_VERSION: project.version]
}
processResources {
inputs.property('version', version)
inputs.property('springProfiles', springProfiles)
filesMatching("**/application.yml") {
filter {
it.replace("@project.version@", version)
}
filter {
it.replace("@spring.profiles.active@", springProfiles)
}
}
}
task integrationTest(type: Test) {
maxHeapSize = "1G"
useJUnitPlatform()
description = "Execute integration tests."
group = "verification"
include "**/*IT*", "**/*IntTest*"
testLogging {
events = ['FAILED', 'SKIPPED']
exceptionFormat = "full"
}
systemProperty('spring.profiles.active', springTestProfiles)
// uncomment if the tests reports are not generated
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
// ignoreFailures true
reports.html.required = false
}
integrationTest.dependsOn(test)
processResources.dependsOn(webapp)
bootJar.dependsOn(processResources)

81
gradle/spring-boot.gradle Normal file
View File

@@ -0,0 +1,81 @@
ext {
if (project.hasProperty("prod")) {
springProfiles = "prod"
springTestProfiles = "test,testprod"
} else {
springProfiles = "dev"
springTestProfiles = "test,testdev"
}
if (project.hasProperty("tls")) {
springProfiles += ",tls"
}
if (project.hasProperty("e2e")) {
springProfiles += ",e2e"
}
}
apply plugin: 'io.spring.dependency-management'
// jhipster-needle-gradle-apply-from - JHipster will add additional gradle scripts to be applied here
if (project.hasProperty("prod")) {
apply from: "gradle/profile_prod.gradle"
} else {
apply from: "gradle/profile_dev.gradle"
}
if (project.hasProperty("war")) {
apply from: "gradle/war.gradle"
}
defaultTasks "bootRun"
springBoot {
mainClass = "it.sw.pa.comune.artegna.SmartbookingApp"
}
test {
useJUnitPlatform()
exclude "**/*IT*", "**/*IntTest*"
testLogging {
events = ['FAILED', 'SKIPPED']
exceptionFormat = "full"
}
jvmArgs += '-Xmx512m'
systemProperty('spring.profiles.active', springTestProfiles)
// uncomment if the tests reports are not generated
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
// ignoreFailures true
reports.html.required = false
}
check.dependsOn(integrationTest)
task testReport(type: TestReport) {
destinationDirectory = file("$buildDir/reports/tests")
testResults.from(test)
}
task integrationTestReport(type: TestReport) {
destinationDirectory = file("$buildDir/reports/tests")
testResults.from(integrationTest)
}
gitProperties {
failOnNoGitDirectory = false
keys = ["git.branch", "git.commit.id.abbrev", "git.commit.id.describe"]
}
tasks.named('generateGitProperties') {
outputs.doNotCacheIf("Task is always executed") { true }
}
task cleanResources(type: Delete) {
delete "build/resources"
}
compileJava.dependsOn(processResources)
processResources.dependsOn(bootBuildInfo)

14
gradle/war.gradle Normal file
View File

@@ -0,0 +1,14 @@
apply plugin: "war"
bootWar {
webAppDirectory = file("build/resources/main/static/")
mainClass = "it.sw.pa.comune.artegna.SmartbookingApp"
includes = ["WEB-INF/**", "META-INF/**"]
}
war {
webAppDirectory = file("build/resources/main/static/")
enabled = true
archiveExtension = "war.original"
includes = ["WEB-INF/**", "META-INF/**"]
}

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
gradle/zipkin.gradle Normal file
View File

@@ -0,0 +1,4 @@
dependencies {
implementation "io.micrometer:micrometer-tracing-bridge-brave"
implementation "io.zipkin.reporter2:zipkin-reporter-brave"
}