Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "maven"
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'
cache: 'gradle'

- name: Run tests
run: ./mvnw clean test -B
run: ./gradlew test -x processTestAot

- uses: graalvm/setup-graalvm@v1
with:
distribution: 'liberica'
java-version: ${{ matrix.graalvm-version }}
cache: 'maven'
cache: 'gradle'

- name: GraalVM Compile
run: ./mvnw clean -Pnative native:compile
run: ./gradlew nativeCompile
continue-on-error: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ properties/local.properties
logs
.idea/
*.iml
.gradle
build/
!**/src/main/**/build/
!**/src/test/**/build/
19 changes: 0 additions & 19 deletions .mvn/wrapper/maven-wrapper.properties

This file was deleted.

90 changes: 90 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
plugins {
java
checkstyle
id("org.springframework.boot") version "4.0.0-RC2"
id("io.spring.dependency-management") version "1.1.7"
id("org.graalvm.buildtools.native") version "0.11.2"
}

group = "com.mpalourdio.projects"
version = "1.0.0-SNAPSHOT"
description = "Spring Boot Template"

java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}

repositories {
mavenCentral()
}

configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}

extra["springCloudVersion"] = "2025.1.0-RC1"
extra["commonTextVersion"] = "1.14.0"
extra["poiVersion"] = "4.1.2"
extra["mavenCheckstylePluginConfigLocation"] =
"https://raw.githubusercontent.com/mpalourdio/configuration/main/checkstyle.xml"
//temp fix for https://github.com/testcontainers/testcontainers-java/issues/11212
extra["testcontainers.version"] =
"2.0.2"

checkstyle {
config = resources.text.fromUri("${property("mavenCheckstylePluginConfigLocation")}")
toolVersion = "12.1.1"
}
tasks.checkstyleTest { enabled = false }

dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-restclient")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.cloud:spring-cloud-starter-config")
implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-client")

implementation("commons-codec:commons-codec")
implementation("org.apache.commons:commons-lang3")
implementation("org.apache.commons:commons-text:${property("commonTextVersion")}")
implementation("org.apache.poi:poi:${property("poiVersion")}")
implementation("org.apache.httpcomponents.client5:httpclient5")
implementation("com.google.code.gson:gson")

runtimeOnly("org.postgresql:postgresql")

annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

developmentOnly("org.springframework.boot:spring-boot-devtools")
developmentOnly("org.springframework.boot:spring-boot-properties-migrator")

testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
testImplementation("org.springframework.boot:spring-boot-starter-webflux-test")
testImplementation("org.springframework.boot:spring-boot-starter-security-test")
testImplementation("org.springframework.boot:spring-boot-testcontainers")
testImplementation("org.testcontainers:testcontainers-junit-jupiter")
testImplementation("org.testcontainers:testcontainers-postgresql")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
}
}

tasks.withType<Test> {
useJUnitPlatform()
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.gradle.configuration-cache=true

Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading