What's the proper way to change the name of out.jar resulting from assembly? #5451
Unanswered
andrea-corradetti
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Typically you would do something like override def assembly = Task{
os.copy(super.assembly().path, Task.dest / "my-custom-name.jar")
PathRef(Task.dest / "my-custom-name.jar")
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The result of
foo.assembly
is the fileout/foo/assembly.dest/out.jar
.Can I set a custom name (and possibly version) for the jar file without redefining the assembly task?
I looked into the
publishLocal
task, but I don't want to fill in all the pom information at this point.The
ArtifactId
property doesn´t seem to affectfoo.assembly
.Beta Was this translation helpful? Give feedback.
All reactions