{{/* 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 }} {{ if eq $connector.builtin true }} {{ else if $.Site.Params.IsStable }} {{ if eq $connector.sql_url nil }} {{ else }} {{ end }} {{ else }} {{ end }}
Maven dependency SQL Client
{{ template "maven-artifact" (dict "ArtifactId" $connector.maven ) }} Built-inThere is not sql jar available yet.DownloadOnly available for stable releases.
{{ else }} {{ range $connector.versions }} {{ if eq .builtin true }} {{ else if eq .nosqljar true}} {{ else if $.Site.Params.IsStable }} {{ if eq .sql_url nil}} {{ else }} {{ end }} {{ else }} {{ end }} {{ end }}
{{ $connector.name }} version Maven dependency SQL Client JAR
{{ .version }} {{ template "maven-artifact" (dict "ArtifactId" .maven ) }} Built-inThere is no sql jar available yet.DownloadOnly available for stable releases.
{{ end }} {{/* Generates an XML snippet for the maven artifact. IMPORTANT: the whitespace is relevant. Do not change without looking at the rendered documentation. */}} {{ define "maven-artifact" }}{{/* (dict "ArtifactId" .ArtifactId */}}

{{- $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 -}}
{{ end }}