Skip to content

Instantly share code, notes, and snippets.

Created December 9, 2013 09:48
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 anonymous/7869815 to your computer and use it in GitHub Desktop.
Save anonymous/7869815 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.5
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
project(':u'){
task uT(type: Test, dependsOn: testClasses){
testClassesDir file("$rootProject.buildDir/classes/test")
classpath = files("$rootProject.buildDir/classes/test")
include "org/gradle/PersonTest.class"
testResultsDir file("$rootProject.buildDir/results/u")
binResultsDir file("$rootProject.buildDir/bin/u")
testReportDir file("$rootProject.buildDir/reports/u")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment