1.0.10 is not the Snapshot version but still able to release with this version
Just by simply giving the following command:-
./gradlew release -x test -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=1.0.10 -Prelease.newVersion=1.0.4-SNAPSHOT
You can release non SnapShot version also
1.0.10 is not the Snapshot version but still able to release with this version
Just by simply giving the following command:- ./gradlew release -x test -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=1.0.10 -Prelease.newVersion=1.0.4-SNAPSHOT