在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):danthegoodman/gradle-capsule-plugin开源软件地址(OpenSource Url):https://github.com/danthegoodman/gradle-capsule-plugin开源编程语言(OpenSource Language):Groovy 94.9%开源软件介绍(OpenSource Introduction):gradle-capsule-pluginA Gradle plugin for Capsule, the packaging and deployment tool for JVM apps.
Currently using capsule v1.0.3. Adding the PluginThis plugin requires Gradle 2.4 and above. Simply define the plugins at the top of your build script: plugins {
id "us.kirchmeier.capsule" version "1.0.2"
} Gradle 2.0 to 2.3 were last supported with plugin version 1.0.0. Quick StartThis plugin defines no tasks, but instead provides several task types for building your own tasks. FatCapsuleThe task fatCapsule(type: FatCapsule) {
applicationClass 'com.foo.HelloWorld'
} Use it like so:
Without further configuration:
MavenCapsuleThe Under the hood, it uses the maven capsule, which caches dependencies after downloading them. task mavenCapsule(type: MavenCapsule){
applicationClass 'com.foo.CoolCalculator'
} Without further configuration:
ConfigurationCapsule allows you define attributes in your capsule to onfigure system properties, pass in arguments to your application, limit compatible JVM versions and more.
You may configure these using the See also: Capsule: Manifest Attributes and Source: task myCapsule(type:FatCapsule){
applicationClass 'com.foo.FancyCalculator'
capsuleManifest {
systemProperties['log4j.configuration'] = 'log4j.xml'
args = ['--very-fancy']
minJavaVersion = '1.8.0'
}
} DocumentationMore thorough documentation is available in SupportIf you run into any issues or have an enhancement idea, please file an issue. If you have any questions, capsule or gradle related, please start a topic on the Google Group/Mailing List. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论