Warner Bros. has won the bidding war over several other studios for the movie version of Lin-Manuel Miranda’s musical “In the Heights,” which won the 2008 Tony Award for best musical.

The project had been set up at the Weinstein Company in 2016 but was extricated from TWC last fall after the Harvey Weinstein sexual misconduct scandal broke open. “In the Heights” is produced by Miranda, Anthony Bregman, Mara Jacobs, and Scott Sanders.

“In the Heights” is set in Washington Heights in New York City and focuses on a bodega owner who’s closing his store and retiring to the Dominican Republic after inheriting his grandmother’s fortune. The project has “Crazy Rich Asians” director Jon Chu attached along with the musical’s book writer and screenwriter Quiara Alegría Hudes. Endeavor Content represented the property and brokered the deal.

“In the Heights” had been set at Universal with Kenny Ortega attached to direct and Miranda attached to star before the studio put the project into turnaround in 2011. Miranda wrote the music and lyrics for the production and starred in the show’s lead role, earning him a nomination for the Tony Award for best actor in a musical.

Miranda followed up “In the Heights” by creating the smash Broadway hit musical “Hamilton,” which won 11 Tony awards in 2015.

“In the Heights” is the second TWC property acquired by Warner Bros. in the wake of the Harvey Weinstein scandal. The studio bought the domestic distribution rights to “Paddington 2” in November.

Miranda is repped by WME, Liebman Entertainment, and attorney Nancy Rose of Schreck Rose. Chu is repped by UTA and Artists First. Hudes is repped by WME and Objective Entertainment. The news was first reported by Deadline.