Skip to content

Commit 725fb60

Browse files
committed
Fixed some api mistakes.
1 parent 87154e4 commit 725fb60

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

build.gradle

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,38 @@ dokka {
110110

111111
project.tasks["jar"].dependsOn(project.tasks["dokka"])
112112

113-
jar {
113+
task fatJar(type: Jar) {
114114
manifest {
115115
attributes([
116-
"Specification-Title" : projectEssentialsName,
116+
"Specification-Title" : "$projectEssentialsName-MOD",
117117
"Specification-Vendor" : projectEssentialsVendor,
118118
"Specification-Version" : projectEssentialsVersion,
119-
"Implementation-Title" : projectEssentialsName,
119+
"Implementation-Title" : "$projectEssentialsName-MOD",
120120
"Implementation-Version" : projectEssentialsVersion,
121121
"Implementation-Vendor" : projectEssentialsVendor,
122122
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
123123
])
124124
}
125-
125+
baseName = project.name + '-mod'
126126
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
127+
with jar
128+
}
129+
130+
project.tasks["jar"].dependsOn(project.tasks["fatJar"])
131+
132+
jar {
133+
manifest {
134+
attributes([
135+
"Specification-Title" : "$projectEssentialsName-API",
136+
"Specification-Vendor" : projectEssentialsVendor,
137+
"Specification-Version" : projectEssentialsVersion,
138+
"Implementation-Title" : "$projectEssentialsName-API",
139+
"Implementation-Version" : projectEssentialsVersion,
140+
"Implementation-Vendor" : projectEssentialsVendor,
141+
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
142+
])
143+
}
144+
baseName = project.name + '-api'
127145
}
128146

129147
sourceCompatibility = targetCompatibility =

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mappingsChannelVersion=20190719-1.14.3
1414
kotlinJdkVersionTarget=jdk8
1515
kotlinxSerializationVersion=0.12.0
1616
kotlinVersion=1.3.50
17-
projectEssentialsVersion=1.14.4-1.0.0.1
17+
projectEssentialsVersion=1.14.4-1.0.0.2
1818
projectEssentialsName=Project Essentials Core
1919
projectEssentialsId=project_essentials_core
2020
projectEssentialsVendor=MairwunNx (Pavel Erokhin)

src/main/kotlin/com/mairwunnx/projectessentialscore/EntryPoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import net.minecraftforge.fml.common.Mod
77
internal class EntryPoint : EssBase() {
88
init {
99
modInstance = this
10-
modVersion = "1.14.4-1.0.0.1"
10+
modVersion = "1.14.4-1.0.0.2"
1111
logBaseInfo()
1212
validateForgeVersion()
1313
}

src/main/resources/META-INF/mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ issueTrackerURL="https://github.com/ProjectEssentials/ProjectEssentials-Core/iss
44

55
[[mods]]
66
modId="project_essentials_core"
7-
version="1.14.4-1.0.0.1"
7+
version="1.14.4-1.0.0.2"
88
displayName="Project Essentials Core"
99
updateJSONURL="https://raw.githubusercontent.com/ProjectEssentials/ProjectEssentials-Core/MC-1.14.X/update.json"
1010
displayURL="https://github.com/ProjectEssentials/ProjectEssentials-Core"

update.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"homepage": "https://github.com/ProjectEssentials/ProjectEssentials-Core/releases/tag/v1.14.4-1.0.0.1",
2+
"homepage": "https://github.com/ProjectEssentials/ProjectEssentials-Core/releases/tag/v1.14.4-1.0.0.2",
33
"1.14.4": {
4-
"1.14.4-1.0.0.1": " - Fixed not existing dependencies in jar."
4+
"1.14.4-1.0.0.2": " - Some fixes."
55
},
66
"promos": {
7-
"1.14.4-latest": "1.14.4-1.0.0.1",
8-
"1.14.4-recommended": "1.14.4-1.0.0.1"
7+
"1.14.4-latest": "1.14.4-1.0.0.2",
8+
"1.14.4-recommended": "1.14.4-1.0.0.2"
99
}
1010
}

0 commit comments

Comments
 (0)