Skip to content

Commit 221a731

Browse files
authored
Build for 241 (#4110)
1 parent 6abf638 commit 221a731

File tree

54 files changed

+344
-106
lines changed

Some content is hidden

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

54 files changed

+344
-106
lines changed

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/BuildScriptUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun Project.kotlinTarget(): Provider<String> = withCurrentProfileName {
3131
when (it) {
3232
"2022.3" -> KotlinVersionEnum.KOTLIN_1_7
3333
"2023.1", "2023.2" -> KotlinVersionEnum.KOTLIN_1_8
34-
"2023.3" -> KotlinVersionEnum.KOTLIN_1_9
34+
"2023.3", "2024.1" -> KotlinVersionEnum.KOTLIN_1_9
3535
else -> error("not set")
3636
}.version
3737
}

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/intellij/IdeVersions.kt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,51 @@ object IdeVersions {
143143
nugetVersion = "2023.3.0"
144144
)
145145
),
146+
Profile(
147+
name = "2024.1",
148+
gateway = ProductProfile(
149+
sdkFlavor = IdeFlavor.GW,
150+
sdkVersion = "241.9959-EAP-CANDIDATE-SNAPSHOT",
151+
plugins = arrayOf("org.jetbrains.plugins.terminal")
152+
),
153+
community = ProductProfile(
154+
sdkFlavor = IdeFlavor.IC,
155+
sdkVersion = "241.9959-EAP-CANDIDATE-SNAPSHOT",
156+
plugins = commonPlugins + listOf(
157+
"java",
158+
"com.intellij.gradle",
159+
"org.jetbrains.idea.maven",
160+
"PythonCore:241.9959.31",
161+
"Docker:241.9959.32"
162+
)
163+
),
164+
ultimate = ProductProfile(
165+
sdkFlavor = IdeFlavor.IU,
166+
sdkVersion = "241.9959-EAP-CANDIDATE-SNAPSHOT",
167+
plugins = commonPlugins + listOf(
168+
"JavaScript",
169+
// Transitive dependency needed for javascript
170+
// Can remove when https://github.com/JetBrains/gradle-intellij-plugin/issues/608 is fixed
171+
"com.intellij.css",
172+
"JavaScriptDebugger",
173+
"com.intellij.database",
174+
"com.jetbrains.codeWithMe",
175+
"Pythonid:241.9959.31",
176+
"org.jetbrains.plugins.go:241.9959.31",
177+
// https://github.com/JetBrains/gradle-intellij-plugin/issues/1056
178+
"org.intellij.intelliLang"
179+
)
180+
),
181+
rider = RiderProfile(
182+
sdkVersion = "2024.1-EAP2-SNAPSHOT",
183+
plugins = commonPlugins + listOf(
184+
"rider-plugins-appender" // Workaround for https://youtrack.jetbrains.com/issue/IDEA-179607
185+
),
186+
netFrameworkTarget = "net472",
187+
rdGenVersion = "2024.1.0-pre1",
188+
nugetVersion = "2024.1.0-eap02"
189+
)
190+
),
146191

147192
).associateBy { it.name }
148193

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ junit5 = "5.10.1"
1717
kotlin = "1.9.21"
1818
# set in <root>/settings.gradle.kts
1919
kotlinCoroutines = "1.7.3"
20-
mockito = "4.6.1"
21-
mockitoKotlin = "4.0.0"
20+
mockito = "5.10.0"
21+
mockitoKotlin = "5.2.1"
2222
mockk = "1.13.8"
2323
node-gradle = "7.0.1"
2424
telemetryGenerator = "1.0.182"

jetbrains-core/src/software/aws/toolkits/jetbrains/core/executables/ExecutableManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import com.intellij.openapi.project.DumbAware
1313
import com.intellij.openapi.project.Project
1414
import com.intellij.openapi.startup.StartupActivity
1515
import com.intellij.openapi.util.SystemInfo
16-
import com.intellij.util.io.lastModified
1716
import software.aws.toolkits.core.utils.exists
1817
import software.aws.toolkits.core.utils.getLogger
18+
import software.aws.toolkits.core.utils.lastModified
1919
import software.aws.toolkits.core.utils.warn
2020
import software.aws.toolkits.jetbrains.core.executables.ExecutableInstance.ExecutableWithPath
2121
import software.aws.toolkits.jetbrains.services.lambda.sam.SamExecutable

jetbrains-core/src/software/aws/toolkits/jetbrains/core/tools/DefaultToolManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import com.intellij.openapi.util.io.FileUtil
1515
import com.intellij.serviceContainer.NonInjectable
1616
import com.intellij.util.ExceptionUtil
1717
import com.intellij.util.io.delete
18-
import com.intellij.util.io.readText
1918
import com.intellij.util.io.write
2019
import org.jetbrains.annotations.VisibleForTesting
2120
import software.aws.toolkits.core.utils.debug
2221
import software.aws.toolkits.core.utils.getLogger
22+
import software.aws.toolkits.core.utils.readText
2323
import software.aws.toolkits.core.utils.warn
2424
import software.aws.toolkits.jetbrains.core.tools.ToolManager.Companion.MANAGED_TOOL_INSTALL_ROOT
2525
import software.aws.toolkits.jetbrains.utils.assertIsNonDispatchThread

jetbrains-core/src/software/aws/toolkits/jetbrains/services/PathMapper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package software.aws.toolkits.jetbrains.services
55

66
import com.intellij.openapi.util.SystemInfo
77
import com.intellij.openapi.util.io.FileUtil
8-
import com.intellij.util.io.isFile
98
import com.intellij.xdebugger.XSourcePosition
109
import com.jetbrains.python.debugger.PyLocalPositionConverter
1110
import com.jetbrains.python.debugger.PySourcePosition
@@ -15,6 +14,7 @@ import software.aws.toolkits.jetbrains.services.PathMapper.Companion.normalizeLo
1514
import java.nio.file.Files
1615
import java.nio.file.Paths
1716
import java.util.Objects
17+
import kotlin.io.path.isRegularFile
1818

1919
/**
2020
* Maps a local path to a remote path. The order of the list indicates the order of priority where first possible
@@ -90,7 +90,7 @@ class PathMapper(private val mappings: List<PathMapping>) {
9090

9191
class PathMapping(localPath: String, remoteDirectory: String) {
9292
private val directory = Paths.get(localPath).let {
93-
if (it.isFile()) {
93+
if (it.isRegularFile()) {
9494
it.parent.toString()
9595
} else {
9696
localPath

jetbrains-core/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerArtifact.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
88
import com.intellij.openapi.util.io.FileUtil.createTempDirectory
99
import com.intellij.openapi.vfs.LocalFileSystem
1010
import com.intellij.openapi.vfs.VirtualFile
11-
import com.intellij.util.io.isDirectory
1211
import software.aws.toolkits.core.utils.error
1312
import software.aws.toolkits.core.utils.exists
1413
import software.aws.toolkits.core.utils.getLogger
@@ -17,6 +16,7 @@ import software.aws.toolkits.jetbrains.services.codemodernizer.TransformationSum
1716
import software.aws.toolkits.jetbrains.services.codemodernizer.unzipFile
1817
import kotlin.io.path.ExperimentalPathApi
1918
import kotlin.io.path.Path
19+
import kotlin.io.path.isDirectory
2020
import kotlin.io.path.walk
2121

2222
/**

jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/explorer/CodeWhispererServiceNode.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import software.aws.toolkits.resources.message
3131
import java.awt.event.MouseEvent
3232
import java.time.LocalDate
3333
import java.time.format.DateTimeFormatter
34+
import java.time.format.FormatStyle
3435
import java.time.temporal.TemporalAdjusters
3536

3637
class CodeWhispererServiceNode(
@@ -48,7 +49,7 @@ class CodeWhispererServiceNode(
4849
// but that shouldn't happen often enough for us to care
4950
val formatter = tryOrNull {
5051
DateTimeFormatter.ofPattern(DateTimeFormatManager.getInstance().dateFormatPattern)
51-
} ?: DateTimeFormatter.ofPattern(DateTimeFormatManager.DEFAULT_DATE_FORMAT)
52+
} ?: DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)
5253
val date = LocalDate.now().with(TemporalAdjusters.firstDayOfNextMonth())
5354

5455
FreeTierUsageLimitHitNode(nodeProject, formatter.format(date))

jetbrains-core/src/software/aws/toolkits/jetbrains/services/ecr/CreateEcrRepoDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CreateEcrRepoDialog(
2424
private val project: Project,
2525
private val ecrClient: EcrClient,
2626
parent: Component? = null
27-
) : DialogWrapper(project, parent, false, IdeModalityType.PROJECT) {
27+
) : DialogWrapper(project, parent, false, IdeModalityType.IDE) {
2828
var repoName: String = ""
2929

3030
private val panel = panel {

jetbrains-core/src/software/aws/toolkits/jetbrains/services/ecr/actions/PushToRepositoryAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ internal class PushToEcrDialog(
125125
private val project: Project,
126126
selectedRepository: Repository,
127127
private val dockerRuntime: Deferred<DockerRuntimeFacade>
128-
) : DialogWrapper(project, null, false, IdeModalityType.PROJECT) {
128+
) : DialogWrapper(project, null, false, IdeModalityType.IDE) {
129129
private val coroutineScope = projectCoroutineScope(project)
130130
private val defaultTag = "latest"
131131
private val localImageRepoTags = CollectionComboBoxModel<LocalImage>()

0 commit comments

Comments
 (0)