推移libsにはJAR
タスクとpackagedされていない場合:逆に太っているJARの代わりになるのは何ですか?
By default, jar task in gradle builds an executable jar file from your project source files. It will not contain any transitive libs that are needed for your program.
、NetbeansのはパッケージJAR
依存関係または推移LIBSを行います。脂肪よりもむしろJAR
どうすればgradleにlibsが含まれていますか? 「道」は「脂肪JAR
」にはなりませんJAR
タスクでLIBSをパッケージ化するために何が?:another問題に関連して
plugins {
id 'com.gradle.build-scan' version '1.8'
id 'java'
id 'application'
}
mainClassName = 'net.bounceme.dur.mbaas.json.Main'
buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
}
repositories {
jcenter()
}
jar {
manifest {
attributes 'Main-Class': 'net.bounceme.dur.mbaas.json.Main'
}
}
dependencies {
//compile fileTree(dir: 'libs', include: ['*.jar'])
runtime group: 'com.google.firebase', name: 'firebase-admin', version: '5.2.0'
compile fileTree(dir: 'lib', include: '*.jar')
}
http://imperceptiblethoughts.com/shadow/ – Salem
[Gradleを使用して太った瓶を作る方法](https://www.google.com/search?q=how+to + Gradle&aqs = chrome..69i57.133j0j7&sourceid = chrome&ie = UTF-8を使用して、+ a + fat + jar +を+ Gradle&oq = how + to +作成+ a + fat + jar +これは、「太っているJARの代わりになるのは何ですか?」という答えです。は、 "脂肪の瓶を作成しないでください"です。 –
このfat JARのすべてのファイル:http://paste.ubuntu.com/25048768/ ** fat JARの中に** **非fat JARが必要です。しかし、私はクラスパス上のJARも望んでいます。クラスパスだけではなく、実際には自分のディレクトリにあります。私は用語を知らないが、このように:https://docs.oracle.com/javase/tutorial/deployment/jar/downman.html – Thufir