Warner Bros. has signed Aaron Stockard to adapt “Bunker Hill: A City, A Siege, A Revolution,” set up three years ago as a possible directing vehicle for Ben Affleck.

Producers are Affleck and Matt Damon through their Pearl Street company along with Jennifer Todd.

“Bunker Hill,” written by Nathaniel Philbrick, details the events leading up to 1775’s bloody Battle of Bunker Hill in Boston. More than 200 British soldiers were killed and the battle was a turning point in the Revolutionary War as it gave encouragement to colonists by demonstrating that the local militias could stand up to British troops.

Philbrick’s book focused on 33-year-old physician Joseph Warren, a leader of the Patriot cause (who died at Bunker Hill), along with Paul Revere, Warren’s fiancée Mercy Scollay, George Washington, British General Thomas Gage and his successor William Howe.

Stoddard teamed with Affleck on “The Town” and “Gone Baby Gone.” The script for “The Town,” written by Affleck, Stoddard and Peter Craig and adapted from the Chuck Hogan novel “Prince of Thieves,” received an Academy Award nomination for adapted screenplay.

Philbrick is the author of “In the Heart of the Sea: ” which recently got the big-screen treatment from director Ron Howard.

Stockard is repped by WME and 3 Arts. The news was first reported by Deadline Hollywood.