|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * License); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an AS IS BASIS, |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | + */ |
| 18 | + |
| 19 | +project.ext { |
| 20 | + flink_major = '2.1' |
| 21 | + flink_version = '2.1.3' |
| 22 | + excluded_files = [ |
| 23 | + 'main': [ |
| 24 | + // Used by DataSet API only |
| 25 | + "org/apache/beam/runners/flink/adapter/BeamFlinkDataSetAdapter.java", |
| 26 | + "org/apache/beam/runners/flink/FlinkBatchPipelineTranslator.java", |
| 27 | + "org/apache/beam/runners/flink/FlinkBatchPortablePipelineTranslator.java", |
| 28 | + "org/apache/beam/runners/flink/FlinkBatchTransformTranslators.java", |
| 29 | + "org/apache/beam/runners/flink/translation/functions/FlinkNonMergingReduceFunction.java", |
| 30 | + // Moved to org.apache.flink.runtime.state.StateBackendFactory |
| 31 | + "org/apache/beam/runners/flink/FlinkStateBackendFactory.java", |
| 32 | + ], |
| 33 | + 'test': [ |
| 34 | + // Used by DataSet API only |
| 35 | + "org/apache/beam/runners/flink/adapter/BeamFlinkDataSetAdapterTest.java", |
| 36 | + "org/apache/beam/runners/flink/batch/NonMergingGroupByKeyTest.java", |
| 37 | + "org/apache/beam/runners/flink/batch/ReshuffleTest.java", |
| 38 | + ] |
| 39 | + ] |
| 40 | +} |
| 41 | + |
| 42 | +// Load the main build script which contains all build logic. |
| 43 | +apply from: "../flink_runner.gradle" |
| 44 | + |
| 45 | +// Flink 2.1 uses at.yawk.lz4:lz4-java instead of org.lz4:lz4-java |
| 46 | +// Resolve capability conflict by preferring Flink's version |
| 47 | +configurations.all { |
| 48 | + resolutionStrategy.capabilitiesResolution.withCapability('org.lz4:lz4-java') { |
| 49 | + selectHighestVersion() |
| 50 | + } |
| 51 | +} |
0 commit comments