plugins { `java-library` `maven-publish` } group = "net.woggioni" version = "0.1" java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } publishing { publications { create("myLibrary") { from(components["java"]) } } } allprojects { repositories { mavenLocal() jcenter() mavenCentral() } } fun property(name : String) = project.property(name).toString() dependencies { implementation("net.java.dev.jna", "jna", property("jna.version")) // https://mvnrepository.com/artifact/org.projectlombok/lombok compileOnly("org.projectlombok", "lombok", property("lombok.version")) annotationProcessor("org.projectlombok", "lombok", property("lombok.version")) testCompileOnly("org.projectlombok", "lombok", property("lombok.version")) testAnnotationProcessor("org.projectlombok", "lombok", property("lombok.version")) testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", property("junit.version")) testImplementation("org.junit.jupiter","junit-jupiter-api", property("junit.version")) testImplementation("org.junit.jupiter","junit-jupiter-params", property("junit.version")) } tasks.withType { useJUnitPlatform { } }