/*
 * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved.
 *
 * Licensed 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.
 *
 */

plugins {
    id "com.gradle.enterprise" version "3.13.2"
}

rootProject.name = 'ballerina-dev-tools'

include(':checkstyle')
include(':testerina-report-tools')
include(':model-generator-commons')
include(':architecture-model-generator:architecture-model-generator-core')
include(':architecture-model-generator:architecture-model-generator-plugin')
include(':architecture-model-generator:architecture-model-generator-ls-extension')
include(':graphql-model-generator:graphql-model-generator-core')
include(':graphql-model-generator:graphql-model-generator-ls-extension')
include(':sequence-model-generator:sequence-model-generator-core')
include(':sequence-model-generator:sequence-model-generator-ls-extension')
include(':flow-model-generator:flow-model-generator-core')
include(':flow-model-generator:flow-model-generator-ls-extension')
include(':flow-model-generator:flow-model-index-generator')
include(':flow-model-generator:flow-model-central-client')
include(':service-model-generator:service-model-generator-ls-extension')
include(':service-model-generator:service-model-index-generator')
include(':test-manager-service:test-manager-service-ls-extension')

project(':checkstyle').projectDir = file("build-config${File.separator}checkstyle")
project(':testerina-report-tools').projectDir = file('testerina-report-tools')
project(':model-generator-commons').projectDir = file('model-generator-commons')
project(':architecture-model-generator:architecture-model-generator-core').projectDir = file('architecture-model-generator/modules/architecture-model-generator-core')
project(':architecture-model-generator:architecture-model-generator-plugin').projectDir = file('architecture-model-generator/modules/architecture-model-generator-plugin')
project(':architecture-model-generator:architecture-model-generator-ls-extension').projectDir = file('architecture-model-generator/modules/architecture-model-generator-ls-extension')
project(':graphql-model-generator:graphql-model-generator-core').projectDir = file('graphql-model-generator/modules/graphql-model-generator-core')
project(':graphql-model-generator:graphql-model-generator-ls-extension').projectDir = file('graphql-model-generator/modules/graphql-model-generator-ls-extension')
project(':sequence-model-generator:sequence-model-generator-core').projectDir = file('sequence-model-generator/modules/sequence-model-generator-core')
project(':sequence-model-generator:sequence-model-generator-ls-extension').projectDir = file('sequence-model-generator/modules/sequence-model-generator-ls-extension')
project(':flow-model-generator:flow-model-generator-core').projectDir = file('flow-model-generator/modules/flow-model-generator-core')
project(':flow-model-generator:flow-model-generator-ls-extension').projectDir = file('flow-model-generator/modules/flow-model-generator-ls-extension')
project(':flow-model-generator:flow-model-index-generator').projectDir = file('flow-model-generator/modules/flow-model-index-generator')
project(':flow-model-generator:flow-model-central-client').projectDir = file('flow-model-generator/modules/flow-model-central-client')
project(':service-model-generator:service-model-generator-ls-extension').projectDir = file('service-model-generator/modules/service-model-generator-ls-extension')
project(':service-model-generator:service-model-index-generator').projectDir = file('service-model-generator/modules/service-model-index-generator')
project(':test-manager-service:test-manager-service-ls-extension').projectDir = file('test-manager-service/modules/test-manager-service-ls-extension')

gradleEnterprise {
    buildScan {
        termsOfServiceUrl = 'https://gradle.com/terms-of-service'
        termsOfServiceAgree = 'yes'
    }
}
