Ah, was using maven. Thanks for the help, was able to find SDK transfert data from gateway to perspective - Module Development - Inductive Automation Forum
Once I got
<depends>
<depend>
<scope>G</scope>
<moduleId>com.inductiveautomation.perspective</moduleId>
</depend>
<depend>
<scope>D</scope>
<moduleId>com.inductiveautomation.perspective</moduleId>
</depend>
</depends>
in the gateway pom it worked