/*
* This file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user manual at https://docs.gradle.org/6.3/userguide/multi_project_builds.html
*/

pluginManagement {
    plugins {
        id "com.github.spotbugs" version "${spotbugsPluginVersion}"
        id "com.github.johnrengelman.shadow" version "${shadowJarPluginVersion}"
        id "de.undercouch.download" version "${downloadPluginVersion}"
        id "net.researchgate.release" version "${releasePluginVersion}"
        id "io.ballerina.plugin" version "${ballerinaGradlePluginVersion}"
    }

    repositories {
        gradlePluginPortal()
        maven {
            url = 'https://maven.pkg.github.com/ballerina-platform/*'
            credentials {
                username System.getenv("packageUser")
                password System.getenv("packagePAT")
            }
        }
    }
}

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

rootProject.name = 'graphql'

include ':checkstyle'
include ':graphql-native'
include ':graphql-compiler-plugin'
include ':graphql-ballerina'
include ':graphql-compiler-plugin-tests'
include ':graphql-ballerina-tests'
include ':graphql-examples'
include ':graphql-commons'

project(':checkstyle').projectDir = file("build-config${File.separator}checkstyle")
project(':graphql-native').projectDir = file("native")
project(':graphql-compiler-plugin').projectDir = file("compiler-plugin")
project(':graphql-ballerina').projectDir = file("ballerina")
project(':graphql-compiler-plugin-tests').projectDir = file("compiler-plugin-tests")
project(':graphql-ballerina-tests').projectDir = file("ballerina-tests")
project(':graphql-examples').projectDir = file("examples")
project(':graphql-commons').projectDir = file("commons")

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