We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e6a799 commit eaa6cabCopy full SHA for eaa6cab
build.gradle.kts
@@ -42,16 +42,11 @@ if (System.getProperty("idea.sync.active").toBoolean()) {
42
43
val icon = ideaDir.file("icon.png").asFile
44
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) }
+ copy {
+ from("docs/img/logos/polaris-brandmark.png")
+ into(ideaDir)
+ rename { _ -> "icon.png" }
+ }
55
}
56
57
0 commit comments