User: kyle wood Date: 15 Aug 22 22:16 Revision: 81bb4a044c3903bb56de8fe0d19065afb563a5a7 Summary: Merge branch '2021.2' into 2021.3 TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=8069&personal=false Index: build.gradle.kts =================================================================== --- build.gradle.kts (revision bfaf4b98f091c6484f75e9ed717083858762b767) +++ build.gradle.kts (revision 81bb4a044c3903bb56de8fe0d19065afb563a5a7) @@ -3,7 +3,7 @@ * * https://minecraftdev.org * - * Copyright (c) 2021 minecraft-dev + * Copyright (c) 2022 minecraft-dev * * MIT License */ @@ -14,16 +14,17 @@ import org.jetbrains.gradle.ext.settings import org.jetbrains.gradle.ext.taskTriggers import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import org.jlleitschuh.gradle.ktlint.tasks.BaseKtLintCheckTask plugins { - kotlin("jvm") version "1.6.20" + kotlin("jvm") version "1.7.10" java mcdev groovy idea - id("org.jetbrains.intellij") version "1.5.2" + id("org.jetbrains.intellij") version "1.8.0" id("org.cadixdev.licenser") - id("org.jlleitschuh.gradle.ktlint") version "10.0.0" + id("org.jlleitschuh.gradle.ktlint") version "10.3.0" } val ideaVersionName: String by project @@ -111,6 +112,33 @@ testRuntimeOnly(libs.junit.entine) } +val artifactType = Attribute.of("artifactType", String::class.java) +val filtered = Attribute.of("filtered", Boolean::class.javaObjectType) + +dependencies { + attributesSchema { + attribute(filtered) + } + artifactTypes.getByName("jar") { + attributes.attribute(filtered, false) + } + + registerTransform(Filter::class) { + from.attribute(filtered, false).attribute(artifactType, "jar") + to.attribute(filtered, true).attribute(artifactType, "jar") + + parameters { + ideaVersion.set(providers.gradleProperty("ideaVersion")) + ideaVersionName.set(providers.gradleProperty("ideaVersionName")) + depsFile.set(layout.projectDirectory.file(".gradle/intellij-deps.json")) + } + } +} + +configurations.compileClasspath { + attributes.attribute(filtered, true) +} + intellij { // IntelliJ IDEA dependency version.set(providers.gradleProperty("ideaVersion")) @@ -239,6 +267,8 @@ module { generatedSourceDirs.add(file("build/gen")) excludeDirs.add(file(intellij.sandboxDir.get())) + isDownloadJavadoc = true + isDownloadSources = true } } @@ -275,8 +305,8 @@ } } -ktlint { - enableExperimentalRules.set(true) +tasks.withType().configureEach { + workerMaxHeapSize.set("512m") } tasks.register("format") { Index: gradle.properties =================================================================== --- gradle.properties (revision bfaf4b98f091c6484f75e9ed717083858762b767) +++ gradle.properties (revision 81bb4a044c3903bb56de8fe0d19065afb563a5a7) @@ -3,7 +3,7 @@ # # https://minecraftdev.org # -# Copyright (c) 2021 minecraft-dev +# Copyright (c) 2022 minecraft-dev # # MIT License # Index: gradle/libs.versions.toml =================================================================== --- gradle/libs.versions.toml (revision bfaf4b98f091c6484f75e9ed717083858762b767) +++ gradle/libs.versions.toml (revision 81bb4a044c3903bb56de8fe0d19065afb563a5a7) @@ -1,10 +1,11 @@ [versions] -coroutines = "1.5.2" -junit = "5.7.1" -asm = "9.2" +coroutines = "1.6.3" +junit = "5.9.0" +asm = "9.3" [libraries] coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" } +coroutines-jdk8 = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8", version.ref = "coroutines" } coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "coroutines" } templateMakerFabric = "com.extracraftx.minecraft:TemplateMakerFabric:0.4.1" @@ -17,8 +18,8 @@ # Gradle Tooling gradleToolingExtension = "com.jetbrains.intellij.gradle:gradle-tooling-extension:213.5744.223" -annotations = "org.jetbrains:annotations:20.1.0" -groovy = "org.codehaus.groovy:groovy-all:2.5.14" +annotations = "org.jetbrains:annotations:23.0.0" +groovy = "org.codehaus.groovy:groovy-all:2.5.18" asm = { module = "org.ow2.asm:asm", version.ref = "asm" } asm-tree = { module = "org.ow2.asm:asm-tree", version.ref = "asm" } @@ -34,5 +35,5 @@ junit-entine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit" } [bundles] -coroutines = ["coroutines-core", "coroutines-swing"] +coroutines = ["coroutines-core", "coroutines-jdk8", "coroutines-swing"] asm = ["asm", "asm-tree", "asm-analysis"] Index: src/main/kotlin/insight/ColorUtil.kt =================================================================== --- src/main/kotlin/insight/ColorUtil.kt (revision bfaf4b98f091c6484f75e9ed717083858762b767) +++ src/main/kotlin/insight/ColorUtil.kt (revision 81bb4a044c3903bb56de8fe0d19065afb563a5a7) @@ -3,7 +3,7 @@ * * https://minecraftdev.org * - * Copyright (c) 2021 minecraft-dev + * Copyright (c) 2022 minecraft-dev * * MIT License */ Index: src/main/kotlin/platform/mcp/aw/AwAnnotator.kt =================================================================== --- src/main/kotlin/platform/mcp/aw/AwAnnotator.kt (revision bfaf4b98f091c6484f75e9ed717083858762b767) +++ src/main/kotlin/platform/mcp/aw/AwAnnotator.kt (revision 81bb4a044c3903bb56de8fe0d19065afb563a5a7) @@ -3,7 +3,7 @@ * * https://minecraftdev.org * - * Copyright (c) 2021 minecraft-dev + * Copyright (c) 2022 minecraft-dev * * MIT License */