Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@advincze
Created June 12, 2013 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save advincze/5767981 to your computer and use it in GitHub Desktop.
Save advincze/5767981 to your computer and use it in GitHub Desktop.
simple gradle
apply plugin: 'java'
apply plugin: 'idea'
repositories {
mavenCentral()
}
dependencies {
compile 'org.jsoup:jsoup:1.7.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest { attributes 'Main-Class': 'Main' }
}
task wrapper(type: Wrapper) {
gradleVersion = '1.6'
}
// initialize a project with the standard layout taking into account plugins
task createDirs << {
sourceSets*.allSource.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment