Skip to content

Commit

Permalink
Intellij publishing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Oct 11, 2024
1 parent 415c1ac commit 8228e72
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
17 changes: 10 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ subprojects {
configure<IntelliJPlatformDependenciesExtension> { intellijIdeaCommunity("2024.2.1") }
}

if (hasProperty("SgpIntellijArtifactoryBaseUrl")) {
if (hasProperty("FoundryIntellijArtifactoryBaseUrl")) {
pluginManager.apply(libs.plugins.pluginUploader.get().pluginId)
val archive = project.tasks.named<BuildPluginTask>("buildPlugin").flatMap { it.archiveFile }
val blockMapTask =
Expand All @@ -366,11 +366,11 @@ subprojects {
file.set(archive)
blockmapFile.set(
project.layout.buildDirectory.file(
"blockmap${GenerateBlockMapTask.BLOCKMAP_FILE_SUFFIX}"
"blockmap/blockmap${GenerateBlockMapTask.BLOCKMAP_FILE_SUFFIX}"
)
)
blockmapHashFile.set(
project.layout.buildDirectory.file("blockmap${GenerateBlockMapTask.HASH_FILE_SUFFIX}")
project.layout.buildDirectory.file("blockmap/blockmap${GenerateBlockMapTask.HASH_FILE_SUFFIX}")
)
}

Expand All @@ -380,9 +380,12 @@ subprojects {
notCompatibleWithConfigurationCache(
"UploadPluginTask is not compatible with the configuration cache"
)
// TODO why doesn't the flatmap below automatically handle this dependency?
dependsOn(blockMapTask)
blockmapFile.set(blockMapTask.flatMap { it.blockmapFile })
blockmapHashFile.set(blockMapTask.flatMap { it.blockmapHashFile })
url.set(
providers.gradleProperty("SgpIntellijArtifactoryBaseUrl").map { baseUrl ->
providers.gradleProperty("FoundryIntellijArtifactoryBaseUrl").map { baseUrl ->
"$baseUrl/${pluginDetails.urlSuffix}"
}
)
Expand All @@ -398,9 +401,9 @@ subprojects {
}
sinceBuild.set(pluginDetails.sinceBuild)
authentication.set(
// Sip the username and token together to create an appropriate encoded auth header
providers.gradleProperty("SgpIntellijArtifactoryUsername").zip(
providers.gradleProperty("SgpIntellijArtifactoryToken")
// Zip the username and token together to create an appropriate encoded auth header
providers.gradleProperty("FoundryIntellijArtifactoryUsername").zip(
providers.gradleProperty("FoundryIntellijArtifactoryToken")
) { username, token ->
"Basic ${"$username:$token".encode().base64()}"
}
Expand Down
2 changes: 2 additions & 0 deletions platforms/intellij/skate/change-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<h2>0.8.0</h2>
<ul>
<li>Support K2 with Skate</li>
<li>Project Gen now generates Foundry-compatible APIs</li>
<li>Raise minimum IntelliJ Platform version to 24.2.1 (Android Studio Ladybug, IntelliJ 2024.2)</li>
</ul>

<h2>0.7.7</h2>
Expand Down
2 changes: 1 addition & 1 deletion platforms/intellij/skate/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INTELLIJ_PLUGIN=true
PLUGIN_ID=com.slack.intellij.skate
PLUGIN_NAME=Skate
PLUGIN_DESCRIPTION=A plugin for IntelliJ and Android Studio for faster Kotlin and Android development!
VERSION_NAME=0.1.0
VERSION_NAME=0.8.0
PLUGIN_SINCE_BUILD=242
ARTIFACTORY_URL_SUFFIX=skate
# Opt-out flag for bundling Kotlin standard library.
Expand Down

0 comments on commit 8228e72

Please sign in to comment.