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

18
buildSrc/build.gradle Normal file
View File

@@ -0,0 +1,18 @@
plugins {
id 'groovy-gradle-plugin'
}
repositories {
gradlePluginPortal()
}
dependencies {
implementation libs.jib.plugin
implementation libs.modernizer.plugin
implementation libs.nohttp.plugin
implementation libs.sonarqube.plugin
implementation libs.spotless.plugin
implementation libs.node.gradle
// jhipster-needle-gradle-dependency - JHipster will add additional dependencies for convention plugins here
// jhipster-needle-gradle-build-src-dependency - Deprecated: JHipster will add additional dependencies for convention plugins here
}

View File

@@ -0,0 +1,15 @@
[versions]
# jhipster-needle-gradle-dependency-catalog-version - JHipster will add additional versions for convention plugins heref
# jhipster-needle-gradle-build-src-dependency-catalog-version - Deprecated: JHipster will add additional versions for convention plugins here
[libraries]
jib-plugin = { module = "com.google.cloud.tools:jib-gradle-plugin", version = "3.5.1" }
modernizer-plugin = { module = "com.github.andygoossens:gradle-modernizer-plugin", version = "1.12.0" }
nohttp-plugin = { module = "io.spring.nohttp:nohttp-gradle", version = "0.0.11" }
sonarqube-plugin = { module = "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin", version = "7.2.0.6526" }
spotless-plugin = { module = "com.diffplug.spotless:spotless-plugin-gradle", version = "8.1.0" }
node-gradle = { module = "com.github.node-gradle:gradle-node-plugin", version = "7.1.0" }
# jhipster-needle-gradle-dependency-catalog-libraries - JHipster will add additional libraries versions
[plugins]
# jhipster-needle-gradle-dependency-catalog-plugins - JHipster will add additional plugins versions

View File

@@ -0,0 +1,63 @@
plugins {
id "jacoco"
id "org.sonarqube"
id "com.diffplug.spotless"
id "com.github.andygoossens.gradle-modernizer-plugin"
id "io.spring.nohttp"
}
jacoco {
toolVersion = "${libs.versions.jacoco.get()}"
}
jacocoTestReport {
executionData(tasks.withType(Test))
classDirectories.from = files(sourceSets.main.output.classesDirs)
sourceDirectories.from = files(sourceSets.main.java.srcDirs)
reports {
xml.required = true
}
}
file("sonar-project.properties").withReader {
Properties sonarProperties = new Properties()
sonarProperties.load(it)
sonarProperties.each { key, value ->
sonarqube {
properties {
property(key, value)
}
}
}
}
spotless {
java {
target = 'src/*/java/**/*.java'
// removeUnusedImports()
}
}
modernizer {
failOnViolations = true
includeTestClasses = true
}
checkstyle {
toolVersion = "${libs.versions.checkstyle.get()}"
configFile = file("checkstyle.xml")
checkstyleTest.enabled = false
}
nohttp {
source.include("build.gradle", "README.md")
}
// workaround for https://github.com/checkstyle/checkstyle/issues/14123
configurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
}

View File

@@ -0,0 +1,33 @@
plugins {
id "com.google.cloud.tools.jib"
}
jib {
configurationName = "productionRuntimeClasspath"
from {
image = "eclipse-temurin:17-jre-focal"
platforms {
platform {
architecture = "${findProperty('jibArchitecture') ?: 'amd64'}"
os = "linux"
}
}
}
to {
image = "smartbooking:latest"
}
container {
entrypoint = ["bash", "-c", "/entrypoint.sh"]
ports = ["8080"]
environment = [
SPRING_OUTPUT_ANSI_ENABLED: "ALWAYS",
JHIPSTER_SLEEP: "0"
]
creationTime = "USE_CURRENT_TIMESTAMP"
user = 1000
}
extraDirectories {
paths = file("src/main/docker/jib")
permissions = ["/entrypoint.sh": "755"]
}
}

View File

@@ -0,0 +1,54 @@
plugins {
id "com.github.node-gradle.node"
}
if (project.hasProperty("nodeInstall")) {
node {
version = "24.11.1"
npmVersion = "11.6.4"
download = true
}
// Copy local node and npm to a fixed location for npmw
def deleteOldNpm = tasks.register("deleteOldNpm", Delete) {
delete('build/node/lib/node_modules/npm')
}
def fixedNode = tasks.register("fixedNode", Copy) {
from(nodeSetup)
into('build/node')
finalizedBy(deleteOldNpm)
}
tasks.named("nodeSetup").configure { finalizedBy(fixedNode) }
def fixedNpm = tasks.register("fixedNpm", Copy) {
from(npmSetup)
into('build/node')
}
tasks.named("npmSetup").configure { finalizedBy(fixedNpm) }
}
task webapp_test(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/test-results/jest/")
.withPropertyName("jest-result-dir")
outputs.file("build/test-results/TESTS-results-jest.xml")
.withPropertyName("jest-result")
outputs.file("build/test-results/clover.xml")
.withPropertyName("clover-result")
dependsOn(npmInstall, compileTestJava)
args = ["run", "webapp:test"]
}
test.dependsOn(webapp_test)