apply plugin: 'java'
apply plugin: 'maven'

group = 'org.gradle'
version = '1.0-SNAPSHOT'

def repoUrl = uri('repo')

jar {
    baseName = 'testproject'
    if (project.hasProperty('emptyJar')) {
        exclude '**/*'
    }
}

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: repoUrl)
        }
    }
}
