apply plugin: 'java' apply plugin: 'application' mainClassName = 'Subconscious' jar { manifest { attributes( 'Class-Path': configurations.compile.collect { it.getName() }.join(' '), 'Main-Class': 'Subconscious' ) } } apply plugin: 'cpp' model { components { main(NativeExecutableSpec) { binaries.all { cppCompiler.args '-std=c++14', '-Wall' linker.args '-lsfml-graphics', '-lsfml-window', '-lsfml-system' } } } }