<commit_before>import org.spongepowered.gradle.vanilla.repository.MinecraftRepositoryExtension

pluginManagement {
    repositories {
        maven("https://repo.spongepowered.org/repository/maven-public/") {
            name = "sponge"
        }
    }

    plugins {
        // Default plugin versions
        id("org.spongepowered.gradle.vanilla") version "0.2"
        id("org.cadixdev.licenser") version "0.6.0"
        id("com.github.johnrengelman.shadow") version "7.0.0"
        id("org.spongepowered.gradle.sponge.dev") version "1.0.3"
        id("implementation-structure")
        id("org.jetbrains.gradle.plugin.idea-ext") version "1.0"
        id("com.github.ben-manes.versions") version "0.39.0"
    }
}

plugins {
    id("org.spongepowered.gradle.vanilla")
}

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        maven("https://repo.spongepowered.org/repository/maven-public/") {
            name = "sponge"
        }
    }
}

rootProject.name = "Sponge"

extensions.configure(MinecraftRepositoryExtension::class) {
    injectRepositories(false)
}

// Set up project structure

includeBuild("build-logic")
includeBuild("SpongeAPI") {<commit_msg>build: PRovide a more helpful message when the SpongeAPI submodule is not set up<commit_after>import org.spongepowered.gradle.vanilla.repository.MinecraftRepositoryExtension

pluginManagement {
    repositories {
        maven("https://repo.spongepowered.org/repository/maven-public/") {
            name = "sponge"
        }
    }

    plugins {
        // Default plugin versions
        id("org.spongepowered.gradle.vanilla") version "0.2"
        id("org.cadixdev.licenser") version "0.6.0"
        id("com.github.johnrengelman.shadow") version "7.0.0"
        id("org.spongepowered.gradle.sponge.dev") version "1.0.3"
        id("implementation-structure")
        id("org.jetbrains.gradle.plugin.idea-ext") version "1.0"
        id("com.github.ben-manes.versions") version "0.39.0"
    }
}

plugins {
    id("org.spongepowered.gradle.vanilla")
}

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        maven("https://repo.spongepowered.org/repository/maven-public/") {
            name = "sponge"
        }
    }
}

rootProject.name = "Sponge"

extensions.configure(MinecraftRepositoryExtension::class) {
    injectRepositories(false)
}

// Set up project structure

if (!file("SpongeAPI/gradle.properties").exists()) {
    throw InvalidUserDataException("""
        The SpongeAPI submodule required to build does not appear to be set up. 
        
        To correct this, run
            git submodule update --init --recursive
        from the project's checkout directory.
    """.trimIndent())
}

includeBuild("build-logic")
includeBuild("SpongeAPI") {
{'fraction_non_alphanumeric': 0.12779329608938547, 'fraction_numerical': 0.011871508379888268, 'mean_word_length': 3.018232819074334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4184423', 'n_tokens_mistral': 954, 'n_tokens_neox': 879, 'n_words': 141}