plugins { id 'java-library' id 'maven-publish' } allprojects { group = project.maven_group version = project.mod_version repositories { mavenLocal() mavenCentral() maven { url = 'https://aperlambda.github.io/maven' } } dependencies { } tasks.withType(JavaCompile) { options.encoding = "UTF-8" } // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task // if it is present. // If you remove this task, sources will not be generated. task sourcesJar(type: Jar, dependsOn: classes) { classifier = "sources" from sourceSets.main.allSource } } /* // configure the maven publication publishing { publications { mavenJava(MavenPublication) { // add all the jars that should be included when publishing to maven artifact(remapJar) { builtBy remapJar } artifact(sourcesJar) { builtBy remapSourcesJar } } } // select the repositories you want to publish to repositories { mavenLocal() } }*/