Added a system property 'doNotRunDatabaseTests' in the test configuration to allow conditional skipping of database tests. This helps in running tests selectively during different build scenarios.
37 lines
960 B
Groovy
37 lines
960 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.2.1'
|
|
id 'io.spring.dependency-management' version '1.1.4'
|
|
}
|
|
|
|
group 'com.alttd'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
ext {
|
|
junitVersion = '5.9.2'
|
|
}
|
|
|
|
sourceCompatibility = '17'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation group: 'javax.mail', name: 'mail', version: '1.4'
|
|
implementation 'org.springframework.boot:spring-boot-starter-logging'
|
|
implementation 'com.google.code.gson:gson:2.8.9'
|
|
implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2'
|
|
}
|
|
|
|
test {
|
|
systemProperty 'doNotRunDatabaseTests', System.getProperty('doNotRunDatabaseTests')
|
|
useJUnitPlatform()
|
|
} |