full migration to Gradle (might help #47)