-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
75 lines (66 loc) · 2 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
plugins {
id 'codenarc'
id 'com.gradle.plugin-publish' version '0.9.9'
id 'groovy'
id 'java-gradle-plugin'
id 'maven-publish'
}
version = '1.1.0'
group = 'ru.kinca.gradle'
repositories {
mavenCentral()
}
apply from: 'testing.gradle'
codenarcMain {
configFile = file('config/codenarc/main.groovy')
}
String pluginId = 'ru.kinca.google-drive-uploader'
gradlePlugin {
plugins {
googleDriveUploader {
id = pluginId
implementationClass = 'ru.kinca.gradle.googledrive.GoogleDriveUploaderPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/valnaumov/gradle-google-drive-plugin'
vcsUrl = '[email protected]:valnaumov/gradle-google-drive-plugin.git'
plugins {
googleDriveUploader {
id = pluginId
displayName = 'Uploads files to Google Drive'
description = 'A plugin that lets you upload/backup files to Google Drive'
tags = ['google', 'drive', 'googleDrive', 'backup']
}
}
}
tasks.withType(GroovyCompile) {
groovyOptions.optimizationOptions.indy = true
}
compileGroovy {
groovyOptions.configurationScript = file('config/compiler-customizer.groovy')
}
wrapper {
gradleVersion = '4.9'
}
configurations.all {
exclude group: 'com.google.guava', module:'guava-jdk5'
}
dependencies {
def spockDependency = dependencies.create('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
compile localGroovy()
compile gradleApi()
compile 'com.google.apis:google-api-services-drive:v3-rev127-1.24.1'
compile 'com.google.api-client:google-api-client:1.25.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.25.0'
testCompile spockDependency
testRuntime 'cglib:cglib-nodep:3.2.5'
testRuntime 'org.objenesis:objenesis:1.3'
integrationTestCompile spockDependency
functionalTestCompile spockDependency
functionalTestCompile gradleTestKit()
functionalTestCompile 'commons-io:commons-io:2.6'
}