import kotlin.KotlinVersion

pluginManagement {
    plugins {
        id 'org.jetbrains.kotlin.jvm' version "${KotlinVersion.CURRENT}"
    }
    repositories {
        gradlePluginPortal()
        mavenCentral()
    }
}

plugins {
    id "io.freefair.settings.plugin-versions" version "9.0.0"
    id "com.gradle.develocity" version "4.2.1"
}

enableFeaturePreview "STABLE_CONFIGURATION_CACHE"

boolean isCiServer = System.getenv().containsKey("CI")

develocity {
    buildScan {
        publishing.onlyIf { isCiServer }
        termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
        termsOfUseAgree = "yes"
    }
}

rootProject.name = 'gradle-plugins'

include "test-common"
include "documentation"

include "plugin-utils"

include "maven-plugin"
include "maven-plugin-plugin"
include "lombok-plugin"
include "embedded-sass-plugin"
include "aspectj-plugin"
include "compress-plugin"
include "code-generator-plugin"
include "code-generator-api"
include "test-code-generator"
include "jacoco-plugin"
include "github-plugin"
include "okhttp-plugin"
include "git-plugin"
include "mkdocs-plugin"
include "quicktype-plugin"
include "plantuml-plugin"
include "gwt-plugin"

include "mjml-plugin"

include "settings-plugin"

include "gradle-plugin-platform"
