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/16 10:37:11 UTC
[calcite-avatica] branch master updated: Add -PenableMavenLocal and
-PenableGradleMetadata build options
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 1356308 Add -PenableMavenLocal and -PenableGradleMetadata build options
1356308 is described below
commit 1356308a6d31b0f4ff0f470f86a8fbf9072754ed
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Sat Nov 16 13:36:50 2019 +0300
Add -PenableMavenLocal and -PenableGradleMetadata build options
Both are disabled by default
---
build.gradle.kts | 17 +++++++++++++++++
gradle.properties | 3 +++
2 files changed, 20 insertions(+)
diff --git a/build.gradle.kts b/build.gradle.kts
index 3a3013c..5749633 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -84,6 +84,14 @@ val skipJavadoc by extra {
boolProp("skipJavadoc") ?: false
}
+val enableMavenLocal by extra {
+ boolProp("enableMavenLocal") ?: false
+}
+
+val enableGradleMetadata by extra {
+ boolProp("enableGradleMetadata") ?: 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 {
@@ -252,6 +260,9 @@ allprojects {
}
repositories {
+ if (enableMavenLocal) {
+ mavenLocal()
+ }
mavenCentral()
}
val sourceSets: SourceSetContainer by project
@@ -260,6 +271,12 @@ allprojects {
apply(plugin = "de.thetaphi.forbiddenapis")
apply(plugin = "maven-publish")
+ if (!enableGradleMetadata) {
+ tasks.withType<GenerateModuleMetadata> {
+ enabled = false
+ }
+ }
+
if (isReleaseVersion) {
configure<SigningExtension> {
// Sign all the publications
diff --git a/gradle.properties b/gradle.properties
index 5c7478d..5f9d2a3 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -27,6 +27,9 @@ calcite.avatica.version=1.16.0
# The options below configures the use of local clone (e.g. testing development versions)
# You can pass un-comment it, or pass option -PlocalReleasePlugins, or -PlocalReleasePlugins=<path>
# localReleasePlugins=../vlsi-release-plugins
+# enableMavenLocal=true
+# Gradle metadata is not well supported in the build script, so it is disabled for now
+# publishGradleMetadata=true
# Plugins
com.github.johnrengelman.shadow.version=5.1.0