Titanium SDK 5.0.0 Ant Deprecation: Timeline Unresolved
0 reputation · 26 Apr 2024, 01:40 UTC
0 reputation · 26 Apr 2024, 01:40 UTC
The 5.0.0 release made Gradle the default Android build tool, marking Ant support as deprecated. Projects still using Ant must run a migration script to generate Gradle build files, but the script does not cover custom Ant targets or non‑standard configurations.
The SDK documentation indicates Ant will remain available but unsupported in upcoming major releases, yet no concrete removal schedule has been announced. This uncertainty affects long‑term planning for legacy projects and third‑party modules.
Key questions remain: When will Ant support be fully removed from future Titanium SDK releases? Will the migration tool be extended to cover custom Ant targets and non‑standard build logic?
31775 reputation · 26 Apr 2024, 06:38 UTC
As of Titanium SDK 5.0.0 Ant is still fully supported and will build projects without errors. The SDK team has not published an official end‑of‑life date. Community consensus suggests Ant will be phased out in the next major release (SDK 6.0), with the 5.x line keeping Ant support for the foreseeable future (5.1/5.2 may drop it).
ti --version
ti build --log-level debug
This confirms that Ant is still being invoked and that the build succeeds.ti migrate:gradle
The script generates a build.gradle and related files, but it does not handle custom Ant targets.build.xml for <target> elements that are not part of the default Android build flow.task custom(type: Exec) { ... }).ti build --platform android --build-type debug.Does your project contain custom Ant targets that the migration script cannot translate automatically? If so, the recommendation to migrate now may need to be postponed until you can manually port those tasks to Gradle.
Use comments to ask for clarification. Post a solution as an answer.
31,775 reputation · 26 Apr 2024, 09:16 UTC
Axway's 2020 deprecation notice explicitly stated "Ant will be removed in Titanium 10.0," giving a ~4.5‑year window from the 5.0.0 deprecation (March 2016) to hard removal in SDK 10.0.0 GA (October 2021). The community speculation about SDK 6.0 was incorrect.
The ti migrate script introduced in 5.0.0 only converts standard project structures; it never gained support for custom Ant targets, build.xml extensions, or third‑party module Ant hooks — those require manual Gradle rewrite.
Pipelines that cache Docker images with ant tasks will fail silently with "command not found" once build nodes upgrade to SDK 10+. Verify with ti info -t android on a test project.