This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git
The following commit(s) were added to refs/heads/master by this push:
new 74ec8da Add -PskipJavadoc to skip publication of the javadocs (to
speedup publishToMavenLocal)
74ec8da is described below
commit 74ec8dae920262ce1be07efbc5f381d49bb07d1b
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Sun Nov 10 23:39:41 2019 +0300
Add -PskipJavadoc to skip publication of the javadocs (to speedup
publishToMavenLocal)
---
.travis.yml | 6 +++---
build.gradle.kts | 14 ++++++++++----
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index b95392c..75d3f17 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,13 +22,13 @@ matrix:
include:
- install: true
script:
- - ./gradlew $GRADLE_ARGS build
+ - ./gradlew $GRADLE_ARGS build javadoc
- name: Calcite/master
install:
- - ./gradlew publishToMavenLocal -Pcalcite.avatica.version=42.0
+ - ./gradlew publishToMavenLocal -PskipJavadoc
-Pcalcite.avatica.version=42.0
script:
- cd ..
- - git clone --depth 100 https://github.com/apache/calcite.git
+ - git clone --depth 1000 https://github.com/apache/calcite.git
- cd calcite
- mvn install -Davatica.version=42.0-SNAPSHOT
diff --git a/build.gradle.kts b/build.gradle.kts
index 8d7cda8..2982821 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -80,6 +80,10 @@ val skipCheckstyle by extra {
boolProp("skipCheckstyle") ?: false
}
+val skipJavadoc by extra {
+ boolProp("skipJavadoc") ?: false
+}
+
// By default use Java implementation to sign artifacts
// When useGpgCmd=true, then gpg command line tool is used for signing
val useGpgCmd by extra {
@@ -417,10 +421,12 @@ allprojects {
description = project.description
from(components["java"])
- // Eager task creation is required due to
- // https://github.com/gradle/gradle/issues/6246
- artifact(sourcesJar.get())
- artifact(javadocJar.get())
+ if (skipJavadoc) {
+ // Eager task creation is required due to
+ // https://github.com/gradle/gradle/issues/6246
+ artifact(sourcesJar.get())
+ artifact(javadocJar.get())
+ }
// Use the resolved versions in pom.xml
// Gradle might have different resolution rules, so we set
the versions