Back Home

FatJar - ShadowJar

// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'application'
mainClassName = 'Main'
 
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
    }
}
apply plugin: 'com.github.johnrengelman.shadow'
 
 
 
 
 
// In this section you declare where to find the dependencies of your project
repositories {
    // Use 'jcenter' for resolving your dependencies.
    // You can declare any Maven/Ivy/file repository here.
    jcenter()
    maven {url = "http://degtluv0836.global.umusic.ext:8081/artifactory/libs-release/" }
}
 
// In this section you declare the dependencies for your production and test code
dependencies {
    compile 'io.vertx:vertx-core:3.3.2'
    compile 'io.vertx:vertx-web:3.3.2'
    compile 'io.vertx:vertx-web-templ-handlebars:3.3.0'
    compile 'org.slf4j:slf4j-api:1.7.21'
    compile 'org.slf4j:slf4j-log4j12:1.7.5'
    compile "org.codehaus.groovy:groovy-all:2.3.11"
    compile(group: 'com.umgi.est.technicalservices', name: 'enterprise-technicalservices-commons', version: '4.0.0')
    compile 'io.searchbox:jest:1.0.1'
    compile 'com.mashape.unirest:unirest-java:1.4.9'
    testCompile 'junit:junit:4.12'
}
 
shadowJar {
    manifest {
        attributes 'Implementation-Title': 'Xpath checker',
                'Implementation-Version': '1.0',
                'Main-Class': 'Main'
    }
}

Note this needs a definition to work as well as the manifest mainClassName = 'Main'

 
gradle.txt · Last modified: 2016/12/05 05:27 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd