java-tutorials/gradle-modules/gradle/gradle-employee-app/build.gradle

37 lines
604 B
Groovy
Raw Normal View History

2020-04-25 01:32:20 -04:00
plugins {
id 'application'
}
apply plugin: 'application'
mainClassName = 'employee.EmployeeApp'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
2020-04-25 01:32:20 -04:00
println 'This is executed during configuration phase'
task configured {
println 'The project is configured'
}
wrapper {
2020-04-25 01:32:20 -04:00
gradleVersion = '5.3.1'
}
repositories {
mavenCentral()
2020-04-25 01:32:20 -04:00
}
dependencies {
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
2020-04-25 01:32:20 -04:00
testImplementation('junit:junit:4.13')
testRuntimeOnly('junit:junit:4.13')
2020-04-25 01:32:20 -04:00
}
2020-04-25 01:32:20 -04:00
test {
useJUnit()
}