the build.gralde is only like below:
apply plugin: ‘java’ apply plugin: ‘maven’
publishJarFile {
repositories {
flatDir(dirs: file(‘jarsDerectory’))
}
}
but "gradle publishJarFile " report error like the title. i used the latest version of gradle v2.1