Skip to content

Commit

Permalink
Merge pull request #1314 from PacoVK/1292-replace-http-builder
Browse files Browse the repository at this point in the history
#1292 remove http builder and httpmime
  • Loading branch information
PacoVK committed Dec 20, 2023
2 parents 10f9f28 + fccdf9a commit e3be522
Show file tree
Hide file tree
Showing 49 changed files with 2,291 additions and 1,230 deletions.
23 changes: 11 additions & 12 deletions Config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ confluence.with {
// https://[yourServer]
api = 'https://[yourServer]'

// requests per second for confluence API calls
rateLimit = 10

// Additionally, spaceKey, subpagesForSections, pagePrefix and pageSuffix can be globally defined here. The assignment in the input array has precedence

// the key of the confluence space to write to
Expand Down Expand Up @@ -238,6 +241,9 @@ jira.with {
// endpoint of the JiraAPI (REST) to be used
api = 'https://your-jira-instance'

// requests per second for Jira API calls
rateLimit = 10

/*
WARNING: It is strongly recommended to store credentials securely instead of commiting plain text values to your git repository!!!
Expand Down Expand Up @@ -279,26 +285,19 @@ jira.with {
User can configure custom fields IDs and name those for column header,
i.e. customfield_10026:'Story Points' for Jira instance that has custom field with that name and will be saved in a coloumn named "Story Points"
*/
requests = [
new JiraRequest(
exports = [
[
filename:"File1_Done_issues",
jql:"project='%jiraProject%' AND status='Done' ORDER BY duedate ASC",
customfields: [customfield_10026:'Story Points']
),
new JiraRequest(
],
[
filename:'CurrentSprint',
jql:"project='%jiraProject%' AND Sprint in openSprints() ORDER BY priority DESC, duedate ASC",
customfields: [customfield_10026:'Story Points']
),
]
]
}

@groovy.transform.Immutable
class JiraRequest {
String filename //filename (without extension) of the file in which JQL results will be saved. Extension will be determined automatically for Asciidoc or Excel file
String jql // Jira Query Language syntax
Map<String,String> customfields // map of customFieldId:displayName values for Jira fields which don't have default names, i.e. customfield_10026:StoryPoints
}
//end::jiraConfig[]

//tag::openApiConfig[]
Expand Down
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ dependencies {
(libs.junit),
(libs.spock.core),
gradleTestKit(),
//for the renderToConfluence Task
(libs.httpmime),
(libs.jsoup),
(libs.http.builder),
("org.docToolchain:core")
)
testRuntimeOnly(libs.byte.buddy)
compileClasspath((libs.http.builder))
compileClasspath((libs.http.client))
}

test {
Expand Down
1 change: 1 addition & 0 deletions changelog.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project tries to adhere to https://semver.org/spec/v2.0.0.html[Semantic

* https://github.com/docToolchain/docToolchain/issues/1231[#1231: docker: port mapping only needed for previewSite]
* https://github.com/docToolchain/docToolchain/issues/1309[#1309: deprecate previewSite task]
* https://github.com/docToolchain/docToolchain/issues/1292[#1292: remove http builder and httpmime]

== 3.1.2 - 2023-11-16

Expand Down
5 changes: 3 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ group = "org.docToolchain"

dependencies {
compileOnly((libs.groovy.all))
implementation((libs.http.builder))
implementation((libs.httpmime))
implementation((libs.http.client))
implementation((libs.jsoup))
implementation((libs.poi.ooxml))
implementation((libs.guava))

testImplementation(libs.spock.reports) {
exclude group: 'org.codehaus.groovy', module: 'groovy-xml'
Expand Down

This file was deleted.

0 comments on commit e3be522

Please sign in to comment.