Terrible trade for Detroit. They give up the #8 pick and Hamilton--for what? Rip only has two years remaining on his contract. Next season, that contract will be expiring, and have real value on the trade market.
Cleveland should be looking to go all in to get the top 2 picks in the draft, though. If Minnesota is willing to give up the #2 (they shouldn't), I'm sure Gilbert will figure out a way to get it done.