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 18:56:07 UTC
[calcite-avatica] branch master updated (c3fc1f4 -> 0088b0c)
This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git.
from c3fc1f4 Implement Gradle-based build scripts
new be534e3 Sign release artifacts only, skip signing for -SNAPSHOT
new 3fddb12 Site: update avatica/docs/howto.md: SVN -> Git, fix wording
new 0088b0c Site: exclude "site/target" from Jekyll build
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
build.gradle.kts | 10 +++++++---
site/README.md | 20 +++++++++++++-------
site/_config.yml | 2 +-
3 files changed, 21 insertions(+), 11 deletions(-)
[calcite-avatica] 01/03: Sign release artifacts only,
skip signing for -SNAPSHOT
Posted by vl...@apache.org.
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 be534e3b446c38b3af662fe632795a0622c761ad
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Sun Nov 10 19:10:30 2019 +0300
Sign release artifacts only, skip signing for -SNAPSHOT
---
build.gradle.kts | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/build.gradle.kts b/build.gradle.kts
index 63c7ecf..2a1c9a5 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -114,6 +114,8 @@ val buildVersion = "calcite.avatica".v + releaseParams.snapshotSuffix
println("Building Apache Calcite Avatica $buildVersion")
+val isReleaseVersion = rootProject.releaseParams.release.get()
+
releaseArtifacts {
fromProject(":release")
}
@@ -247,9 +249,11 @@ allprojects {
apply(plugin = "de.thetaphi.forbiddenapis")
apply(plugin = "maven-publish")
- configure<SigningExtension> {
- // Sign all the publications
- sign(publishing.publications)
+ if (isReleaseVersion) {
+ configure<SigningExtension> {
+ // Sign all the publications
+ sign(publishing.publications)
+ }
}
if (enableSpotBugs) {
[calcite-avatica] 03/03: Site: exclude "site/target" from Jekyll
build
Posted by vl...@apache.org.
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 0088b0cbe08228084bbd1765f3af283952120777
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Sun Nov 10 21:55:15 2019 +0300
Site: exclude "site/target" from Jekyll build
It prevents generation of unwanted site/target/avatica/target directory
---
site/_config.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/_config.yml b/site/_config.yml
index 6af763a..1deecde 100644
--- a/site/_config.yml
+++ b/site/_config.yml
@@ -19,7 +19,7 @@ excerpt_separator: ""
repository: https://github.com/apache/calcite-avatica
destination: target/avatica
-exclude: [README.md,Gemfile*,add-avatica-go-docs.sh,docker-compose.yml]
+exclude: [README.md,Gemfile*,add-avatica-go-docs.sh,docker-compose.yml,target]
keep_files: [".git", ".svn", "apidocs", "testapidocs"]
collections:
[calcite-avatica] 02/03: Site: update avatica/docs/howto.md: SVN ->
Git, fix wording
Posted by vl...@apache.org.
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 3fddb1230e8ae6fb7ab6d994ed4817372692f38f
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Sun Nov 10 21:49:16 2019 +0300
Site: update avatica/docs/howto.md: SVN -> Git, fix wording
---
site/README.md | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/site/README.md b/site/README.md
index 7a9a3ce..9f88997 100644
--- a/site/README.md
+++ b/site/README.md
@@ -26,7 +26,7 @@ a sub-directory of the
You can build the site manually using your environment or use the docker compose file.
-## Manually
+## Building website on a host system
### Setup your environment
@@ -36,18 +36,19 @@ Similar to the instructions to
Site generation currently works best with ruby-2.5.1.
1. `cd site`
-2. `svn co https://svn.apache.org/repos/asf/calcite/site/avatica target/avatica`
+2. `git clone https://gitbox.apache.org/repos/asf/calcite-site.git target`.
+The site will be generated to target/avatica, so it will be ready for commit.
3. `sudo apt-get install rubygems ruby2.5-dev zlib1g-dev` (linux)
4. `sudo gem install bundler`
5. Add avatica-go content: `./add-avatica-go-docs.sh`
6. `bundle install`
-### Add javadoc
+### Build javadoc
-1. `cd avatica`
-2. `./gradlew javadocAggregate`
+1. `cd $avatica_project_directory`
+2. `./gradlew javadocAggregate # the result is placed to build/docs/javadocAggregate`
-### Running locally
+### Running website locally
Before opening a pull request, you can preview your contributions by
running from within the directory:
@@ -55,7 +56,12 @@ running from within the directory:
1. `bundle exec jekyll serve`
2. Open [http://localhost:4000/avatica/](http://localhost:4000/avatica/) (note the trailing slash)
-## Using docker
+### Building the website
+
+1. `bundle exec jekyll build`
+2. The result is produced to `target/avatica`
+
+## Building website with Docker
### Setup your environment