Skip to content

Commit

Permalink
fix: gradle plugin's "ide absence warning" incorrectly renders in the…
Browse files Browse the repository at this point in the history
… IDE
  • Loading branch information
popovanton0 committed Jun 28, 2024
1 parent 2f98068 commit 56ee34f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,14 @@ You can enable/disable these features independently.

## ⚙️ Configuration

Instructions for using `buildscript`: [here](https://plugins.gradle.org/plugin/ru.ozon.kelp).
[Kelp on Gradle Plugin Portal](https://plugins.gradle.org/plugin/ru.ozon.kelp)

Instructions for using `buildscript` are [here](https://plugins.gradle.org/plugin/ru.ozon.kelp).

```kotlin
// in build.gradle.kts of the app module that developers compile frequently to launch the app
plugins {
id("ru.ozon.kelp") version "0.0.1"
id("ru.ozon.kelp") version "0.0.2"
}

kelp {
Expand Down
2 changes: 1 addition & 1 deletion kelpGradlePlugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "ru.ozon.kelp"
version = "0.0.1"
version = "0.0.2"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ internal fun checkIdePluginPresence(
}
if (msg != null) when (idePluginAbsenceBehaviour) {
NOTHING -> Unit
WARNING -> logger.error(msg)
WARNING -> logger.error("error: $msg")
BUILD_FAIL -> error(msg)
}
return idePluginAbsenceBehaviour == NOTHING || msg == null
}

private const val idePluginInstallUrl = "https://github.com/ozontech/kelp?tab=readme-ov-file#installation"
private const val idePluginInstallUrl = "https://github.com/ozontech/kelp?tab=readme-ov-file#-installation"
private const val noIdePluginMsg = "⚠️ Kelp IDE plugin is not installed or outdated. To install: $idePluginInstallUrl"

private fun wrongIdePluginVersionMsg(currentVersion: String, requiredVersion: String) =
Expand Down

0 comments on commit 56ee34f

Please sign in to comment.