Skip to content

Instantly share code, notes, and snippets.

@patelkunal
Created March 12, 2018 06:42
Show Gist options
  • Save patelkunal/330e35b2c6c95de88b626dbd686f2440 to your computer and use it in GitHub Desktop.
Save patelkunal/330e35b2c6c95de88b626dbd686f2440 to your computer and use it in GitHub Desktop.
basic-gradle-build
plugins {
id "java"
id "application"
}
group 'org.coderearth.<GROUP_ID>'
version '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile 'ch.qos.logback:logback-classic:1.2.3'
compile 'org.slf4j:slf4j-api:1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
clean.doLast {
file('.classpath').delete()
file('.project').delete()
file('.settings').deleteDir()
file('.gradle').deleteDir()
file('logs').deleteDir()
file('out').deleteDir()
file('bin').deleteDir()
}
mainClassName = "<FULL_PACKAGE>.App"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment