jar - Gradle specify build binaries names from command line -
i need specify build binaries names command line in gradle.
like:
gradle -arg: filename.jar
i use in
jar{ archivename = "something.jar" }
and
war{ war.archivename = "something.war" }
just how pass parameter build.gradle , use string command line argument.
in build.gradle:
jar { archivename = myname }
in command line:
gradle jar -pmyname=customname.jar
Comments
Post a Comment