
description = 'Sample project'

dependencies {
        compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: springBootVersion
        compile group: 'org.quartz-scheduler', name: 'quartz', version: quartzVersion
		compile group: 'clj-stacktrace' , name: 'clj-stacktrace',version: cljStackTrace
		compile group: 'org.apache.storm' , name: 'storm-core',version: stormVersion
}

task testJar(type: Jar, dependsOn: testClasses) {
  baseName = "${project.archivesBaseName}-test"
  from sourceSets.test.output
}


task fatJar(type: Jar) {
  manifest {
        attributes 'Implementation-Title': 'Gradle Jar File Example',
          'Implementation-Version': version,
          'Main-Class': 'storm.topology.ExclamationTopology'
    }
    baseName = project.name + '-all'
    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
    with jar
}

buildscript {
  repositories {
    mavenCentral()
    maven { url 'http://repo.spring.io/snapshot' }
    maven { url 'http://repo.spring.io/milestone' }
    maven { url "https://clojars.org/repo/" }
    maven { url "http://repo.maven.apache.org/maven2" }
  }
}

configurations { tests }

artifacts { tests testJar }