Itiviti / gradle-nuget-plugin

Executes NuGet from a gradle build
Apache License 2.0
22 stars 29 forks source link

The process cannot access the file 'fileContent.lock' because it is being used by another process #75

Open gigi81 opened 5 years ago

gigi81 commented 5 years ago

Trying to do the same thing as described in #18 with the following nugetSpec task:

nugetSpec {
    nuspecFile = project.file("Package.nuspec")
    nuspec {
        metadata() {
            delegate.version version
            delegate.authors project.authors
        }
    }
}

But I get this error when trying to use the above:

> Task :nugetSpec 
> Task :nugetPack FAILED 
The process cannot access the file 'D:\jenkins\workspace\mybuild\.gradle\4.10.2\fileContent\fileContent.lock' because it is being used by another process. 
FAILURE: Build failed with an exception. 
timotei commented 4 years ago

@gigi81 That's weird. Do you reliably/always get it? Seems something Gradle-related