We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c1107 commit 8e55d68Copy full SHA for 8e55d68
jaso92559/README.adoc
@@ -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