File tree Expand file tree Collapse file tree 2 files changed +60
-6
lines changed
Expand file tree Collapse file tree 2 files changed +60
-6
lines changed Original file line number Diff line number Diff line change 1+ plugins {
2+ id ' ru.vyarus.animalsniffer' version ' 1.3.0'
3+ }
4+
5+ defaultTasks ' clean'
6+
7+ apply from : ' ../utils.gradle'
18import org.apache.tools.ant.filters.*
29
3- apply plugin : ' checkstyle'
410apply plugin : ' java'
11+ apply plugin : ' ru.vyarus.animalsniffer'
12+ apply plugin : ' maven'
13+ apply plugin : ' signing'
14+ apply plugin : ' checkstyle'
15+ apply plugin : ' eclipse'
516
6- checkstyle {
7- configFile = rootProject. file(' checkstyle.xml' )
8- ignoreFailures = false
17+ project. tasks. assemble. dependsOn project. tasks. shadowJar
18+
19+ task javadocJar (type : Jar ) {
20+ classifier = ' javadoc'
21+ from javadoc
22+ }
23+
24+ task sourcesJar (type : Jar ) {
25+ classifier = ' sources'
26+ from sourceSets. main. allSource
927}
1028
1129repositories {
12- mavenCentral()
30+ maven { url = " http://repo.maven.apache.org/maven2" }
31+ }
32+
33+ artifacts {
34+ archives sourcesJar
35+ archives javadocJar
36+ }
37+
38+ signing {
39+ sign configurations. archives
40+ }
41+
42+ signArchives {
43+ onlyIf { Task task ->
44+ def shouldExec = false
45+ for (myArg in project. gradle. startParameter. taskRequests[0 ]. args) {
46+ if (myArg. toLowerCase(). contains(' signjars' ) || myArg. toLowerCase(). contains(' uploadarchives' )) {
47+ shouldExec = true
48+ }
49+ }
50+ return shouldExec
51+ }
52+ }
53+
54+ checkstyle {
55+ configFile = rootProject. file(' checkstyle.xml' )
56+ ignoreFailures = false
1357}
1458
1559dependencies {
1660 compile ' com.ibm.cloud:sdk-core:3.0.2'
61+ signature ' org.codehaus.mojo.signature:java17:1.0@signature'
1762}
1863
1964processResources {
20- filter ReplaceTokens , tokens : [" pom.version" : project. version]
65+ filter ReplaceTokens , tokens : [
66+ " pom.version" : project. version,
67+ " build.date" : getDate()
68+ ]
2169}
70+
71+ apply from : rootProject. file(' .utility/bintray-properties.gradle' )
Original file line number Diff line number Diff line change 1+ PACKAGE_NAME =com.ibm.watson:common
2+ ARTIFACT_ID =common
3+ NAME =IBM Watson Java SDK - Common
4+ DESCRIPTION =Classes common to the rest of the wrapper libraries in the Watson Java SDK
You can’t perform that action at this time.
0 commit comments