diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77c251a..ed90a98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: # Setup Gradle - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + uses: gradle/actions/setup-gradle@v4 with: gradle-home-cache-cleanup: true @@ -117,7 +117,7 @@ jobs: # Setup Gradle - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + uses: gradle/actions/setup-gradle@v4 with: gradle-home-cache-cleanup: true @@ -170,7 +170,7 @@ jobs: # Run Qodana inspections - name: Qodana - Code Inspection - uses: JetBrains/qodana-action@v2024.1.5 + uses: JetBrains/qodana-action@v2024.1.8 with: cache-default-branch-only: true @@ -201,7 +201,7 @@ jobs: # Setup Gradle - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + uses: gradle/actions/setup-gradle@v4 with: gradle-home-cache-cleanup: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8db806b..04f7cb5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: # Setup Gradle - name: Setup Gradle - uses: gradle/action/setup-gradle@v3 + uses: gradle/actions/setup-gradle@v4 with: gradle-home-cache-cleanup: true diff --git a/.gitignore b/.gitignore index 97a8204..19fc996 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,7 @@ .qodana build /keys/ + +/certs/ + +**/.env \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ca3f28..72b7da1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ ## Unreleased +## [1.0.2] - 2024-11-29 + +### Changed + +- Removed build version limitation. + ## [1.0.1] - 2024-06-23 ### Changed diff --git a/build.gradle.kts b/build.gradle.kts index 5201b4e..6bdd06b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,16 @@ import org.jetbrains.changelog.Changelog import org.jetbrains.changelog.markdownToHTML +import java.io.FileReader +import java.util.Properties +import kotlin.apply + +// load .env file if it exists +File(".env").takeIf(File::exists)?.let { + Properties().apply { + load(FileReader(it)) + println(".env file found") + } +} fun properties(key: String) = providers.gradleProperty(key) @@ -16,7 +27,7 @@ plugins { group = properties("pluginGroup").get() -version = properties("pluginVersion").get() +version = project.changelog.getAll().keys.toList().first { Regex("""\d+\.\d+\.\d+""").matches(it) } // Configure project's dependencies repositories { mavenCentral() } @@ -62,6 +73,10 @@ tasks { sinceBuild = properties("pluginSinceBuild") untilBuild = properties("pluginUntilBuild") + val changelog = project.changelog // local variable for configuration cache compatibility + + version = changelog.getAll().keys.toList().first { Regex("""\d+\.\d+\.\d+""").matches(it) } + // Extract the section from README.md and provide for the // plugin's manifest pluginDescription = @@ -80,7 +95,6 @@ tasks { } } - val changelog = project.changelog // local variable for configuration cache compatibility // Get the latest available change notes from the changelog file changeNotes = properties("pluginVersion").map { pluginVersion -> diff --git a/gradle.properties b/gradle.properties index 32b78f2..646e210 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ pluginRepositoryUrl=https://github.com/j-d-ha/Code-Divider pluginVersion=1.0.1 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild=232 -pluginUntilBuild=242.* +#pluginUntilBuild=242.* # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType=IC platformVersion=2023.2.6 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8c13cfb..b46eb86 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,11 +3,11 @@ exampleLibrary = "24.1.0" # plugins -kotlin = "2.0.0" -changelog = "2.2.0" +kotlin = "2.0.21" +changelog = "2.2.1" gradleIntelliJPlugin = "1.17.4" qodana = "2024.2.3" -kover = "0.8.1" +kover = "0.8.3" [libraries] exampleLibrary = { group = "com.example", name = "exampleLibrary", version.ref = "exampleLibrary" } diff --git a/src/test/testData/rename/foo.xml b/src/test/testData/rename/foo.xml deleted file mode 100644 index b21e9f2..0000000 --- a/src/test/testData/rename/foo.xml +++ /dev/null @@ -1,3 +0,0 @@ - - 1>Foo - diff --git a/src/test/testData/rename/foo_after.xml b/src/test/testData/rename/foo_after.xml deleted file mode 100644 index 980ca96..0000000 --- a/src/test/testData/rename/foo_after.xml +++ /dev/null @@ -1,3 +0,0 @@ - - Foo -