Skip to content

Instantly share code, notes, and snippets.

@axs
Last active November 24, 2016 14:45
Show Gist options
  • Save axs/967867a84ad7cefb0d4de29d268e66c7 to your computer and use it in GitHub Desktop.
Save axs/967867a84ad7cefb0d4de29d268e66c7 to your computer and use it in GitHub Desktop.
group 'chronlogger'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.8
version = '1.0' + new Date().format("MMddHHmm")
//remove javaagent when not monitoring with kamon
applicationDefaultJvmArgs = [ "-Xmx1024M", "-Xms512M", "-server", "-XX:+UseParNewGC", "-XX:+UseConcMarkSweepGC", "-XX:+UseTLAB", "-XX:NewSize=128m", "-XX:MaxNewSize=128m", "-XX:MaxTenuringThreshold=0", "-XX:SurvivorRatio=1024", "-XX:+UseCMSInitiatingOccupancyOnly", "-XX:CMSInitiatingOccupancyFraction=60", "-XX:+DisableExplicitGC"]
task processTools(type: Copy) {
from('src/tools') {
include '**/*'
}
into 'build/tools'
}
applicationDistribution.from(processTools) {
into "tools"
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile group: 'net.openhft', name: 'chronicle-logger-logback', version: '1.1.1'
compile group: 'net.openhft', name: 'chronicle-logger-tools', version: '1.1.1'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
}
mainClassName = "application.MainLog"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment