From 2a6e7c176c673977bd282194ef7c4552d044d579 Mon Sep 17 00:00:00 2001 From: hitanshu310 Date: Sun, 5 Jul 2026 15:35:46 +0530 Subject: [PATCH] Hithomelabs/HomeLabDocker#86: chore: scaffold multi-module Gradle structure --- build.gradle | 73 +++++++++++------------------------------------ gradle.properties | 2 ++ settings.gradle | 4 +++ 3 files changed, 23 insertions(+), 56 deletions(-) create mode 100644 gradle.properties create mode 100644 settings.gradle diff --git a/build.gradle b/build.gradle index 3fc8ac4..ee63164 100644 --- a/build.gradle +++ b/build.gradle @@ -1,62 +1,23 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.4.5' - id 'io.spring.dependency-management' version '1.1.7' + id 'org.springframework.boot' version '3.4.5' apply false + id 'io.spring.dependency-management' version '1.1.7' apply false } -group = 'com.hithomelabs' -version = '0.0.1-SNAPSHOT' +subprojects { + apply plugin: 'java' + apply plugin: 'io.spring.dependency-management' -java { - toolchain { - languageVersion = JavaLanguageVersion.of(17) - } + group = 'com.hithomelabs' + version = '0.0.1-SNAPSHOT' + + 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() -} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..abe1fb4 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,2 @@ +version=0.0.1-SNAPSHOT +group=com.hithomelabs diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..932528f --- /dev/null +++ b/settings.gradle @@ -0,0 +1,4 @@ +rootProject.name = 'cftunnels' +include 'common' +include 'cftunnels-service' +include 'portainer-automation'