import org.plutoengine.Versions subprojects { apply(plugin = "java") apply(plugin = "java-library") apply(plugin = "maven-publish") repositories { mavenCentral() } configure { sourceCompatibility = Versions.javaTargetVersion targetCompatibility = Versions.javaTargetVersion } configure { named("main") { tasks.withType { from(allJava) } } } configure { publications { create("maven") { from(components["java"]) } } } }