Skip to content

Commit b0abb8a

Browse files
committed
Deprecate ueJql
1 parent b36a2b4 commit b0abb8a

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

src/main/java/org/apache/maven/plugins/announcement/AnnouncementMojo.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,10 @@ public class AnnouncementMojo extends AbstractAnnouncementMojo {
208208
private String templateEncoding;
209209

210210
/**
211-
* Use the JIRA query language instead of the JIRA query based on HTTP parameters. From JIRA 5.1 and up only JQL is
212-
* supported. JIRA 4.4 supports both JQL and URL parameter based queries. From 5.1.1 this is obsolete, since REST
213-
* queries only use JQL.
211+
* Obsolete, since REST queries always use JQL.
214212
*
215213
* @since 2.10
214+
* @deprecated ignored; remove from your configs
216215
*/
217216
@Parameter(property = "changes.useJql", defaultValue = "false")
218217
private boolean useJql;
@@ -725,8 +724,6 @@ protected List<Release> getJiraReleases() throws MojoExecutionException {
725724
jiraDownloader.setJiraPassword(jiraPassword);
726725
}
727726

728-
jiraDownloader.setUseJql(useJql);
729-
730727
jiraDownloader.setWebUser(webUser);
731728

732729
jiraDownloader.setWebPassword(webPassword);

src/main/java/org/apache/maven/plugins/jira/AbstractJiraDownloader.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import org.apache.maven.settings.Settings;
3131

3232
/**
33-
* Abstract API, more or less, to retrieving issue information from JIRA. Intended to have subclasses for the old (RSS)
34-
* and new (REST) ways of doing things.
33+
* Abstract API, more or less, to retrieve issue information from JIRA. Has a subclass for
34+
* new (REST) ways of doing things.
3535
*
3636
3737
@@ -91,12 +91,6 @@ public abstract class AbstractJiraDownloader {
9191
/** The maven settings. */
9292
protected Settings settings;
9393

94-
/**
95-
* Use JQL, JIRA query language, instead of URL parameter based queries. Note that this is down here to make it
96-
* easier for the mojo to deal with both new and old flavors.
97-
*/
98-
protected boolean useJql;
99-
10094
/** Filter the JIRA query based on the current version */
10195
protected boolean onlyCurrentVersion;
10296

@@ -337,14 +331,6 @@ public void setSettings(Settings settings) {
337331
this.settings = settings;
338332
}
339333

340-
public boolean isUseJql() {
341-
return useJql;
342-
}
343-
344-
public void setUseJql(boolean useJql) {
345-
this.useJql = useJql;
346-
}
347-
348334
public boolean isOnlyCurrentVersion() {
349335
return onlyCurrentVersion;
350336
}

src/main/java/org/apache/maven/plugins/jira/JiraReport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ public class JiraReport extends AbstractChangesReport {
8383
private String columnNames;
8484

8585
/**
86-
* Use the JIRA query language instead of the JIRA query based on HTTP parameters. From JIRA 5.1 and up only JQL is
87-
* supported. JIRA 4.4 supports both JQL and URL parameter based queries. From 5.1.1 this is obsolete, since REST
88-
* queries only use JQL.
86+
* Obsolete, since REST queries only use JQL.
8987
*
9088
* @since 2.8
89+
* @deprecated ignored; delete from your config
9190
*/
91+
@Deprecated
9292
@Parameter(property = "changes.useJql", defaultValue = "false")
9393
private boolean useJql;
9494

0 commit comments

Comments
 (0)