Home | History | Annotate | Download | only in protobuf
      1 apply plugin: 'java'
      2 
      3 configurations {
      4     micro
      5     nano
      6 }
      7 
      8 sourceSets {
      9     micro {
     10         java {
     11             srcDirs = ['java/src/main/java/com/google/protobuf/micro']
     12         }
     13     }
     14 
     15     nano {
     16         java {
     17             srcDirs = ['java/src/main/java/com/google/protobuf/nano']
     18         }
     19     }
     20 }
     21 
     22 jar {
     23     from sourceSets.nano.output, sourceSets.micro.output
     24     baseName "libprotobuf"
     25     appendix "java"
     26     version "2.3"
     27     classifier "micronano"
     28 }
     29 
     30 task nanoJar(type: Jar) {
     31     from sourceSets.nano.output
     32     dependsOn nanoClasses
     33     baseName "libprotobuf"
     34     appendix "java"
     35     version "2.3"
     36     classifier "nano"
     37 }
     38 
     39 task microJar(type: Jar) {
     40     from sourceSets.micro.output
     41     dependsOn microClasses
     42     baseName "libprotobuf"
     43     appendix "java"
     44     version "2.3"
     45     classifier "micro"
     46 }
     47 
     48 artifacts {
     49     micro microJar
     50     nano nanoJar
     51 }