Skip to content

Commit 3645531

Browse files
committed
Merge branch '2022.3' into 2023.1
2 parents 4e860a8 + aead93f commit 3645531

File tree

870 files changed

+945
-902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

870 files changed

+945
-902
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ body:
4343
- Waterfall
4444
validations:
4545
required: false
46-
- type: markdown
46+
- type: textarea
47+
id: description
4748
attributes:
48-
value: Always include a stack trace if there is one. Otherwise, the more information you can provide in terms of how to reproduce the problem, the more likely it'll be fixed. If there is something specific about your project, a link to the GitHub project can be very helpful.
49+
label: Description of the bug
50+
description: Always include a stack trace if there is one. Otherwise, the more information you can provide in terms of how to reproduce the problem, the more likely it'll be fixed. If there is something specific about your project, a link to the GitHub project can be very helpful.

build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://minecraftdev.org
55
*
6-
* Copyright (c) 2022 minecraft-dev
6+
* Copyright (c) 2023 minecraft-dev
77
*
88
* MIT License
99
*/
@@ -16,7 +16,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1616
import org.jlleitschuh.gradle.ktlint.tasks.BaseKtLintCheckTask
1717

1818
plugins {
19-
kotlin("jvm") version "1.7.20"
19+
kotlin("jvm") version "1.8.0"
2020
java
2121
mcdev
2222
groovy
@@ -349,7 +349,6 @@ tasks.register("cleanSandbox", Delete::class) {
349349
tasks.runIde {
350350
maxHeapSize = "4G"
351351

352-
jvmArgs("--add-exports=java.base/jdk.internal.vm=ALL-UNNAMED")
353352
System.getProperty("debug")?.let {
354353
systemProperty("idea.ProcessCanceledException", "disabled")
355354
systemProperty("idea.debug.mode", "true")

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://minecraftdev.org
55
*
6-
* Copyright (c) 2022 minecraft-dev
6+
* Copyright (c) 2023 minecraft-dev
77
*
88
* MIT License
99
*/

buildSrc/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://minecraftdev.org
55
*
6-
* Copyright (c) 2022 minecraft-dev
6+
* Copyright (c) 2023 minecraft-dev
77
*
88
* MIT License
99
*/

buildSrc/src/main/kotlin/Filter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://minecraftdev.org
55
*
6-
* Copyright (c) 2022 minecraft-dev
6+
* Copyright (c) 2023 minecraft-dev
77
*
88
* MIT License
99
*/

buildSrc/src/main/kotlin/mcdev.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://minecraftdev.org
55
*
6-
* Copyright (c) 2022 minecraft-dev
6+
* Copyright (c) 2023 minecraft-dev
77
*
88
* MIT License
99
*/

buildSrc/src/main/kotlin/util.kt

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
*
44
* https://minecraftdev.org
55
*
6-
* Copyright (c) 2022 minecraft-dev
6+
* Copyright (c) 2023 minecraft-dev
77
*
88
* MIT License
99
*/
1010

11+
import java.io.ByteArrayOutputStream
1112
import org.cadixdev.gradle.licenser.LicenseExtension
1213
import org.gradle.api.JavaVersion
1314
import org.gradle.api.Project
@@ -30,14 +31,19 @@ fun Project.lexer(flex: String, pack: String): TaskDelegate<JavaExec> {
3031
val src = layout.projectDirectory.file("src/main/grammars/$flex.flex")
3132
val dst = layout.buildDirectory.dir("gen/$pack")
3233
val output = layout.buildDirectory.file("gen/$pack/$flex.java")
34+
val logOutout = layout.buildDirectory.file("logs/generate$flex.log")
3335

3436
val jflex by project.configurations
3537
val jflexSkeleton by project.configurations
3638

3739
classpath = jflex
3840
mainClass.set("jflex.Main")
3941

40-
doFirst {
42+
val taskOutput = ByteArrayOutputStream()
43+
standardOutput = taskOutput
44+
errorOutput = taskOutput
45+
46+
doFirst {
4147
args(
4248
"--skel", jflexSkeleton.singleFile.absolutePath,
4349
"-d", dst.get().asFile.absolutePath,
@@ -46,6 +52,11 @@ fun Project.lexer(flex: String, pack: String): TaskDelegate<JavaExec> {
4652

4753
// Delete current lexer
4854
project.delete(output)
55+
logOutout.get().asFile.parentFile.mkdirs()
56+
}
57+
58+
doLast {
59+
logOutout.get().asFile.writeBytes(taskOutput.toByteArray())
4960
}
5061

5162
inputs.files(src, jflexSkeleton)
@@ -64,12 +75,13 @@ fun Project.parser(bnf: String, pack: String): TaskDelegate<JavaExec> {
6475
val dst = dstRoot.map { it.dir(pack) }
6576
val psiDir = dst.map { it.dir("psi") }
6677
val parserDir = dst.map { it.dir("parser") }
78+
val logOutout = layout.buildDirectory.file("logs/generate$bnf.log")
6779

6880
val grammarKit by project.configurations
6981

70-
doFirst {
71-
project.delete(psiDir, parserDir)
72-
}
82+
val taskOutput = ByteArrayOutputStream()
83+
standardOutput = taskOutput
84+
errorOutput = taskOutput
7385

7486
classpath = grammarKit
7587
mainClass.set("org.intellij.grammar.Main")
@@ -83,7 +95,12 @@ fun Project.parser(bnf: String, pack: String): TaskDelegate<JavaExec> {
8395
}
8496

8597
doFirst {
98+
project.delete(psiDir, parserDir)
8699
args(dstRoot.get().asFile, src.asFile)
100+
logOutout.get().asFile.parentFile.mkdirs()
101+
}
102+
doLast {
103+
logOutout.get().asFile.writeBytes(taskOutput.toByteArray())
87104
}
88105

89106
inputs.file(src)

copyright.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ Minecraft Dev for IntelliJ
22

33
https://minecraftdev.org
44

5-
Copyright (c) 2022 minecraft-dev
5+
Copyright (c) 2023 minecraft-dev
66

77
MIT License

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# https://minecraftdev.org
55
#
6-
# Copyright (c) 2022 minecraft-dev
6+
# Copyright (c) 2023 minecraft-dev
77
#
88
# MIT License
99
#
@@ -14,10 +14,10 @@ kotlin.code.style=official
1414
ideaVersion = 231-EAP-SNAPSHOT
1515
ideaVersionName = 2023.1
1616

17-
coreVersion = 1.5.21
17+
coreVersion = 1.5.22
1818
downloadIdeaSources = true
1919

2020
pluginTomlVersion = 231.4840.388
2121

2222
# Silences a build-time warning because we are bundling our own kotlin library
23-
kotlin.stdlib.default.dependency = true
23+
kotlin.stdlib.default.dependency = false

gradle/wrapper/gradle-wrapper.jar

818 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)