Skip to content

Pass SKIKO_VERSION setup in non-AOSP mode - #3307

Merged
Shagen Ogandzhanian (Schahen) merged 6 commits into
jb-mainfrom
sh/pass_skiko_version_env_variable
Aug 17, 2026
Merged

Pass SKIKO_VERSION setup in non-AOSP mode#3307
Shagen Ogandzhanian (Schahen) merged 6 commits into
jb-mainfrom
sh/pass_skiko_version_env_variable

Conversation

@Schahen

Copy link
Copy Markdown

The goal of this PR is to restore the behaviour of skiko version resolution in non-AOSP mode

Testing

Launch any run configuration with SKIKO_VERSION set

Release Notes

N/A

Comment thread settings-fork.gradle Outdated
Comment thread settings-fork.gradle Outdated
Comment thread settings-fork.gradle Outdated
Comment on lines +36 to +59
String os = System.getProperty("os.name").toLowerCase(Locale.US)
String currentOsArtifact
if (os.contains("mac os x") || os.contains("darwin") || os.contains("osx")) {
def arch = System.getProperty("os.arch")
if (arch == "aarch64") {
currentOsArtifact = "skiko-awt-runtime-macos-arm64"
} else {
currentOsArtifact = "skiko-awt-runtime-macos-x64"
}
} else if (os.startsWith("win")) {
currentOsArtifact = "skiko-awt-runtime-windows-x64"
} else if (os.startsWith("linux")) {
def arch = System.getProperty("os.arch")
if (arch == "aarch64") {
currentOsArtifact = "skiko-awt-runtime-linux-arm64"
} else {
currentOsArtifact = "skiko-awt-runtime-linux-x64"
}
} else {
throw new GradleException("Unsupported operating system $os")
}
library("skikoCurrentOs", "org.jetbrains.skiko",
currentOsArtifact).versionRef("skiko")
}

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.

Suggested change
String os = System.getProperty("os.name").toLowerCase(Locale.US)
String currentOsArtifact
if (os.contains("mac os x") || os.contains("darwin") || os.contains("osx")) {
def arch = System.getProperty("os.arch")
if (arch == "aarch64") {
currentOsArtifact = "skiko-awt-runtime-macos-arm64"
} else {
currentOsArtifact = "skiko-awt-runtime-macos-x64"
}
} else if (os.startsWith("win")) {
currentOsArtifact = "skiko-awt-runtime-windows-x64"
} else if (os.startsWith("linux")) {
def arch = System.getProperty("os.arch")
if (arch == "aarch64") {
currentOsArtifact = "skiko-awt-runtime-linux-arm64"
} else {
currentOsArtifact = "skiko-awt-runtime-linux-x64"
}
} else {
throw new GradleException("Unsupported operating system $os")
}
library("skikoCurrentOs", "org.jetbrains.skiko",
currentOsArtifact).versionRef("skiko")
}

skikoCurrentOs was replaced by a fat jar recently, so it is better if we remove it now.

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.

Shagen Ogandzhanian (@Schahen), we need to remove not only library("skikoCurrentOs" but all the code I marked

@Schahen
Shagen Ogandzhanian (Schahen) merged commit 154afba into jb-main Aug 17, 2026
23 checks passed
@Schahen
Shagen Ogandzhanian (Schahen) deleted the sh/pass_skiko_version_env_variable branch August 17, 2026 09:09
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