Skip to content

Instantly share code, notes, and snippets.

@lomin
Last active August 29, 2015 13:56
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 lomin/8999248 to your computer and use it in GitHub Desktop.
Save lomin/8999248 to your computer and use it in GitHub Desktop.
Init Java Project
apply plugin: 'idea'
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'src'
}
}
test {
java {
srcDir 'test'
}
}
}
dependencies {
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment