You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vl...@apache.org on 2019/11/10 20:43:33 UTC
[calcite-avatica] 01/01: Add -PskipJavadoc to skip publication of
the javadocs (to speedup publishToMavenLocal)
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
commit 1ae4cf520cebaa0936fac803dc7526393ecd7a64
Author: Vladimir Sitnikov <si...@gmail.com>
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..0719b30 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