Skip to content

Copy buildSrc from 8bf007bc1b2#2885

Open
eymar wants to merge 1 commit intojb-mainfrom
integration-copy/buildSrc/8bf007bc1b2/to-jb-main
Open

Copy buildSrc from 8bf007bc1b2#2885
eymar wants to merge 1 commit intojb-mainfrom
integration-copy/buildSrc/8bf007bc1b2/to-jb-main

Conversation

@eymar
Copy link
Copy Markdown
Member

@eymar eymar commented Mar 18, 2026

An attempt to sync buildSrc

Testing

N/A

Release Notes

N/A

Comment thread buildSrc/settings.gradle
apply from: "settingsScripts/out-setup.groovy"
getGradle().beforeProject { project ->
def checkoutRoot = new File("${buildscript.sourceFile.parent}/..")
def checkoutRoot = new File("${buildscript.sourceFile.parent}/../../..")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be reverted for jb-main

Comment thread buildSrc/repos.gradle
}
*/
if (true /* In JetBrains Fork */) {
if (System.getenv("ALLOW_PUBLIC_REPOS") != null || System.getProperty("ALLOW_PUBLIC_REPOS") != null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be reverted for jb-main


val JETBRAINS_MINIMAL_JAVA_VERSION = VERSION_11
val JETBRAINS_COMPILE_KOTLIN_VERSION = KOTLIN_2_2
val JETBRAINS_COMPILE_KOTLIN_VERSION = KOTLIN_2_3
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not bump it here

fun Project.getCheckoutRoot(): File {
if (!ProjectLayoutType.isPlayground(project)) {
throw IllegalStateException("repo checkout root is not available in playground project layout")
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a valid check. Needs to be restored

if (
ProjectLayoutType.from(project) == ProjectLayoutType.PLAYGROUND ||
System.getenv("COMPOSE_DESKTOP_GITHUB_BUILD") != null
) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous version was correct

KOTLIN_2_2(KotlinVersion.KOTLIN_2_2, "kotlin22"),
KOTLIN_2_3(KotlinVersion.KOTLIN_2_3, "kotlin23"),
DEFAULT(JETBRAINS_COMPILE_KOTLIN_VERSION),
DEFAULT(KOTLIN_2_3),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be reverted

if (ProjectLayoutType.isPlayground(project)) {
// Do not ban calling this because it's used in a lot benchmark projects during the configuration stage.
return rootProject.projectDir
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a valid check. Needs to be restored

if (ProjectLayoutType.isPlayground(project)) {
// In JetBrains Fork required parts of the "external" folder are copied into this repo.
return File(rootProject.projectDir, "external").canonicalFile
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a valid check. Needs to be restored

fun Project.getGradlePrebuiltsPath(): File {
if (ProjectLayoutType.isPlayground(project)) {
throw IllegalStateException("external projects are not available in playground project layout")
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a valid check. Needs to be restored


// TODO remove it after https://youtrack.jetbrains.com/issue/CMP-9524/Support-the-same-setup-for-integration-and-jb-main-branches
// This code includes dependencies defined in comments and in "androidMain" that doesn't work in jb-main yet
return
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like integration/buildSrc can't be copied to jb-main as is?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we have an adopted version here. It's "close enough" now, but still not the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants