diff --git a/build.gradle b/build.gradle index eee9132e..b4be7f1e 100644 --- a/build.gradle +++ b/build.gradle @@ -37,11 +37,6 @@ repositories { name = 'Froge' url 'https://maven.minecraftforge.net/' } - // Used for projects that do not have a maven repository, but do have a GitHub repository with working build scripts. - maven { - name = 'Jitpack' - url = 'https://jitpack.io' - } // Used for another StationAPI dependency exclusiveContent { forRepository { @@ -109,17 +104,24 @@ jar { // configure the maven publication publishing { - publications { - mavenJava(MavenPublication) { - from components.java + repositories { + mavenLocal() + maven { + url = "https://maven.glass-launcher.net/releases" + credentials { + username "${project.glass_maven_username}" + password "${project.glass_maven_password}" + } } } - // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. - repositories { - // Add repositories to publish to here. - // Notice: This block does NOT have the same function as the block in the top level. - // The repositories here will be used for publishing your artifact, not for - // retrieving dependencies. + publications { + mavenJava(MavenPublication) { + artifactId "${archivesBaseName}" + artifact ("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}.jar") { + classifier null + builtBy remapJar + } + } } } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 01c4e62c..51cd2eed 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.daemon=false mod_version=1.8.5-beta.4 maven_group=net.glasslauncher.mods -archives_base_name=modmenu +archives_base_name=ModMenu minecraft_version=b1.7.3 yarn_mappings=b1.7.3+cbcfb39