apply from: configPath apply from: "$scriptPath/android_library.gradle" apply from: protobufNanoConfig android { namespace 'android.stats.launcher' sourceSets { main { proto { srcDir "Code/" } } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } protobuf { generateProtoTasks { all().each { task -> task.builtins { javanano { option "java_package=launcher.proto|android.stats.launcher.nano" option "enum_style=java" } } } } }