Skip to content

Commit

Permalink
version 1.0.2 for PhpStorm 2022.3 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil42Russia authored Feb 13, 2024
1 parent d7346a9 commit 39d37c3
Show file tree
Hide file tree
Showing 24 changed files with 114 additions and 647 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

# Validate wrapper
- name: Gradle Wrapper Validation
uses: gradle/[email protected].4
uses: gradle/[email protected].5

# Setup Java 11 environment for the next steps
- name: Setup Java
Expand All @@ -35,13 +35,15 @@ jobs:
PROPERTIES="$(./gradlew properties --console=plain -q)"
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')"
echo "::set-output name=version::$VERSION"
echo "::set-output name=name::$NAME"
echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier"
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
# Run tests
- name: Run Tests
run: ./gradlew test
run: ./gradlew check

# Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache
Expand Down
23 changes: 0 additions & 23 deletions .run/Run Diktat.run.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .run/Run Plugin Tests.run.xml → .run/Run Tests.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</option>
<option name="taskNames">
<list>
<option value="test" />
<option value="check" />
</list>
</option>
<option name="vmOptions" value="" />
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

## [Unreleased]

## [1.0.1]
## [1.0.2] - 12.12.2022

- Adapt code for 2022.3

## [1.0.1] - 05.09.2022

- Adapt code for 2022.2

## [1.0.0]
## [1.0.0] - 03.05.2022

- First stable version.
44 changes: 23 additions & 21 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.changelog.Changelog

fun properties(key: String) = project.findProperty(key).toString()

plugins {
// Java support
id("java")
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.7.10"
id("org.jetbrains.kotlin.jvm") version "1.7.21"
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.8.0"
id("org.jetbrains.intellij") version "1.10.0"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "1.3.1"
// Diktat Plugin
id("org.cqfn.diktat.diktat-gradle-plugin") version "1.2.3"
id("org.jetbrains.changelog") version "2.0.0"
// Gradle Kover Plugin
id("org.jetbrains.kotlinx.kover") version "0.6.1"
}

group = properties("pluginGroup")
Expand All @@ -23,6 +21,14 @@ repositories {
mavenCentral()
}

// Set the JVM language level used to build project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
kotlin {
jvmToolchain(17)
}

dependencies {
}

// Configure Gradle IntelliJ Plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
intellij {
pluginName.set(properties("pluginName"))
Expand All @@ -35,20 +41,13 @@ intellij {

// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
changelog {
version.set(properties("pluginVersion"))
groups.set(emptyList())
repositoryUrl.set(properties("pluginRepositoryUrl"))
}

tasks {
// Set the JVM compatibility versions
properties("javaVersion").let {
withType<JavaCompile> {
sourceCompatibility = it
targetCompatibility = it
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = it
}
buildSearchableOptions {
enabled = false
}

wrapper {
Expand All @@ -62,9 +61,12 @@ tasks {

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

0 comments on commit 39d37c3

Please sign in to comment.