Built on top of the juce::Slider component - hence no change to the JUCE source code needed.
Open the Projucer project and run the app.
480.mov
Copy files InfiniteRotarySliderComponent.h and InfiniteRotarySliderComponent.cpp from this folder to the Source folder of your project, then use Add Existing Files Projucer's option and use.