Skip to content

Commit

Permalink
Fix publishing, remove jitpack source
Browse files Browse the repository at this point in the history
  • Loading branch information
calmilamsy committed Jun 29, 2024
1 parent 59bac46 commit af75438
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 16 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af75438

Please sign in to comment.