Skip to content

Commit 2a40d78

Browse files
committed
Fix numbered parameter type compatibility
1 parent 7582a70 commit 2a40d78

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'signing'
44

55
group 'com.assertthat.plugins'
66
archivesBaseName = "assertthat-bdd-gradle-tasks"
7-
version '1.7-SNAPSHOT'
7+
version '1.6'
88

99
sourceCompatibility = 1.7
1010
targetCompatibility = 1.7
@@ -17,7 +17,7 @@ repositories {
1717
dependencies {
1818
implementation gradleApi()
1919
implementation localGroovy()
20-
compile group: 'com.assertthat.plugins', name: 'assertthat-bdd-standalone', version: '1.9.2'
20+
compile group: 'com.assertthat.plugins', name: 'assertthat-bdd-standalone', version: '1.9.3'
2121
}
2222

2323
task javadocJar(type: Jar) {

src/main/groovy/FeaturesTask.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class FeaturesTask extends DefaultTask {
6464
String jiraServerUrl = null
6565
@Input
6666
@Optional
67-
String numbered = null
67+
Boolean numbered = true
6868

6969
@TaskAction
7070
def downloadFeatures() {
@@ -83,7 +83,7 @@ class FeaturesTask extends DefaultTask {
8383
tags,
8484
null,
8585
jiraServerUrl,
86-
String.valueOf(numbered))
86+
numbered)
8787
APIUtil apiUtil = new APIUtil(arguments.getProjectId(), arguments.getAccessKey(), arguments.getSecretKey(), arguments.getProxyURI(), arguments.getProxyUsername(), arguments.getProxyPassword(), arguments.getJiraServerUrl())
8888
File inZip = apiUtil.download(new File(arguments.getOutputFolder()),
8989
mode, jql, tags, arguments.isNumbered())

src/main/groovy/ReportTask.groovy

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class ReportTask extends DefaultTask {
6464
@Input
6565
@Optional
6666
String jiraServerUrl = null
67-
6867
@Input
6968
@Optional
7069
String metadata = null
@@ -86,7 +85,7 @@ class ReportTask extends DefaultTask {
8685
type,
8786
jiraServerUrl,
8887
metadata,
89-
null)
88+
true)
9089
APIUtil apiUtil = new APIUtil(arguments.getProjectId(), arguments.getAccessKey(), arguments.getSecretKey(), arguments.getProxyURI(), arguments.getProxyUsername(), arguments.getProxyPassword(), arguments.getJiraServerUrl())
9190

9291
String[] files = new FileUtil().findJsonFiles(new File(arguments.getJsonReportFolder()), arguments.getJsonReportIncludePattern(), null)
@@ -95,9 +94,9 @@ class ReportTask extends DefaultTask {
9594
try {
9695
runid = apiUtil.upload(runid, arguments.getRunName(), arguments.getJsonReportFolder() + f, type, arguments.getMetadata())
9796
} catch (IOException e) {
98-
throw new MojoExecutionException("Failed to upload report", e);
97+
throw new MojoExecutionException("Failed to upload report", e)
9998
} catch (JSONException e) {
100-
throw new MojoExecutionException("Failed to upload report", e);
99+
throw new MojoExecutionException("Failed to upload report", e)
101100
}
102101
}
103102
}

0 commit comments

Comments
 (0)