|
| 1 | +plugins { |
| 2 | + java |
| 3 | + checkstyle |
| 4 | + id("org.springframework.boot") version "4.0.0-RC2" |
| 5 | + id("io.spring.dependency-management") version "1.1.7" |
| 6 | + id("org.graalvm.buildtools.native") version "0.11.2" |
| 7 | +} |
| 8 | + |
| 9 | +group = "com.mpalourdio.projects" |
| 10 | +version = "1.0.0-SNAPSHOT" |
| 11 | +description = "Spring Boot Template" |
| 12 | + |
| 13 | +java { |
| 14 | + toolchain { |
| 15 | + languageVersion = JavaLanguageVersion.of(25) |
| 16 | + } |
| 17 | +} |
| 18 | + |
| 19 | +repositories { |
| 20 | + mavenCentral() |
| 21 | +} |
| 22 | + |
| 23 | +configurations { |
| 24 | + compileOnly { |
| 25 | + extendsFrom(configurations.annotationProcessor.get()) |
| 26 | + } |
| 27 | +} |
| 28 | + |
| 29 | +extra["springCloudVersion"] = "2025.1.0-RC1" |
| 30 | +extra["commonTextVersion"] = "1.14.0" |
| 31 | +extra["poiVersion"] = "4.1.2" |
| 32 | +extra["mavenCheckstylePluginConfigLocation"] = |
| 33 | + "https://raw.githubusercontent.com/mpalourdio/configuration/main/checkstyle.xml" |
| 34 | +//temp fix for https://github.com/testcontainers/testcontainers-java/issues/11212 |
| 35 | +extra["testcontainers.version"] = |
| 36 | + "2.0.2" |
| 37 | + |
| 38 | +checkstyle { |
| 39 | + config = resources.text.fromUri("${property("mavenCheckstylePluginConfigLocation")}") |
| 40 | + toolVersion = "12.1.1" |
| 41 | +} |
| 42 | +tasks.checkstyleTest { enabled = false } |
| 43 | + |
| 44 | +dependencies { |
| 45 | + implementation("org.springframework.boot:spring-boot-starter-web") |
| 46 | + implementation("org.springframework.boot:spring-boot-starter-restclient") |
| 47 | + implementation("org.springframework.boot:spring-boot-starter-actuator") |
| 48 | + implementation("org.springframework.boot:spring-boot-starter-thymeleaf") |
| 49 | + implementation("org.springframework.boot:spring-boot-starter-data-jpa") |
| 50 | + implementation("org.springframework.boot:spring-boot-starter-security") |
| 51 | + implementation("org.springframework.boot:spring-boot-starter-webflux") |
| 52 | + implementation("org.springframework.cloud:spring-cloud-starter-config") |
| 53 | + implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-client") |
| 54 | + |
| 55 | + implementation("commons-codec:commons-codec") |
| 56 | + implementation("org.apache.commons:commons-lang3") |
| 57 | + implementation("org.apache.commons:commons-text:${property("commonTextVersion")}") |
| 58 | + implementation("org.apache.poi:poi:${property("poiVersion")}") |
| 59 | + runtimeOnly("org.postgresql:postgresql") |
| 60 | + implementation("org.apache.httpcomponents.client5:httpclient5") |
| 61 | + implementation("com.google.code.gson:gson") |
| 62 | + |
| 63 | + annotationProcessor("org.projectlombok:lombok") |
| 64 | + annotationProcessor("org.springframework.boot:spring-boot-configuration-processor") |
| 65 | + |
| 66 | + developmentOnly("org.springframework.boot:spring-boot-devtools") |
| 67 | + developmentOnly("org.springframework.boot:spring-boot-properties-migrator") |
| 68 | + |
| 69 | + testImplementation("org.springframework.boot:spring-boot-starter-test") |
| 70 | + testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test") |
| 71 | + testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test") |
| 72 | + testImplementation("org.springframework.boot:spring-boot-starter-webflux-test") |
| 73 | + testImplementation("org.springframework.boot:spring-boot-starter-security-test") |
| 74 | + testImplementation("org.springframework.boot:spring-boot-testcontainers") |
| 75 | + testImplementation("org.testcontainers:testcontainers-junit-jupiter") |
| 76 | + testImplementation("org.testcontainers:testcontainers-postgresql") |
| 77 | + testRuntimeOnly("org.junit.platform:junit-platform-launcher") |
| 78 | +} |
| 79 | + |
| 80 | +dependencyManagement { |
| 81 | + imports { |
| 82 | + mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}") |
| 83 | + } |
| 84 | +} |
| 85 | + |
| 86 | +tasks.withType<Test> { |
| 87 | + useJUnitPlatform() |
| 88 | +} |
0 commit comments