Skip to content

Commit 5782568

Browse files
committed
Merge branch 'refs/heads/2023.2' into 2023.3
# Conflicts: # src/main/kotlin/facet/MinecraftFacetDetector.kt
2 parents bb41432 + e47fda5 commit 5782568

File tree

14 files changed

+38
-20
lines changed

14 files changed

+38
-20
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ plugins {
3434
mcdev
3535
groovy
3636
idea
37-
id("org.jetbrains.intellij") version "1.17.0"
37+
id("org.jetbrains.intellij") version "1.17.2"
3838
id("org.cadixdev.licenser")
3939
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
4040
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ kotlin.code.style=official
2424
ideaVersion = 2023.3
2525
ideaVersionName = 2023.3
2626

27-
coreVersion = 1.7.2
27+
coreVersion = 1.7.3
2828
downloadIdeaSources = true
2929

3030
pluginTomlVersion = 233.11799.172

gradle/wrapper/gradle-wrapper.jar

-19.8 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

src/main/kotlin/platform/forge/gradle/ForgeRunConfigDataService.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ class ForgeRunConfigDataService : AbstractProjectDataService<ProjectData, Projec
176176
}
177177
}
178178

179+
if (project.isDisposed) {
180+
return
181+
}
182+
179183
project.guessProjectDir()?.let { dir ->
180184
LocalFileSystem.getInstance().refreshFiles(listOf(dir), true, true, null)
181185
}

src/main/kotlin/platform/forge/util/ForgeConstants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ object ForgeConstants {
5151
// From https://github.com/MinecraftForge/MinecraftForge/blob/38a5400a8c878fe39cd389e6d4f68619d2738b88/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModInfo.java#L45
5252
val MOD_ID_REGEX = "^[a-z][a-z0-9_-]{1,63}$".toRegex()
5353

54-
val DISPLAY_TEST_MANIFEST_VERSION = SemanticVersion.release(41, 0, 15)
54+
val DISPLAY_TEST_MANIFEST_VERSION = SemanticVersion.release(40, 2, 14)
5555
val CLIENT_ONLY_MANIFEST_VERSION = SemanticVersion.release(49, 0, 6)
5656
}

src/main/kotlin/platform/mixin/handlers/injectionPoint/NewInsnInjectionPoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class NewInsnSelectorParser : MixinSelectorParser {
223223
return if (strippedValue.startsWith('(')) {
224224
NewInsnDescriptorSelector(strippedValue)
225225
} else {
226-
NewInsnTypeSelector(strippedValue)
226+
NewInsnTypeSelector(strippedValue.removeSurrounding("L", ";"))
227227
}
228228
}
229229
}

src/main/kotlin/platform/velocity/creator/asset-steps.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ class VelocityModifyMainClassStep(
103103
val authors = data.getUserData(AuthorsStep.KEY) ?: emptyList()
104104
val dependencies = data.getUserData(DependStep.KEY) ?: emptyList()
105105

106-
NonProjectFileWritingAccessProvider.disableChecksDuring {
107-
project.runWriteTaskInSmartMode {
106+
project.runWriteTaskInSmartMode {
107+
NonProjectFileWritingAccessProvider.disableChecksDuring {
108108
val mainClassVirtualFile = VfsUtil.findFile(Path.of(mainClassFile), true)
109-
?: return@runWriteTaskInSmartMode
109+
?: return@disableChecksDuring
110110
val mainClassPsi = PsiManager.getInstance(project).findFile(mainClassVirtualFile) as? PsiJavaFile
111-
?: return@runWriteTaskInSmartMode
111+
?: return@disableChecksDuring
112112

113113
val psiClass = mainClassPsi.classes[0]
114114
val annotation = buildString {

src/main/kotlin/platform/velocity/creator/ui-steps.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class VelocityVersionStep(
9595
private fun applyJdkVersion() {
9696
SemanticVersion.tryParse(version)?.let { version ->
9797
val preferredJdk = when {
98+
version >= SemanticVersion.release(3, 3) -> JavaSdkVersion.JDK_17
9899
version >= SemanticVersion.release(3) -> JavaSdkVersion.JDK_11
99100
else -> JavaSdkVersion.JDK_1_8
100101
}

0 commit comments

Comments
 (0)