Update build.gradle

This commit is contained in:
Aleksey 2021-05-25 17:10:41 +03:00
parent c1d693ad85
commit 397f24a3f3

View file

@ -1,8 +1,10 @@
plugins { plugins {
id 'fabric-loom' version '0.7-SNAPSHOT' id 'fabric-loom' version '0.7-SNAPSHOT'
id 'maven-publish' //id 'maven-publish'
} }
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
@ -88,20 +90,20 @@ jar {
} }
// configure the maven publication // configure the maven publication
publishing { //publishing {
publications { // publications {
mavenJava(MavenPublication) { // mavenJava(MavenPublication) {
artifact(remapJar) { // artifact(remapJar) {
builtBy remapJar // builtBy remapJar
} // }
artifact(sourcesJar) { // artifact(sourcesJar) {
builtBy remapSourcesJar // builtBy remapSourcesJar
} // }
} // }
} // }
//
// select the repositories you want to publish to // // select the repositories you want to publish to
repositories { // repositories {
mavenLocal() // mavenLocal()
} // }
} //}