Skip to content

Commit 8e55d68

Browse files
committed
readme
1 parent a0c1107 commit 8e55d68

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

jaso92559/README.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
* https://ja.stackoverflow.com/q/92559/2808[settings.gradleから依存関係を持つjarファイルを作成する方法]
2+
3+
4+
`gradle init` で multi module project を選択した場合に fat-jar を作る方法。
5+
6+
https://imperceptiblethoughts.com/shadow/introduction/[`com.github.johnrengelman.shadow` プラグイン]を、 main クラスを含むプロジェクトに設定する。
7+
8+
`./gradle shadowJar` を実行すれば、 `*-all.jar` (今回の場合は `app-all.jar`) が生成される。
9+
10+
[source]
11+
----
12+
java -jar app-all.jar
13+
----
14+
で実行可能。
15+
16+
対応コミット:
17+
https://github.com/yukihane/stackoverflow-qa/commit/a0c11079fa689

0 commit comments

Comments
 (0)