Skip to content

bootRepackage's jar rewriting defeats Gradle's up-to-date checks, causing unnecessary rebuilds #1113

@toolforger

Description

@toolforger

bootRepackage overwrites build/libs/xxx.jar, keeping the original jar as build/libs/xxx.jar.original.

On the next build, Gradle will find that build/libs/xxx.jar has been changed compared to what the previous run's jar task left, so it will assume that build/libs/xxx.jar needs to be regenerated.

Possible solutions that I can see:

  1. Don't overwrite build/libs/xxx.jar, generate build/libs/xxx.boot.jar. (Please see bootRepackage should use a classifier instead of an extension #1112 for another issue that affects the naming code.)
  2. Modify Gradle's jar task so that it generates the uber jar right off the bat.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions