Hithomelabs/HomeLabDocker#86: chore: scaffold multi-module Gradle structure
This commit is contained in:
parent
32083f6ceb
commit
2a6e7c176c
73
build.gradle
73
build.gradle
@ -1,62 +1,23 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'org.springframework.boot' version '3.4.5'
|
id 'org.springframework.boot' version '3.4.5' apply false
|
||||||
id 'io.spring.dependency-management' version '1.1.7'
|
id 'io.spring.dependency-management' version '1.1.7' apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.hithomelabs'
|
subprojects {
|
||||||
version = '0.0.1-SNAPSHOT'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'io.spring.dependency-management'
|
||||||
|
|
||||||
java {
|
group = 'com.hithomelabs'
|
||||||
toolchain {
|
version = '0.0.1-SNAPSHOT'
|
||||||
languageVersion = JavaLanguageVersion.of(17)
|
|
||||||
}
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(17)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
|
||||||
systemProperty 'spring.profiles.active', 'ci'
|
|
||||||
useJUnitPlatform {
|
|
||||||
excludeTags 'integration'
|
|
||||||
}
|
|
||||||
testLogging {
|
|
||||||
events "passed", "skipped", "failed", "standardOut", "standardError"
|
|
||||||
exceptionFormat "full" // shows full stack trace
|
|
||||||
showStandardStreams = true // shows println/log output
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register('integrationTestOnly', Test) {
|
|
||||||
useJUnitPlatform {
|
|
||||||
includeTags 'integration'
|
|
||||||
}
|
|
||||||
description = 'Runs only integration tests tagged with @Tag("integration")'
|
|
||||||
group = 'verification'
|
|
||||||
testLogging {
|
|
||||||
events "passed", "skipped", "failed"
|
|
||||||
exceptionFormat "full"
|
|
||||||
showStandardStreams = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.5'
|
|
||||||
implementation group: 'org.springframework.boot', name:'spring-boot-starter-oauth2-client', version: '3.5.5'
|
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
||||||
compileOnly 'org.projectlombok:lombok:1.18.30'
|
|
||||||
annotationProcessor 'org.projectlombok:lombok:1.18.30'
|
|
||||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
||||||
testImplementation 'org.springframework.security:spring-security-test'
|
|
||||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
||||||
runtimeOnly 'org.postgresql:postgresql'
|
|
||||||
implementation 'org.hibernate.validator:hibernate-validator'
|
|
||||||
runtimeOnly 'com.h2database:h2'
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named('test') {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
2
gradle.properties
Normal file
2
gradle.properties
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
version=0.0.1-SNAPSHOT
|
||||||
|
group=com.hithomelabs
|
||||||
4
settings.gradle
Normal file
4
settings.gradle
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
rootProject.name = 'cftunnels'
|
||||||
|
include 'common'
|
||||||
|
include 'cftunnels-service'
|
||||||
|
include 'portainer-automation'
|
||||||
Loading…
Reference in New Issue
Block a user