From 4f9a36ba620b78d0caaf0879f2b86efb2c8d7ba7 Mon Sep 17 00:00:00 2001 From: dacopan Date: Sun, 12 Mar 2023 16:58:19 -0500 Subject: [PATCH] Support for gradle unit test --- CHANGELOG.md | 3 +++ modules/core/build.gradle | 2 +- .../ashald/envfile/products/idea/GradleEnvFileProvider.java | 3 ++- src/main/resources/META-INF/plugin.xml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58a187b..c2231e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning]. +## 3.4.3 - 2023-03-12 +Support for gradle unit test + ## 3.4.1 - 2022-10-04 ### Fixed diff --git a/modules/core/build.gradle b/modules/core/build.gradle index cdacff4..3d1334e 100644 --- a/modules/core/build.gradle +++ b/modules/core/build.gradle @@ -4,7 +4,7 @@ plugins { dependencies { implementation 'org.jetbrains:annotations:23.0.0' - implementation 'org.yaml:snakeyaml:1.32' + implementation 'org.yaml:snakeyaml:1.33' implementation 'com.google.guava:guava:31.1-jre' diff --git a/modules/products/idea/src/main/java/net/ashald/envfile/products/idea/GradleEnvFileProvider.java b/modules/products/idea/src/main/java/net/ashald/envfile/products/idea/GradleEnvFileProvider.java index 63d7021..5e3503f 100644 --- a/modules/products/idea/src/main/java/net/ashald/envfile/products/idea/GradleEnvFileProvider.java +++ b/modules/products/idea/src/main/java/net/ashald/envfile/products/idea/GradleEnvFileProvider.java @@ -19,7 +19,8 @@ public class GradleEnvFileProvider implements GradleExecutionEnvironmentProvider @Override public boolean isApplicable(final ExecuteRunConfigurationTask executeRunConfigurationTask) { - return executeRunConfigurationTask.getRunProfile() instanceof ApplicationConfiguration; + return executeRunConfigurationTask.getRunProfile() instanceof ApplicationConfiguration || + executeRunConfigurationTask.getRunProfile() instanceof GradleRunConfiguration; } @Override diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 224ed46..ae8f259 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -1,7 +1,7 @@ net.ashald.envfile EnvFile - 3.4.1 + 3.4.3 Borys Pierov