Browse our Products

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-tasks</artifactId>
    <version>25.4</version>
    <classifier>jdk18</classifier>
</dependency>
copied!  
                                                
                                                  compile(group: 'com.aspose', name: 'aspose-tasks', version: '25.4', classifier: 'jdk18')
                                                
                                              
copied!  
<dependency org="com.aspose" name="aspose-tasks" rev="25.4">
    <artifact name="aspose-tasks" m:classifier="jdk18" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-tasks" % "25.4"
copied!  

What’s new in the Aspose.Tasks for Java 25.4

Release Highlights

Aspose.Tasks for Java 25.4 enhances Gantt chart customization and introduces advanced calendar calculation capabilities. This release empowers developers with precise control over legend bar display and timescale behavior in visual exports, while significantly improving Primavera P6 compatibility.

New Features

  • Legend Bar Control for Gantt Charts:
    Developers can now define specific bar types shown in the Gantt chart legend using the SaveOptions.setLegendItems() method, allowing for tailored presentation in exported PDFs and images.

  • Enhanced Timescale Alignment Settings:
    Introduced the TimescaleFitBehavior enumeration to control how the timescale aligns with the end of a page. This improves visual consistency in Gantt chart rendering.

  • Calendar Intersection for Advanced Date Calculations:
    A powerful API to compute intersections of task and resource calendars has been added. Users can now calculate durations, working times, and work schedule intersections with greater precision.

Bug Fixes

  • Primavera Export Compatibility:
    Addressed issues where exported Primavera P6 XML files were not importing correctly, and resource assignments for summary tasks were improperly handled.

  • Gantt and TaskUsage View Rendering Fixes:
    Corrected layout issues with the TaskUsage view, rendering near page edges, and improved rendering under single-page export conditions.

  • Auto and Manual Task Scheduling Conflict Resolved:
    Resolved a bug causing incorrect scheduling when an automatic task followed a manual task, ensuring consistency in scheduling behavior.

Public API and Backward Incompatible Changes

Added Types

  • ICalendar — Interface for performing calendar-based calculations.
  • PageLegendItem — Represents legend items for the Gantt chart export.

Added Methods and Properties

  • Calendar.getIntersectionCalendar(Calendar, Calendar)
  • ICalendar.getWorkingHours(Date, Date)
  • ICalendar.getFinishDateByStartAndWork(Date, Duration)
  • SaveOptions.getLegendItems() / setLegendItems(PageLegendItem[])
  • SaveOptions.getTimescaleFitBehavior() / setTimescaleFitBehavior(TimescaleFitBehavior)
  • LevelingOptions.setCancellationToken(CancellationToken)
  • LoadOptions.setCancellationToken(CancellationToken)
  • PrimaveraSaveOptions.setSkipSummaryAssignments(boolean)
  • PrimaveraXmlSaveOptions.setSkipSummaryAssignments(boolean)

Added Enumerations

  • TimescaleFitBehavior — Defines rendering behavior of the timescale’s right end.

Removed Enumerations

  • TaskKey.DurationFormat
  • Tsk.DURATION_FORMAT

🔍 Explore the Full Release Details

For the complete list of updates, visit Aspose.Tasks for Java 25.4 Release Notes


gantt chart legend control | calendar intersection logic | primavera export bug fix | timescale fit behavior

VersionRelease Date
25.4April 29, 2025
25.3March 31, 2025
25.2February 21, 2025
25.1January 31, 2025
24.12December 19, 2024
24.11November 27, 2024
24.10October 25, 2024
24.9September 30, 2024
24.8August 27, 2024
24.7July 29, 2024
24.6June 28, 2024
24.5May 23, 2024
24.4April 17, 2024
24.3March 26, 2024
24.2February 28, 2024
24.1January 30, 2024
23.12December 21, 2023
23.11November 21, 2023
23.10October 19, 2023
23.9September 21, 2023
23.8August 25, 2023
23.7July 21, 2023
23.6June 23, 2023
23.5May 19, 2023
23.4April 19, 2023
23.3March 15, 2023
23.2February 10, 2023
23.1January 21, 2023
22.12December 19, 2022
22.11November 18, 2022
22.10October 7, 2022
22.9September 12, 2022
22.8August 16, 2022
22.7July 14, 2022
22.6June 21, 2022
22.5May 25, 2022
22.4April 25, 2022
22.3March 23, 2022
22.2February 22, 2022
22.1January 26, 2022
21.12December 14, 2021
21.11November 17, 2021
21.10October 25, 2021
21.9September 14, 2021
21.8August 13, 2021
21.7July 10, 2021
21.6June 15, 2021
21.5May 12, 2021
21.4April 7, 2021
21.3March 16, 2021
21.2February 18, 2021
20.12December 30, 2020
20.11November 24, 2020
20.10October 16, 2020
20.8September 10, 2020
20.7July 8, 2020
20.6June 16, 2020
20.4April 22, 2020
20.2February 25, 2020
20.1January 31, 2020
19.12December 25, 2019
19.10November 8, 2019
19.9September 27, 2019
19.7August 13, 2019
19.6July 11, 2019
19.5June 3, 2019
19.4April 8, 2019
19.3March 18, 2019
18.11November 28, 2018
18.10October 31, 2018
18.8September 28, 2018
18.7July 30, 2018
18.6June 29, 2018
18.5May 31, 2018
18.4May 3, 2018
18.3March 29, 2018
17.11January 28, 2018
17.8November 13, 2017
17.5July 22, 2017
17.3.0May 16, 2017
17.1.0February 22, 2017
16.11.0December 11, 2016
9.6.0October 26, 2016
9.5.0August 21, 2016
9.4.0June 17, 2016
9.3.0March 18, 2016
9.2.0January 29, 2016
9.1.0December 30, 2015