A 19-year-old man will spend three years behind bars after becoming the first Australian convicted of sharing violent Islamic State content online.