Back to list

Gradle - Build Configuration

Lv.5599@mukitaro9 playsDec 31, 2025

Gradle build configuration for a Spring Boot application with dependency management and test configuration.

preview.java
Java
1plugins {
2 id 'java'
3 id 'org.springframework.boot' version '3.2.0'
4 id 'io.spring.dependency-management' version '1.1.4'
5}
6
7group = 'com.example'
8version = '1.0.0'
9
10java {
11 sourceCompatibility = JavaVersion.VERSION_21
12}
13
14repositories {
15 mavenCentral()
16}
17
18dependencies {
19 implementation 'org.springframework.boot:spring-boot-starter-web'
20 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
21 runtimeOnly 'org.postgresql:postgresql'
22 testImplementation 'org.springframework.boot:spring-boot-starter-test'
23}
24
25tasks.named('test') {
26 useJUnitPlatform()
27}

Custom problems are not included in rankings