So addArtifact() was removed in milestone 9, and one of the plugins I use (oneJar) has some code like this:
project.configurations.archives.addArtifact(
[
getClassifier: { -> "standalone" },
getDate: {-> date },
getExtension: {-> "jar" },
getType: {-> "jar" },
getFile: {-> jarFile },
getName: {-> name }
] as PublishArtifact
)
So now the oneJar plugin doesn’t work with the lastest version of Gradle, what can I replace the code above with?
Cheers, Ben