Skip to content

Instantly share code, notes, and snippets.

@xing5
Created November 5, 2014 16:30
Show Gist options
  • Select an option

  • Save xing5/0d5716717f2bc7b26515 to your computer and use it in GitHub Desktop.

Select an option

Save xing5/0d5716717f2bc7b26515 to your computer and use it in GitHub Desktop.

Revisions

  1. xing5 created this gist Nov 5, 2014.
    37 changes: 37 additions & 0 deletions build.gradle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    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'
    }
    }
    }