Jiayu Liu | 49b2d6b | 2022-04-06 16:49:09 +0800 | [diff] [blame] | 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, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
Jiayu Liu | 6c002b6 | 2022-05-07 00:40:03 +0800 | [diff] [blame] | 19 | pluginManagement { |
| 20 | plugins { |
Jiayu Liu | 5b15838 | 2022-05-12 00:20:37 +0800 | [diff] [blame] | 21 | kotlin("jvm") version "1.6.10" |
| 22 | // per https://github.com/cortinico/ktfmt-gradle/tags the latest version requires Gradle 7.4 which in turn |
| 23 | // requires Java 11, failing the xenial build which is still on Java 8. Here we both configure the plugin |
| 24 | // but with different version, and only enabling ktfmt configure for Java 11+, to make the legacy build happy |
| 25 | if (JavaVersion.current().isJava11Compatible) { |
| 26 | id("com.ncorti.ktfmt.gradle") version "0.8.0" |
| 27 | } else { |
| 28 | id("com.ncorti.ktfmt.gradle") version "0.5.0" |
| 29 | } |
Jiayu Liu | 6c002b6 | 2022-05-07 00:40:03 +0800 | [diff] [blame] | 30 | } |
| 31 | } |
Jiayu Liu | 49b2d6b | 2022-04-06 16:49:09 +0800 | [diff] [blame] | 32 | |
| 33 | rootProject.name = "libthrift-kotlin" |
| 34 | |
| 35 | include("cross-test-client", "cross-test-server") |
| 36 | |
| 37 | includeBuild("../java") |