-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jar tasks :file option could treat input string as template #617
Comments
@jgrzebyta the If you have (jar :file (str project "-" version "-standalone.jar") I think this is preferable over string templating and since you pass project and version to the Sidenote: There is also some code to determine the jar name from a pom file but it does not always work well when building uberjars. You may try to use the |
The problem occurs when the version is setup by external tool ( I fixed that issue and will send PR. |
@jgrzebyta are you using boot-semver's While it's great that you provide a patch in #618 I think this needs a bit more discussion before we can decide whether to add a feature that allows this kind of jar name string interpolation. |
Boot-semver patches the built-in tasks by first checking an internal atom before defaulting to task options for the version and project strings. I believe the correct patch would be to check the boot env instead of my atom. |
IMHO on the boot-semver side was all right since 1.7.0-snap. All things
works till pom file. Boot reads project and version from pom correctly as
well. The proof is that jar alone works fine for both release and snapshot.
The issue affects if I want to change default layout of the final jar file:
project-version.jar. Option :file makes boot that the string argiment is
taken literally. It would be fine if boot-semver makes possible to export
version ecentre if I change it using task or task options. Unfortunately
direct reading from the atom does not work: it stores only the default
value.
…On 16 Jun 2017 16:52, "Matthew Ratzke" ***@***.***> wrote:
Boot-semver patches the built-in tasks by first checking an internal atom
before defaulting to task options for the version and project strings. I
believe the correct patch would be to check the boot env instead of my atom.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#617 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGbRXNPOpjJKTufS4NgzDYyhOsX99JLSks5sEqTPgaJpZM4N8M3I>
.
|
boot.task.built-in/jar
uses the argument:file
value literally. It would be useful if the value was treated as a template. For exmaple "{project}-{version}-standalone.jar".The text was updated successfully, but these errors were encountered: