SQL Server 2014 AOAG + Replication?
IN SQL Server 2014 and earlier, the replication jobs will not continue to work after failover if you put the Distribution Database in an AG. 

If you upgrade to SQL Server 2016 or 2017, this becomes a supported configuration:


  SQL Server 2017 CU6 and SQL Server 2016 SP2-CU3 introduces support for
  replication distribution database in an AG


Set up replication distribution database in Always On availability group