plugins { id 'java' id 'maven-publish' } sourceSets.main { java { srcDirs = ['src'] } resources { srcDirs = ['src'] include '**/*.properties' include '**/*.gif' include '**/*.png' include '**/*.pro' } } afterEvaluate { publishing { publications.getByName(project.name) { pom { description = 'Java annotations to configure ProGuard, the free shrinker, optimizer, obfuscator, and preverifier for Java bytecode' } } } }