Skip to content

Commit b5fe280

Browse files
committed
build: Use cohesive name for full JARs with dependencies
1 parent eaa205d commit b5fe280

File tree

13 files changed

+27
-6
lines changed

13 files changed

+27
-6
lines changed

assistant/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task javadocJar(type: Jar) {
1820
classifier = 'javadoc'
1921
from javadoc

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,21 @@ task signJars(type: Copy) {
6060
allprojects {
6161
apply plugin: 'java' // *Compatibility has no effect before the 'java' plug-in is applied
6262
apply plugin: 'jacoco'
63+
apply plugin: 'com.github.johnrengelman.shadow'
6364

6465
sourceCompatibility = JavaVersion.VERSION_1_7
6566
targetCompatibility = JavaVersion.VERSION_1_7
6667

6768
repositories {
6869
maven { url = "http://repo.maven.apache.org/maven2" }
6970
}
71+
72+
shadowJar {
73+
classifier = 'jar-with-dependencies'
74+
}
7075
}
7176

7277
subprojects {
73-
7478
dependencies {
7579
testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.11.0'
7680
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'

compare-comply/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task javadocJar(type: Jar) {
1820
classifier = 'javadoc'
1921
from javadoc

discovery/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task sourcesJar(type: Jar) {
1820
classifier = 'sources'
1921
from sourceSets.main.allSource

ibm-watson/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616
apply plugin: 'maven-publish'
17-
apply plugin: 'com.github.johnrengelman.shadow'
1817

1918
project.tasks.assemble.dependsOn project.tasks.shadowJar
2019

21-
shadowJar {
22-
classifier = 'jar-with-dependencies'
23-
}
24-
2520
task sourcesJar(type: Jar) {
2621
classifier = 'sources'
2722
from sourceSets.main.allSource

language-translator/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task sourcesJar(type: Jar) {
1820
classifier = 'sources'
1921
from sourceSets.main.allSource

natural-language-classifier/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task sourcesJar(type: Jar) {
1820
classifier = 'sources'
1921
from sourceSets.main.allSource

natural-language-understanding/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task sourcesJar(type: Jar) {
1820
classifier = 'sources'
1921
from sourceSets.main.allSource

personality-insights/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task sourcesJar(type: Jar) {
1820
classifier = 'sources'
1921
from sourceSets.main.allSource

speech-to-text/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ apply plugin: 'signing'
1414
apply plugin: 'checkstyle'
1515
apply plugin: 'eclipse'
1616

17+
project.tasks.assemble.dependsOn project.tasks.shadowJar
18+
1719
task sourcesJar(type: Jar) {
1820
classifier = 'sources'
1921
from sourceSets.main.allSource

0 commit comments

Comments
 (0)