Skip to content

Commit

Permalink
Fix plugin verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ellizio committed Aug 21, 2024
1 parent c93c2f7 commit 58d0428
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.jetbrains.plugin.structure.base.utils.isFile
import groovy.ant.FileNameFinder
import org.apache.tools.ant.taskdefs.condition.Os
import org.jetbrains.intellij.platform.gradle.Constants
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import java.io.ByteArrayOutputStream

plugins {
Expand All @@ -14,6 +15,8 @@ plugins {
val isWindows = Os.isFamily(Os.FAMILY_WINDOWS)
extra["isWindows"] = isWindows

version = extra["PluginVersion"] as String

val DotnetSolution: String by project
val BuildConfiguration: String by project
val ProductVersion: String by project
Expand All @@ -30,24 +33,23 @@ allprojects {
repositories {
intellijPlatform {
defaultRepositories()
intellijDependencies()
jetbrainsRuntime()
}
}

dependencies {
intellijPlatform {
rider(ProductVersion, false)
jetbrainsRuntime()
instrumentationTools()
jetbrainsRuntime()

// TODO: add plugins
// bundledPlugin("org.jetbrains.plugins.terminal")
// bundledPlugin("com.jetbrains.ChooseRuntime:1.0.9")
}
}

version = extra["PluginVersion"] as String

tasks.wrapper {
gradleVersion = "8.8"
distributionType = Wrapper.DistributionType.ALL
Expand All @@ -67,7 +69,17 @@ sourceSets {
}

tasks.compileKotlin {
kotlinOptions { jvmTarget = "17" }
kotlinOptions { jvmTarget = "21" }
}

intellijPlatform {
pluginVerification {
cliPath = File("/libs/verifier-cli-1.373-all.jar") // https://github.com/JetBrains/intellij-plugin-verifier
ides {
ide(IntelliJPlatformType.Rider, "2024.2")
ide(IntelliJPlatformType.Rider, "2024.2.1")
}
}
}

val setBuildTool by tasks.registering {
Expand Down Expand Up @@ -201,11 +213,12 @@ tasks.prepareSandbox {
// ))
//}
//
//tasks.signPlugin {
// certificateChain.set(providers.environmentVariable("CERTIFICATE_CHAIN"))
// privateKey.set(providers.environmentVariable("PRIVATE_KEY"))
// password.set(providers.environmentVariable("PRIVATE_KEY_PASSWORD"))
//}

tasks.signPlugin {
certificateChain.set(providers.environmentVariable("CERTIFICATE_CHAIN"))
privateKey.set(providers.environmentVariable("PRIVATE_KEY"))
password.set(providers.environmentVariable("PRIVATE_KEY_PASSWORD"))
}

tasks.publishPlugin {
dependsOn(testDotNet)
Expand All @@ -231,7 +244,7 @@ artifacts {
add(riderModel.name, provider {
intellijPlatform.platformPath.resolve("lib/rd/rider-model.jar").also {
check(it.isFile) {
"$it : rider-model.jar is not found at $riderModel"
"rider-model.jar is not found at $riderModel"
}
}
}) {
Expand Down
Binary file added libs/verifier-cli-1.373-all.jar
Binary file not shown.

0 comments on commit 58d0428

Please sign in to comment.