Skip to content

Commit

Permalink
Fix Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
UnRealDinnerbone committed Jun 9, 2023
1 parent 3b1ff80 commit 3778769
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 2.0.2

- Updated Dependencies
- Fixed Bugs

### 2.0.1

- Fix Jar Names
Expand Down
4 changes: 2 additions & 2 deletions Common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
id 'maven-publish'
}

archivesBaseName = "${project.property("mod_name")}-${project.name}"

apply {
from file("../gradle/scripts/maven.gradle")
}

archivesBaseName = "${project.property("mod_name")}-${project.name}"

minecraft {
version(minecraft_version)
}
Expand Down
4 changes: 2 additions & 2 deletions Forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ plugins {
id 'org.spongepowered.mixin' version '0.7-SNAPSHOT'
}

archivesBaseName = "${project.property("mod_name")}-${project.name}"

apply {
from file("../gradle/scripts/maven.gradle")
}

archivesBaseName = "${project.property("mod_name")}-${project.name}"

Project commonProject = parent.project("Common")

def mixinEnabled = project.property("mixinsEnabled") == "true"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ subprojects {
ext.ENV = env
ext.SNAPSHOT = isSnapshot

version = "${parent.mod_version}${!isSnapshot ? "-build.${ENV.GITHUB_RUN_NUMBER ?: 9999}": ""}+mc${parent.minecraft_version}${isSnapshot ? '-SNAPSHOT' : ''}"
version = "${parent.mod_version}+mc${parent.minecraft_version}${isSnapshot ? '-SNAPSHOT' : ''}"
group = parent.maven_group

jar {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fabric_version=0.83.0+1.20
fabric_loader_version=0.14.21

# Other
trenzalore_version=2.0.2
trenzalore_version=2.1.1

# Gradle
org.gradle.jvmargs=-Xmx3G
Expand Down
2 changes: 1 addition & 1 deletion gradle/scripts/maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName + "-" + project.name
artifactId project.archivesBaseName
version project.version
from components.java
}
Expand Down

0 comments on commit 3778769

Please sign in to comment.