A drug dealer who distributed narcotics while serving aboard the guided-missile destroyer Shoup has pleaded guilty in a case that involved the fatal heroin overdose of a fellow sailor.

On Aug. 1 at Naval Base Kitsap in Washington, Boatswain’s Mate 2nd Class Jerimiah James Allman pleaded guilty at a special court-martial of trafficking a controlled substance, wrongfully abusing drugs and lying to a special agent of the Naval Criminal Investigative Service in late 2017.

He was sentenced to 12 months confinement, reduction in rank to the lowest enlisted rank and a bad conduct discharge.

Allman’s charge sheets released to Navy Times reveal darker allegations in his case. Authorities accused Allman of providing an unnamed fellow sailor off the Shoup with the heroin that killed him in nearby Everett on May 1, 2017.

According to the charge sheets, investigators suspected Allman not only distributed heroin but also sold the prescription drug Percocet and conspired with another Shoup sailor to circulate MDMA — a mood-altering drug commonly called “Molly" or “Ecstasy.”

Prosecutors also believed Allman personally abused cocaine and methamphetamine between early 2016 and mid-2017, the documents state.

Citing federal privacy laws, military officials have declined to release the name of the sailor who died from the heroin overdose.

Originally from Ohio, Allman enlisted in the Navy in 2012. He was promoted to Boatswain’s Mate 2nd Class on June 16, 2016.

He reported to the Shoup in late 2014 after a two-year stint on the frigate Ingraham, the last of its class of Oliver Hazard Perry warships to be built.

His personal awards include the Enlisted Surface Warfare Specialist pin and a Good Conduct Medal.