Skip to content

Commit

Permalink
Merge pull request #400 from JetBrains-Research/pderakhshanfar/bug-fi…
Browse files Browse the repository at this point in the history
…x/Resolve-marketplace-issues

Resolve marketplace issues V2
  • Loading branch information
pderakhshanfar authored Oct 22, 2024
2 parents e1553b1 + 2b8b2d8 commit 1fa308e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
11 changes: 1 addition & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ intellijPlatform {
select {
types = listOf(IntelliJPlatformType.IntellijIdeaUltimate)
channels = listOf(ProductRelease.Channel.RELEASE)
sinceBuild = properties("pluginSinceBuild")
sinceBuild = properties("pluginUntilBuild")
untilBuild = properties("pluginUntilBuild")
}
}
Expand Down Expand Up @@ -304,15 +304,6 @@ tasks {
subList(indexOf(start) + 1, indexOf(end))
}.joinToString("\n").run { markdownToHTML(this) },
)

// Get the latest available change notes from the changelog file
changeNotes.set(
provider {
changelog.run {
getOrNull(properties("pluginVersion")) ?: getLatest()
}.toHTML()
},
)
}

publishPlugin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class JavaTestCompiler(
logger.info { "Exit code: '${executionResult.exitCode}'; Execution message: '${executionResult.executionMessage}'" }

val classFilePath = path.replace(".java", ".class")
if (!File(classFilePath).exists()) {
if (executionResult.exitCode == 0 && !File(classFilePath).exists()) {
throw ClassFileNotFoundException("Expected class file at $classFilePath after the compilation of file $path, but it does not exist.")
}
return executionResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class KotlinTestCompiler(
logger.info { "Exit code: '${executionResult.exitCode}'; Execution message: '${executionResult.executionMessage}'" }

val classFilePath = path.removeSuffix(".kt") + ".class"
if (!File(classFilePath).exists()) {
if (executionResult.exitCode == 0 && !File(classFilePath).exists()) {
throw ClassFileNotFoundException("Expected class file at $classFilePath after the compilation of file $path, but it does not exist.")
}
return executionResult
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ evosuiteVersion = 1.0.5

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 242
pluginSinceBuild = 241
pluginUntilBuild = 242.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
Expand All @@ -32,4 +32,4 @@ gradleVersion = 8.10.2
# suppress inspection "UnusedProperty"
kotlin.stdlib.default.dependency = false

jvmToolchainVersion = 17
jvmToolchainVersion = 17

0 comments on commit 1fa308e

Please sign in to comment.