You can try below annotation on doSomething() method:
@Retryable(retryFor = MyRetryableException.class, notRecoverable=JustGiveUpException.class, maxAttempts = 3, backoff = @Backoff(delay = 2000))
Most probably, the spring-retry version that you are using, requires "notRecoverable" attribute to specify the Exception(s) which needs to be excluded from retry logic.
Hope it works.