Skip to content

Commit bd626f6

Browse files
committed
update build profiles
1 parent 6ffef26 commit bd626f6

File tree

5 files changed

+102
-21
lines changed

5 files changed

+102
-21
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run IDEA Community - 2024.3" type="GradleRunConfiguration"
3+
factoryName="Gradle">
4+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea_IC.log"/>
5+
<ExternalSystemSettings>
6+
<option name="executionName"/>
7+
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
8+
<option name="externalSystemIdString" value="GRADLE"/>
9+
<option name="scriptParameters" value="-PbuildProfile=p243"/>
10+
<option name="taskDescriptions">
11+
<list/>
12+
</option>
13+
<option name="taskNames">
14+
<list>
15+
<option value="buildPlugin"/>
16+
<option value="runIde"/>
17+
</list>
18+
</option>
19+
<option name="vmOptions" value=""/>
20+
</ExternalSystemSettings>
21+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
22+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
23+
<DebugAllEnabled>false</DebugAllEnabled>
24+
<RunAsTest>false</RunAsTest>
25+
<method v="2"/>
26+
</configuration>
27+
</component>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run IDEA Ultimate - 2024.3" type="GradleRunConfiguration" factoryName="Gradle">
3+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea_IU.log"/>
4+
<ExternalSystemSettings>
5+
<option name="executionName"/>
6+
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
7+
<option name="externalSystemIdString" value="GRADLE"/>
8+
<option name="scriptParameters" value="-PbuildWIthUltimate=true -PbuildProfile=p243"/>
9+
<option name="taskDescriptions">
10+
<list/>
11+
</option>
12+
<option name="taskNames">
13+
<list>
14+
<option value="buildPlugin"/>
15+
<option value="runIde"/>
16+
</list>
17+
</option>
18+
<option name="vmOptions" value=""/>
19+
</ExternalSystemSettings>
20+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
21+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
22+
<DebugAllEnabled>false</DebugAllEnabled>
23+
<RunAsTest>false</RunAsTest>
24+
<method v="2"/>
25+
</configuration>
26+
</component>

.run/Run Rider - 2024.3.run.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Rider - 2024.3" type="GradleRunConfiguration" factoryName="Gradle">
3+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea_RD.log"/>
4+
<ExternalSystemSettings>
5+
<option name="executionName"/>
6+
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
7+
<option name="externalSystemIdString" value="GRADLE"/>
8+
<option name="scriptParameters" value="-PbuildWithRider=true -PbuildProfile=p243"/>
9+
<option name="taskDescriptions">
10+
<list/>
11+
</option>
12+
<option name="taskNames">
13+
<list>
14+
<option value="buildPlugin"/>
15+
<option value="runIde"/>
16+
</list>
17+
</option>
18+
<option name="vmOptions" value=""/>
19+
</ExternalSystemSettings>
20+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
21+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
22+
<DebugAllEnabled>false</DebugAllEnabled>
23+
<RunAsTest>false</RunAsTest>
24+
<method v="2"/>
25+
</configuration>
26+
</component>

common-build-logic/src/main/kotlin/common/BuildProfile.kt

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fun Project.useBinaryInstaller(): Boolean = !this.currentProfile().isEAP
7474

7575
object BuildProfiles {
7676

77-
enum class Profile { p231, p232, p233, p241, p242 }
77+
enum class Profile { p231, p232, p233, p241, p242, p243 }
7878

7979
fun Profile.greaterThan(other:Profile):Boolean{
8080
val thisNumber = this.name.substring(1).toInt()
@@ -102,8 +102,8 @@ object BuildProfiles {
102102
//update this list as new profiles are added or removed
103103
private val profileAliases = mapOf(
104104
"lowest" to Profile.p231.name,
105-
"latest" to Profile.p241.name,
106-
"eap" to Profile.p242.name,
105+
"latest" to Profile.p242.name,
106+
"eap" to Profile.p243.name,
107107
)
108108

109109

@@ -189,7 +189,7 @@ object BuildProfiles {
189189

190190
Profile.p242 to BuildProfile(
191191
//todo: keeping this profile as EAP until rider 2024.2 is releases because there is no binary release of rider yet
192-
// thst's instead of treating Idea and rider differently in build scripts
192+
// that's instead of treating Idea and rider differently in build scripts
193193
isEAP = true,
194194

195195
profile = Profile.p242,
@@ -205,21 +205,22 @@ object BuildProfiles {
205205
javaVersion = JavaVersion.VERSION_17.majorVersion,
206206
),
207207

208-
//todo: next EAP
209-
// Profile.p243 to BuildProfile(
210-
// isEAP = true,
211-
// profile = Profile.p243,
212-
// platformVersion = "2024.2",
213-
// riderVersion = "2024.2-EAP9-SNAPSHOT",
214-
// pycharmVersion = "2024.2",
215-
// riderTargetFramework = "net8.0",
216-
// riderResharperVersionConstant = "PROFILE_2023_2",
217-
// platformVersionCode = "242",
218-
// pluginSinceBuild = "242",
219-
// pluginUntilBuild = "242.*",
220-
// kotlinTarget = KotlinVersion.KOTLIN_1_9.version,
221-
// javaVersion = JavaVersion.VERSION_17.majorVersion,
222-
// )
208+
//todo: next EAP, currently same versions as 242 until 243 starts.
209+
// not built in github yet
210+
Profile.p243 to BuildProfile(
211+
isEAP = true,
212+
profile = Profile.p243,
213+
platformVersion = "2024.2",
214+
riderVersion = "2024.2-EAP9-SNAPSHOT",
215+
pycharmVersion = "2024.2",
216+
riderTargetFramework = "net8.0",
217+
riderResharperVersionConstant = "PROFILE_2023_2",
218+
platformVersionCode = "242",
219+
pluginSinceBuild = "243",
220+
pluginUntilBuild = "243.*",
221+
kotlinTarget = KotlinVersion.KOTLIN_1_9.version,
222+
javaVersion = JavaVersion.VERSION_17.majorVersion,
223+
)
223224

224225
)
225226

common-build-logic/src/main/kotlin/common/rider/RiderCommon.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ fun rdGenVersion(profile: String): String {
77

88
val profileToUse: BuildProfiles.Profile = when (profile) {
99
"lowest" -> BuildProfiles.Profile.p231
10-
"latest" -> BuildProfiles.Profile.p241
11-
"eap" -> BuildProfiles.Profile.p242
10+
"latest" -> BuildProfiles.Profile.p242
11+
"eap" -> BuildProfiles.Profile.p243
1212
else -> BuildProfiles.Profile.valueOf(profile)
1313
}
1414

@@ -24,5 +24,6 @@ fun rdGenVersionByProfile(profile: BuildProfiles.Profile): String {
2424
BuildProfiles.Profile.p233 -> "2023.3.2"
2525
BuildProfiles.Profile.p241 -> "2023.3.2"
2626
BuildProfiles.Profile.p242 -> "2024.1.1"
27+
BuildProfiles.Profile.p243 -> "2024.1.1"
2728
}
2829
}

0 commit comments

Comments
 (0)