I have updated Android Studio to 3.0 and now received a lot of issues.. now stoped on point with such issue:
Could not resolve all files for configuration \'
Another option is
./gradlew -x:app:lintVitalRelease assemble
To quote Gradle Docs:
Excluding tasks from execution
You can exclude a task from being executed using the -x or --exclude-task command-line option and providing the name of the task to exclude.
Reference: https://docs.gradle.org/current/userguide/command_line_interface.html#sec:excluding_tasks_from_the_command_line
Archived link: http://archive.is/TsPPJ#sec:excluding_tasks_from_the_command_line