From 5bf984c986571680bd2d27950a952978a7734bad Mon Sep 17 00:00:00 2001 From: Haroon Sheikh Date: Tue, 2 Apr 2024 17:21:37 +0100 Subject: [PATCH] Adds env arg for validate task (#88) Signed-off-by: Haroon Sheikh --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- README.md | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- plugin/gradle.properties | 2 +- plugin/src/main/java/org/gauge/gradle/GaugeValidateTask.java | 1 + 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 302835c..3e4fb1c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: gauge-plugins: java, html-report, xml-report - uses: gradle/gradle-build-action@v3 with: - gradle-version: '8.2' + gradle-version: '8.7' - name: Build with Gradle on ubuntu if: matrix.os != 'windows-latest' run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbf157a..799f52f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: gauge-plugins: java, html-report, xml-report - uses: gradle/gradle-build-action@v3 with: - gradle-version: '8.2' + gradle-version: '8.7' - name: Upload to gradle portal run: | ./gradlew plugin:build diff --git a/README.md b/README.md index 7e10cba..6e3bbbe 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ If you have an existing project, and you would like to add the plugin manually y ```groovy plugins { - id 'org.gauge' version '2.0.0' + id 'org.gauge' version '2.1.0' } repositories { @@ -64,7 +64,7 @@ buildscript { } } dependencies { - classpath "org.gauge.gradle:gauge-gradle-plugin:2.0.0" + classpath "org.gauge.gradle:gauge-gradle-plugin:2.1.0" } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 62f495d..b82aa23 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/plugin/gradle.properties b/plugin/gradle.properties index e997a9a..16cc23c 100644 --- a/plugin/gradle.properties +++ b/plugin/gradle.properties @@ -1 +1 @@ -version=2.0.0 \ No newline at end of file +version=2.1.0 \ No newline at end of file diff --git a/plugin/src/main/java/org/gauge/gradle/GaugeValidateTask.java b/plugin/src/main/java/org/gauge/gradle/GaugeValidateTask.java index dbac759..3b0174b 100644 --- a/plugin/src/main/java/org/gauge/gradle/GaugeValidateTask.java +++ b/plugin/src/main/java/org/gauge/gradle/GaugeValidateTask.java @@ -23,6 +23,7 @@ public void execute() { spec.executable(command.getExecutable()); spec.args("validate"); spec.args(command.getProjectDir()); + spec.args(command.getEnvironment()); spec.args(command.getSpecsDir()); spec.environment(GaugeConstants.GAUGE_CUSTOM_CLASSPATH, getClasspath().getAsPath()); if (null != extension) {