0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Gradle】shadowJarに任意の名前をつけたかったお話

0
Last updated at Posted at 2020-09-06

shadowJarとはなんぞやという方はご自身で調べて下さい(有名なプラグインなのでご存じの方も多いと思います)

名前をつける

今回はこちらの記事を参照しました。
gradle - How to change name of jar created using shadowjar - Stack Overflow

build.gradle
...

shadowJar {
   //ここにshadowJarの設定をする
}

...

まずこれ。
んでshadowJarの名前はarchive***Name(***には空文字を含む任意の文字列)で指定できるらしい。
というわけでやってみる。

...

shadowJar {
   //補完でなんか出てきた
   archiveBaseName = "hoge"

...

んでgradle build...っと。

./build/lib/
hoge.jar
hoge-all.jar

おー。


これarchive***Nameの違いがよく分かっていない([無し], Base, Fileがあった)ので、また追記するかも知れません。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?