liquibase / liquibase-gradle-plugin

A Gradle plugin for Liquibase
Other
200 stars 59 forks source link

gradle clean task error - Unable to delete file IOException in Windows 7 + Java 1.8 #14

Closed manojskumar closed 7 years ago

manojskumar commented 8 years ago

Facing issue with liquibase plugin enabled in a multi project gradle clean task - which disappears when I dont use this 1.2.1 or 1.2.0 of the plugin

Find below the stacktrace for the error:

`` C:\ccviews\repos\api_starter_parent (master) λ gradle clean build --stacktrace

Environment is set to 'local' << env: local :clean :features:clean :modules:clean :features:feature-caching:clean :features:feature-database:clean FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 5.794 secs ``

stevesaliman commented 8 years ago

I can't think of an explanation for this one.

The Liquibase plugin doesn't do anything with the clean task. The file that Gradle can't delete appears to be the final artifact of your module, and the Liquibase plugin should not be any part of your project's jar.

Usually when a file can't be deleted on a windows system it is either because the file is in use. I'd try to make sure no java processes are running and no file explorer is showing the build directory before running Gradle clean.