I am building my project with gradle, with the following build.gradle file:
project('a'){
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
buildDir = 'build'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.7'
}
}
When I input the gradle build
command, I want gradle to execute a task after the build.
I found a mustRunAfter
on the Internet, and I have tried a variety of ways but failed.
Please tell me if you know how.