-
Notifications
You must be signed in to change notification settings - Fork 525
Expand file tree
/
Copy pathbuild.gradle
More file actions
79 lines (64 loc) · 1.74 KB
/
build.gradle
File metadata and controls
79 lines (64 loc) · 1.74 KB
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
76
77
78
79
plugins {
id 'ru.vyarus.animalsniffer' version '1.3.0'
}
defaultTasks 'clean'
apply from: '../utils.gradle'
import org.apache.tools.ant.filters.*
apply plugin: 'java'
apply plugin: 'ru.vyarus.animalsniffer'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'checkstyle'
apply plugin: 'eclipse'
project.tasks.assemble.dependsOn project.tasks.shadowJar
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
repositories {
maven { url "https://repo.maven.apache.org/maven2" }
maven { url "https://dl.bintray.com/ibm-cloud-sdks/ibm-cloud-sdk-repo" }
}
artifacts {
archives sourcesJar
archives javadocJar
}
signing {
sign configurations.archives
}
signArchives {
onlyIf { Task task ->
def shouldExec = false
for (myArg in project.gradle.startParameter.taskRequests[0].args) {
if (myArg.toLowerCase().contains('signjars') || myArg.toLowerCase().contains('uploadarchives')) {
shouldExec = true
}
}
return shouldExec
}
}
checkstyleTest {
ignoreFailures = false
}
checkstyle {
configFile = rootProject.file('checkstyle.xml')
toolVersion '8.30'
ignoreFailures = false
}
dependencies {
compile project(':common')
testCompile project(':common').sourceSets.test.output
compile 'com.ibm.cloud:sdk-core:9.5.4'
signature 'org.codehaus.mojo.signature:java17:1.0@signature'
}
processResources {
filter ReplaceTokens, tokens: [
"pom.version": project.version,
"build.date" : getDate()
]
}
apply from: rootProject.file('.utility/bintray-properties.gradle')