Merge branch 'master' of github.com:KNG-Scherezade/Google-Drive-Permission-Set
[Google-Drive-Permission-Set.git] / build.gradle
blob8667b9b0ad7733d67bbf474985a3fb4a00e594fa
1 apply plugin: 'java'
2 apply plugin: 'application'
4 mainClassName = 'Main'
5 sourceCompatibility = 1.7
6 targetCompatibility = 1.7
7 version = '1.0'
9 repositories {
10     mavenCentral()
13 dependencies {
14     compile 'com.google.api-client:google-api-client:1.23.0'
15     compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
16     compile 'com.google.apis:google-api-services-drive:v3-rev110-1.23.0'
19 //create a single Jar with all dependencies https://www.mkyong.com/gradle/gradle-create-a-jar-file-with-dependencies/
20 task fatJar(type: Jar) {
21         manifest {
22         attributes 'Implementation-Title': 'Gradle Jar File Example',  
23                 'Implementation-Version': version,
24                 'Main-Class': 'Main'
25     }
26     baseName = project.name + '-all'
27     from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
28     with jar