apply plugin: 'java-library' repositories { jcenter() } archivesBaseName = 'Simple Code Generator' version = '1.0.1' tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } dependencies { } task srcJar(type: Jar) { from sourceSets.main.allSource classifier = 'sources' } artifacts { archives srcJar }