java-tutorials/gradle-modules/gradle/gradle-dependency-management/build.gradle

35 lines
748 B
Groovy
Raw Normal View History

2020-09-27 12:37:50 -04:00
plugins {
id 'java'
2020-10-09 06:41:53 -04:00
id 'org.springframework.boot' version '2.3.4.RELEASE'
2020-09-27 12:37:50 -04:00
}
ext {
springBootVersion = '2.3.4.RELEASE'
lombokVersion = '1.18.14'
}
2020-09-27 12:37:50 -04:00
group = 'com.gradle'
version = '1.0.0'
sourceCompatibility = '14'
repositories {
mavenCentral()
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter:${springBootVersion}"
2020-10-09 06:41:53 -04:00
compileOnly "org.projectlombok:lombok:${lombokVersion}"
2020-10-09 06:41:53 -04:00
runtimeOnly files('libs/sampleOne.jar', 'libs/sampleTwo.jar')
runtimeOnly fileTree("libs") { include "*.jar" }
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
2020-09-27 12:37:50 -04:00
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
2020-09-27 12:37:50 -04:00
}
test {
useJUnitPlatform()
}