Both involve creating another Gradle subproject. The first makes the js subproject a sibling of the core project and symlinking the source. The second (and my preferred) method makes the js subproject a subproject of the core and adding the core main src to the sourceSets.