Kobe Bryant will retire after this season

Kobe Bryant, who helped the Lakers win five NBA championships over a 20-year career spent entirely in Los Angeles, announced Sunday on The Players’ Tribune that he will retire after this season, declaring, “This season is all I have left to give.”

In a piece titled “Dear Basketball,” the 37-year-old wrote in the form of a poem that the sport “gave a six-year-old boy his Laker dream/And I’ll always love you for it.”

“But I can’t love you obsessively for much longer,” Bryant wrote. “This season is all I have left to give. My heart can take the pounding. My mind can handle the grind but my body knows it’s time to say goodbye.

“And that’s OK. I’m ready to let you go.”

Lakers coach Byron Scott said Bryant will play in Sunday’s game against the Indiana Pacers and emphasized that the star guard’s “purpose is to finish out this season and play.”

“I think he still loves this game,” Scott told reporters. “He still has a passion for it. He’s still a competitive young man.”

Bryant’s decision is not totally unexpected, given that he has said many times in recent weeks that he has considering making this season his last. After two decades, two Olympic gold medals, five championship rings, 17 All-Star selections, an 81-point game that ranks as the second-best in NBA history and more than 32,000 points, Bryant’s career is officially winding down.

“With 17 NBA All-Star selections, an NBA MVP, five NBA championships with the Lakers, two Olympic gold medals and a relentless work ethic, Kobe Bryant is one of the greatest players in the history of our game,” NBA commissioner Adam Silver said in a statement. “Whether competing in the Finals or hoisting jump shots after midnight in an empty gym, Kobe has an unconditional love for the game.

“I join Kobe’s millions of fans around the world in congratulating him on an outstanding NBA career and thank him for so many thrilling memories.”

This season has been a struggle for Bryant, whose young and rebuilding Lakers are mired at the bottom of the Western Conference standings; he’s also shooting a career-worst 31.5 percent. Injuries have dogged him in recent years as well, limiting him to 41 of a possible 164 games the previous two seasons. Bryant is averaging more field goal attempts per game this season (a team-high 16.7) than points (15.7). His field-goal percentage and 3-point percentage both rank last in the NBA among qualified players.

Yet despite the rough start to the season, the Lakers have publicly supported Bryant. Scott told ESPN on Friday that he would not bench the 17-time All-Star for his poor play.

The Lakers have 66 games remaining after Sunday, and the remainder of the season will likely turn into an adoration tour of sorts for Bryant, who has already received long ovations from normally hostile fans on road trips this season, particularly in places such as New York and Miami, where crowds sensed they might be seeing him as an opponent for the final time.

The Lakers’ next road game — perhaps not coincidentally, given the timing of Bryant’s announcement — is on Tuesday in Philadelphia, Bryant’s hometown.

Bryant is in the final year of a two-year deal that will pay him $25 million in 2015-16 and makes him the NBA’s highest-paid player this season. The expiring contract and numerous injuries had led to widespread speculation that Bryant would retire after this season. Lakers general manager Mitch Kupchak had publicly said on multiple occasions that the franchise expected the former league MVP to retire at the end of his current contract.

Bryant remains in contention for a spot on Team USA’s 12-man roster for the 2016 Olympic Games in Rio, USA Basketball chairman Jerry Colangelo told ESPN’s Marc Stein. Colangelo said Bryant’s announcement “doesn’t have any bearing” on the star guard’s status for the Rio Games.

“We have this whole season to look at all of our players,” Colangelo said Sunday.

Even before he publicly confirmed this season will be his last, Bryant said earlier this month that playing in Rio, which would give him an opportunity to win a third gold medal after triumphs in Beijing in 2008 and London in 2012, has great appeal to him.

“It would mean the world to me to be around those guys,” Bryant told the Associated Press earlier this month.

Bryant was drafted out of high school by the Charlotte Hornets with the 13th overall pick in 1996, then was traded to the Lakers. He helped Los Angeles win NBA titles in 2000, 2001, 2002, 2009 and 2010 and was named the league’s MVP in 2008. He currently is third on the NBA’s all-time scoring list, behind only Kareem-Abdul-Jabbar and Karl Malone.

Bryant won the dunk contest at All-Star Weekend as a rookie and played in the All-Star Game for the first time the following year, and a star was quickly born. The 81 points he scored against Toronto on Jan. 22, 2006, are second only to Wilt Chamberlain’s 100-point game in NBA history, and Bryant is the only NBA player to spend 20 consecutive seasons with one team.

ESPN.com’s Marc Stein and The Associated Press contributed to this report.