1subprojects { 2 apply plugin: 'java-library' 3 apply plugin: 'maven-publish' 4 5 sourceCompatibility = 1.8 6 targetCompatibility = 1.8 7 8 test { 9 testLogging { 10 events "passed", "skipped", "failed", "standardOut", "standardError" 11 exceptionFormat = 'full' 12 } 13 } 14 15 repositories { 16 mavenCentral() 17 mavenLocal() 18 } 19 20 publishing.publications { 21 library(MavenPublication).from components.java 22 } 23 24 task install(dependsOn: publishToMavenLocal) // create install "alias" 25} 26