Releases: line/line-bot-sdk-java
v9.8.0 Allow setting a custom EventListener in ApiClientBuilder
What's Changed
With this release, SDK users will be able to set a custom EventListener to suit their needs when creating the API client. For Example, to enhance the observability of API calls in your system, you can leverage the OkHttpMetricsEventListener
provided by Micrometer
to record HTTP request metrics:
OkHttpMetricsEventListener okHttpMetricsEventListener = OkHttpMetricsEventListener
.builder(registry, "okhttp.requests")
.build();
MessagingApiClient messagingApiClient = MessagingApiClient.builder("your access token")
.setEventListener(okHttpMetricsEventListener)
.build();
- Allow setting a custom EventListener in ApiClientBuilder by @kabigon-sung in #1621
line-openapi updates
- chore(deps): update line-openapi digest to 3e09054 by @renovate in #1619
- chore(deps): update line-openapi digest to 69a12e8 by @renovate in #1627
- chore(deps): update line-openapi digest to 92f9320 by @renovate in #1636
Dependency updates
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.13.0 by @renovate in #1609
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.5 by @renovate in #1611
- fix(deps): update jackson monorepo to v2.19.0 by @renovate in #1612
- chore(deps): update dependency gradle to v8.14 by @renovate in #1614
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.10 by @renovate in #1615
- chore(deps): update dependency org.openapitools:openapi-generator to v7.13.0 by @renovate in #1616
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.13.0 by @renovate in #1617
- fix(deps): update openapi-generator-version to v7.13.0 by @renovate in #1618
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.11 by @renovate in #1620
- fix(deps): update dependency io.github.littleproxy:littleproxy to v2.4.2 by @renovate in #1622
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.3 by @renovate in #1623
- chore(deps): update kotlin monorepo to v2.1.21 by @renovate in #1624
- fix(deps): update retrofit monorepo to v3 (major) by @renovate in #1626
- fix(deps): update dependency org.mockito:mockito-core to v5.18.0 by @renovate in #1628
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.12 by @renovate in #1630
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.6 by @renovate in #1632
- chore(deps): update dependency gradle to v8.14.1 by @renovate in #1631
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.13 by @renovate in #1637
- fix(deps): update junit5 monorepo by @renovate in #1639
- chore(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.1 by @renovate in #1640
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.5.0 by @renovate in #1633
Other Changes
- Improve issue triage and issue template by @eucyt in #1634
- Skip specific test generation by @habara-k in #1638
New Contributors
- @kabigon-sung made their first contribution in #1621
Full Changelog: v9.7.1...v9.8.0
This release is prepared by @eucyt
v9.7.1 Fix type of CreateAudienceGroupResponse#expireTimestamp
What's Changed
Type for CreateAudienceGroupResponse#expireTimestamp
is not float or double, but integer actually. This release fixes type as bugfix.
- Fix type of expireTimestamp by @github-actions in #1608
(original PR is line/line-openapi#106)
line-openapi updates
Dependency updates
Other Changes
- Replace dependency xyz.rogfam:littleproxy with io.github.littleproxy:littleproxy 2.4.0 by @Yang-33 in #1605
Full Changelog: v9.7.0...v9.7.1
This release is prepared by @Yang-33
v9.7.0 Add includesOwnedAudienceGroups Parameter to Audience API
What's Changed
- Add includesOwnedAudienceGroups Parameter to Audience API by @github-actions in #1602
Enhancement to Shared Audiences API
Support a new query parameter includesOwnedAudienceGroups
to the client.getSharedAudienceGroups
(GET /v2/bot/audienceGroup/shared/list
). This enhancement allows users to specify whether to include audience groups owned by the user in the response. It is especially useful for users who manage both shared and owned audience groups.
Specifications
- Added the
includesOwnedAudienceGroups
parameter to the API endpoint.- Type: Boolean
- Default: false
- Description:
true
: Include audience groups owned by the LINE Official Account Manager.false
: Respond only with audience groups shared by Business Manager.
Remove deprecated API
- Removed the
/v2/bot/audienceGroup/{audienceGroupId}/activate
and/v2/bot/audienceGroup/authorityLevel
endpoints.
Documents and Reference
For more information, please refer to the links provided above.
(original PR is line/line-openapi#105)
line-openapi updates
- chore(deps): update line-openapi digest to 954b163 by @renovate in #1586
- chore(deps): update line-openapi digest to 0e669d0 by @renovate in #1590
- chore(deps): update line-openapi digest to 31fa3c7 by @renovate in #1593
- chore(deps): update line-openapi digest to 2f38058 by @renovate in #1597
Dependency updates
- chore(deps): update suzuki-shunsuke/pinact-action action to v0.2.2 by @renovate in #1583
- chore(deps): update suzuki-shunsuke/pinact-action action to v1 by @renovate in #1584
- chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.3 by @renovate in #1585
- fix(deps): update dependency io.pebbletemplates:pebble to v3.2.4 by @renovate in #1587
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.1 by @renovate in #1589
- fix(deps): update dependency org.mockito:mockito-core to v5.17.0 by @renovate in #1591
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.2 by @renovate in #1595
- chore(deps): update actions/setup-java action to v4.7.1 by @renovate in #1596
- chore(deps): update actions/setup-node action to v4.4.0 by @renovate in #1599
Other Changes
- Skip creating PR when only git submodule is updated by @Yang-33 in #1582
- Remove deprecated link by @eucyt in #1588
- Require more jobs in merge queue by @Yang-33 in #1592
- Do not create another auto PR when a job runs for PR or merge queue by @Yang-33 in #1598
- Remove audience group authority level test for cross targeting sunset by @asari-mtr in #1600
- Remove unused audience group activation and authority level tests by @asari-mtr in #1601
New Contributors
- @asari-mtr made their first contribution in #1600
Full Changelog: v9.6.1...v9.7.0
This release is prepared by @eucyt
v9.6.1 Support new Membership API and Webhook
What's Changed
Note this patch is not related to sdk users. This release is just for our test. See https://github.com/line/line-bot-sdk-java/releases/tag/v9.6.0 about new features.
line-openapi updates
- chore(deps): update line-openapi digest to 0af4f53 by @renovate in #1569
- chore(deps): update line-openapi digest to 9dec0f8 by @renovate in #1571
- chore(deps): update line-openapi digest to cc542e3 by @renovate in #1578
Dependency updates
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.5 by @renovate in #1549
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.3 by @renovate in #1550
- chore(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.14.0 by @renovate in #1551
- chore(deps): update dependency gradle to v8.13 by @renovate in #1553
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.17 by @renovate in #1554
- fix(deps): update slf4j monorepo to v2.0.17 by @renovate in #1555
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.0.2 by @renovate in #1557
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.6 by @renovate in #1558
- chore(deps): update dependency org.openapitools:openapi-generator to v7.12.0 by @renovate in #1559
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.12.0 by @renovate in #1560
- fix(deps): update openapi-generator-version to v7.12.0 by @renovate in #1562
- fix(deps): update jackson monorepo to v2.18.3 by @renovate in #1563
- fix(deps): update jackson to v2.18.3 by @renovate in #1564
- fix(deps): update mockito monorepo to v5.16.0 by @renovate in #1565
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.12.1 by @renovate in #1566
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.17 by @renovate in #1556
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.7 by @renovate in #1568
- fix(deps): update mockito monorepo to v5.16.1 by @renovate in #1572
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.18 by @renovate in #1573
- chore(deps): update kotlin monorepo to v2.1.20 by @renovate in #1574
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.4 by @renovate in #1575
Other Changes
- Auto generate unknown fallback by @habara-k in #1561
- Add EoL and new release reminder by @Yang-33 in #1570
- Pin commit hash of github actions to avoid supply chain attacks by @Yang-33 in #1576
- Grant minimum permissions to github acitons workflow jobs by @Yang-33 in #1577
- Migrate renovate config by @Yang-33 in #1581
Full Changelog: v9.6.0...v9.6.1
This release is prepared by @Yang-33
v9.6.0 Support new Membership API and Webhook
What's Changed
- Support new Membership API and Webhook by @github-actions in #1548
Support new Membership API and Webhook
We have implemented and supported new API and Webhook about Membership.
API to get a list of users who joined the membership
You can obtain a list of user IDs for users who have joined the membership of your LINE Official Account by calling client.getJoinedMembershipUsers(...)
.
Documents: https://developers.line.biz/en/reference/messaging-api/#get-membership-user-ids
Membership Webhook
We have introduced new Webhook events MembershipEvent
that indicates that a user has joined, left or renewed a membership of your LINE Official Account.
Documents: https://developers.line.biz/en/reference/messaging-api/#membership-event
For more details
For more details, check out the announcement: https://developers.line.biz/en/news/2025/02/13/membership-api/
(original PR is line/line-openapi#86)
Dependency updates
Full Changelog: v9.5.0...v9.6.0
This release is prepared by @eucyt
v9.5.0 Support API of Shared Audiences in Business Manager
What's Changed
Add /v2/bot/audienceGroup/shared path by @github-actions in #1546
Shared Audiences in Business Manager API Support
We have added and supported new API endpoints related to Shared Audiences in Business Manager.
API to Get Shared Audience Information
You can obtain detailed information about a specific audience shared in Business Manager by calling the endpoint:
- GET
https://api.line.me/v2/bot/audienceGroup/shared/{audienceGroupId}
API to Get List of Shared Audiences
You can acquire a list of audiences shared in Business Manager using the following endpoint:
- GET
https://api.line.me/v2/bot/audienceGroup/shared/list
By using the "Get Shared Audience Information" endpoint, you can retrieve more detailed data about each audience.
Documents and Reference
- News Announcement: Shared Audience Feature Release
- API Reference:
- Documentation on Audience Sharing: Using Audience Sharing
For more information, please refer to the links provided above.
(original PR is line/line-openapi#85)
line-openapi updates
Dependency updates
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.2 by @renovate in #1538
- chore(deps): update dependency gradle to v8.12.1 by @renovate in #1539
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.3 by @renovate in #1540
- chore(deps): update kotlin monorepo to v2.1.10 by @renovate in #1541
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.11.0 by @renovate in #1542
- fix(deps): update dependency io.pebbletemplates:pebble to v3.2.3 by @renovate in #1543
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.4 by @renovate in #1545
Full Changelog: v9.4.3...v9.5.0
This release is prepared by @eucyt
v9.4.3 Remove obsolete GET /v2/bot/message/delivery/ad_phone
What's Changed
- Retire GET /v2/bot/message/delivery/ad_phone by @github-actions in #1535
GET /v2/bot/message/delivery/ad_phone
was sunset.
This change removes it as it's no longer necessary to include it in line-openapi.
(original PR is line/line-openapi#82)
line-openapi updates
- Retire GET /v2/bot/message/delivery/ad_phone by @github-actions in #1535
Dependency updates
- chore(deps): update dependency org.openapitools:openapi-generator to v7.11.0 by @renovate in #1532
- fix(deps): update openapi-generator-version to v7.11.0 by @renovate in #1534
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.11.0 by @renovate in #1533
Other Changes
- Fix renovate config for gitsubmodule by @Yang-33 in #1531
- Fix double-quote handling in release creation workflow by @Yang-33 in #1536
Full Changelog: v9.4.2...v9.4.3
v9.4.2 Remove obsolete feature: Audience Match
What's Changed
- Remove obsolete feature: Audience Match by @github-actions in #1528
The Audience Match feature (/bot/ad/multicast/phone) was sunset in October 2023. This change removes it as it's no longer necessary to include it in line-openapi.
(original PR is line/line-openapi#80)
Dependency updates
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.1 by @renovate in #1525
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2 by @renovate in #1526
- fix(deps): update dependency org.assertj:assertj-core to v3.27.3 by @renovate in #1527
- chore(deps): update line-openapi digest to 5ae51b6 by @renovate in #1529
Other Changes
- Limit the timing of git submodule updates by renovate to avoid disrupting work during working hours by @Yang-33 in #1524
Full Changelog: v9.4.1...v9.4.2
This release is prepared by @Yang-33
v9.4.1 Add new errorCode 4 of NarrowcastProgressResponse
What's Changed
A new value in "NarrowcastProgressResponse#errrorCode" was defined and comments have been added to the SDK.
https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
- Add new errorCode 4 of NarrowcastProgressResponse by @github-actions in #1519
Dependency updates
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.27 by @renovate in #1502
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.1 by @renovate in #1503
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.14 by @renovate in #1504
- fix(deps): update dependency org.assertj:assertj-core to v3.27.0 by @renovate in #1505
- chore(deps): update dependency gradle to v8.12 by @renovate in #1506
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v9.48 by @renovate in #1507
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.15 by @renovate in #1508
- fix(deps): update dependency org.assertj:assertj-core to v3.27.1 by @renovate in #1510
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10 by @renovate in #1511
- fix(deps): update mockito monorepo to v5.15.2 by @renovate in #1512
- fix(deps): update dependency com.nimbusds:nimbus-jose-jwt to v10.0.1 by @renovate in #1513
- fix(deps): update dependency org.assertj:assertj-core to v3.27.2 by @renovate in #1515
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.16 by @renovate in #1516
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.28 by @renovate in #1517
- chore(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.0 by @renovate in #1518
- chore(deps): update line-openapi digest to 491e118 by @renovate in #1520
Other Changes
Full Changelog: v9.4.0...v9.4.1
This release is prepared by @eucyt
v9.4.0 Allow user pick their own logger with custom config instead
What's Changed
- Allow user pick their own logger with custom config instead.
line-openapi updates
- Codes are generated by openapi generator by @github-actions in #1486
Dependency updates
- chore(deps): update dependency org.openapitools:openapi-generator to v7.10.0 by @renovate in #1477
- chore(deps): update dependency org.openapitools:openapi-generator-gradle-plugin to v7.10.0 by @renovate in #1478
- fix(deps): update openapi-generator-version to v7.10.0 by @renovate in #1479
- chore(deps): update dependency gradle to v8.11.1 by @renovate in #1480
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.3.6 by @renovate in #1482
- chore(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.4.0 by @renovate in #1483
- chore(deps): update line-openapi digest to 6312d4b by @renovate in #1485
- chore(deps): update actions/github-script action to v7 by @renovate in #1487
- chore(deps): update line-openapi digest to ae45c77 by @renovate in #1490
- chore(deps): update line-openapi digest to e8fbce9 by @renovate in #1495
- chore(deps): update kotlin monorepo to v2.1.0 by @renovate in #1496
- fix(deps): update dependency com.fasterxml.jackson.core:jackson-databind to v2.18.2 by @renovate in #1497
- fix(deps): update jackson to v2.18.2 by @renovate in #1498
- fix(deps): update dependency org.wiremock:wiremock-standalone to v3.10.0 by @renovate in #1499
- fix(deps): update junit5 monorepo to v5.11.4 by @renovate in #1500
- fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.13 by @renovate in #1501
Other Changes
- Allow to git tag containing as prefix by @Yang-33 in #1481
- Automate to prepare release note with next version by @Yang-33 in #1484
- Open issue when release failed by @Yang-33 in #1488
- Allow renovate PR to have un committed changes by @Yang-33 in #1489
- Set title and description written in line-openapi PR by @Yang-33 in #1494
- Allow user pick their own logger with custom config instead by @trinhnx in #1455
New Contributors
Full Changelog: 9.3.1...v9.4.0
This release is prepared by @mokuzon