Skip to content

Instantly share code, notes, and snippets.

@saltnlight5
Created October 31, 2012 14:01
Show Gist options
  • Save saltnlight5/3987181 to your computer and use it in GitHub Desktop.
Save saltnlight5/3987181 to your computer and use it in GitHub Desktop.
build.gradle
// Gragle build script for a Java application
apply plugin: 'java'
repositories { mavenCentral() }
dependencies {
testCompile(
//compile(fileTree(dir: gradle.gradleHomeDir, include: 'lib/**/*.jar')),
'org.hamcrest:hamcrest-library:1.3',
'junit:junit:4.11-beta-1'
)
compile(
'org.slf4j:slf4j-api:1.7.1',
'commons-lang:commons-lang:2.6',
'commons-io:commons-io:2.4'
)
runtime(
'org.slf4j:slf4j-log4j12:1.7.1'
)
}
apply plugin: 'application'
mainClassName = 'deng.ServiceRunner'
apply plugin: 'eclipse'
eclipse.classpath.defaultOutputDir = new File(buildDir, 'eclipse-output')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment