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/12/25 15:34:40 UTC
[calcite] branch master updated: [CALCITE-2905] Publish
calcite-core-...tests.jar to Nexus
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.git
The following commit(s) were added to refs/heads/master by this push:
new 5f10de3 [CALCITE-2905] Publish calcite-core-...tests.jar to Nexus
5f10de3 is described below
commit 5f10de3cd042120d18cb5f3ea7749243d537332d
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Wed Dec 25 18:34:19 2019 +0300
[CALCITE-2905] Publish calcite-core-...tests.jar to Nexus
See https://issues.apache.org/jira/browse/CALCITE-2905?focusedCommentId=17002741&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17002741
---
core/build.gradle.kts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index ecb2342..54dc612 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -81,6 +81,17 @@ dependencies {
testRuntimeOnly("org.slf4j:slf4j-log4j12")
}
+// There are users that reuse/extend test code (e.g. Apache Felix)
+// So publish test jar to Nexus repository
+// TODO: remove when calcite-test-framework is extracted to a standalone artifact
+publishing {
+ publications {
+ named<MavenPublication>(project.name) {
+ artifact(tasks.testJar.get())
+ }
+ }
+}
+
tasks.jar {
CrLfSpec(LineEndings.LF).run {
into("codegen") {