I want to build JAR with self-defined version passed via command line, such as:
When I execute gradle build task like this:
gradle build -Pversion=1.
If you move version entry to gradle.properties file you can also:
version
gradle.properties
gradle clean build -Dorg.gradle.project.version=1.1