Created
November 5, 2014 16:30
-
-
Save xing5/0d5716717f2bc7b26515 to your computer and use it in GitHub Desktop.
Initial build.gradle for Java Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
sourceCompatibility = 1.7 | |
version = '0.1.0' | |
jar { | |
baseName = 'the-package-name' | |
manifest { | |
attributes 'Implementation-Title': 'title', | |
'Implementation-Version': version | |
} | |
} | |
task initSourceFolders { | |
sourceSets*.java.srcDirs*.each { it.mkdirs() } | |
sourceSets*.resources.srcDirs*.each { it.mkdirs() } | |
} | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
//jcenter() | |
} | |
dependencies { | |
//compile 'commons-collections:commons-collections:3.2' | |
testCompile 'junit:junit:4.+' | |
} | |
uploadArchives { | |
repositories { | |
flatDir { | |
dirs 'repos' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment