{{/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */}}{{/* Generates the SQL download connector table. */}} {{ $name := .Get 0 }} {{ $connectors := .Site.Data.sql_connectors }} {{ $connector := index $connectors $name }}
In order to use the {{ $connector.name }} {{ $connector.category }} the following dependencies are required for both projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
{{ if eq $connector.versions nil }}Maven dependency | SQL Client | |||
---|---|---|---|---|
{{ template "maven-artifact" (dict "ArtifactId" $connector.maven ) }} | {{ if eq $connector.builtin true }}Built-in | {{ else if $.Site.Params.IsStable }} {{ if eq $connector.sql_url nil }}There is not sql jar available yet. | {{ else }}Download | {{ end }} {{ else }}Only available for stable releases. | {{ end }}
{{ $connector.name }} version | Maven dependency | SQL Client JAR | {{ range $connector.versions }}|||
---|---|---|---|---|---|
{{ .version }} | {{ template "maven-artifact" (dict "ArtifactId" .maven ) }} | {{ if eq .builtin true }}Built-in | {{ else if eq .nosqljar true}} {{ else if $.Site.Params.IsStable }} {{ if eq .sql_url nil}}There is no sql jar available yet. | {{ else }}Download | {{ end }} {{ else }}Only available for stable releases. | {{ end }}
{{- $artifacts := cond (eq (printf "%T" .ArtifactId) "string") (slice .ArtifactId) .ArtifactId -}}
{{- range $artifact := $artifacts -}}
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>{{- partial "docs/interpolate" $artifact -}}</artifactId>
<version>{{- site.Params.Version -}}</version>
</dependency>
{{- end -}}