Source

clojuresque / build.gradle

The default branch has multiple heads

apply {
    plugin 'java'
    plugin 'groovy'
    plugin 'maven'
}

group = 'clojuresque'
version = '1.4.0-SNAPSHOT'

configurations {
    clojarsDeployerJars {
        visible = false
        description = 'Private configuration to hold ssh wagon dependencies'
    }
}

repositories {
    flatDir name: 'gradle', dirs: new File(System.getenv('GRADLE_HOME') + '/lib')
    flatDir name: 'plugins', dirs: new File(System.getenv('GRADLE_HOME') + '/lib/plugins')
    mavenCentral()
}

dependencies {
    groovy 'org.clojure:clojure:1.0.0'

    groovy name: 'groovy-all', version: '1.7.1'
    groovy name: 'gradle-core', version: '0.9-preview-1'
    groovy name: 'gradle-plugins', version: '0.9-preview-1'
    groovy name: 'asm-all', version: '3.2'
    groovy name: 'slf4j-api', version:'1.5.10'
    groovy name: 'logback-core', version:'0.9.18'
    groovy name: 'logback-classic', version:'0.9.18'
    groovy name: 'ant', version:'1.8.0'
    groovy name: 'ivy', version:'2.1.0'
}

File dummyRepo = new File(project.buildDir, 'deploy')

uploadArchives {
    repositories.mavenDeployer {
        name = 'dummyClojarsLocalDeployer'
        description  = 'Dummy deployer to trick gradle into pom generation'
        repository(url: 'file://' + dummyRepo.path)
    }
}

uploadArchives.doLast {
    fileTree(dir: dummyRepo, includes: ['**/*.pom']).each {
        String name = it.path
        String basename = name.substring(0, name.length() - 4)
        String newname = basename + '.xml'

        project.ant.move(file: it, tofile: project.file(newname))
    }

    Map args = [
        executable:  '/usr/bin/scp',
        failOnError: true
    ]

    project.ant.exec(args) {
        fileTree(dummyRepo).each { arg value: it }
        arg value: 'clojars@clojars.org:'
    }
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.