Skip to content

Commit eaa6cab

Browse files
committed
Don't fail IntelliJ import for Polaris logo download
When working without network/internet access, the logo download might fail the whole build. This change replaces the logo download with a file-copy.
1 parent 5e6a799 commit eaa6cab

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

build.gradle.kts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,11 @@ if (System.getProperty("idea.sync.active").toBoolean()) {
4242

4343
val icon = ideaDir.file("icon.png").asFile
4444
if (!icon.exists()) {
45-
val img =
46-
java.net
47-
.URI(
48-
"https://raw.githubusercontent.com/apache/polaris/main/docs/img/logos/polaris-brandmark.png"
49-
)
50-
.toURL()
51-
.openConnection()
52-
.getInputStream()
53-
.use { inp -> inp.readAllBytes() }
54-
ideaDir.file("icon.png").asFile.outputStream().use { out -> out.write(img) }
45+
copy {
46+
from("docs/img/logos/polaris-brandmark.png")
47+
into(ideaDir)
48+
rename { _ -> "icon.png" }
49+
}
5550
}
5651
}
5752

0 commit comments

Comments
 (0)