Skip to content

Cant ./gradlew installDist if install folder is not empty #659

@TobiasNx

Description

@TobiasNx

Until the integration of fix ./gradlew installDist overwrote the existing installed distribution, now it runs into an error:

$ ./gradlew installDist

> Configure project :
Working copy has modifications. Will not look for tags
No SCM tag found. Making a snapshot build
Feature branch found
Version is feature-657-rdf-marker-configurator-SNAPSHOT

> Task :metafacture-runner:installDist FAILED
[Incubating] Problems report is available at: file:///home/tobias/git/metafacture-core/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':metafacture-runner:installDist'.
> The specified installation directory '/home/tobias/git/metafacture-core/metafacture-runner/build/install/metafacture-core' is neither empty nor does it contain an installation for 'metafacture-runner'.
  If you really want to install to this directory, delete it and run the install task again.
  Alternatively, choose a different installation directory.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.11.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1s
89 actionable tasks: 1 executed, 88 up-to-date

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Selected

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions