After installing devtools and puppetmodules, I ran gradlew toolchain on newly installed machine and got the following error:
This is solved by adding --parser future option to puppet apply command, but another error also occurred:
It seems to be caused by puppetlabs-apt 3.0.0 and 4.0.0, which are recently released. Actually, their changelog says as follows:
If you're still running Puppet 3, remain on the latest puppetlabs-apt 2.x release for now, and see the documentation to upgrade to Puppet 4.