blob: 2eff4029446f2cfb11eadb75ed63fc6f9350e725 [file] [log] [blame]
Jiayu Liu49b2d6b2022-04-06 16:49:09 +08001/*
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 Liu6c002b62022-05-07 00:40:03 +080019pluginManagement {
20 plugins {
Jiayu Liu5b158382022-05-12 00:20:37 +080021 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 Liu6c002b62022-05-07 00:40:03 +080030 }
31}
Jiayu Liu49b2d6b2022-04-06 16:49:09 +080032
33rootProject.name = "libthrift-kotlin"
34
35include("cross-test-client", "cross-test-server")
36
37includeBuild("../java")