Skip to content

Instantly share code, notes, and snippets.

@madhur
Created April 1, 2015 02:12
Show Gist options
  • Select an option

  • Save madhur/e50c535883dcb4daad1b to your computer and use it in GitHub Desktop.

Select an option

Save madhur/e50c535883dcb4daad1b to your computer and use it in GitHub Desktop.
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = 1.0
// tag::repositories[]
repositories {
mavenLocal()
mavenCentral()
}
// end::repositories[]
mainClassName = "com.akosha.fullcontact.MobileChatBroadcastConsumerInitiator"
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.akosha.fullcontact.MobileChatBroadcastConsumerInitiator'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'res'
}
}
}
dependencies {
compile 'com.rabbitmq:amqp-client:2.3.1'
compile 'org.apache.logging.log4j:log4j-core:2.2'
compile 'log4j:log4j:1.2.17'
compile 'org.json:json:20140107'
compile 'javax.mail:mail:1.4.7'
compile 'com.pubnub:pubnub:3.7.2'
}
// end::jar[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment