Skip to content

Commit 95968df

Browse files
authored
Merge pull request #21 from ReviversMC/next/5.0.1
5.0.1
2 parents 98bdf49 + a8e6133 commit 95968df

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ plugins {
44
}
55

66
group = "com.github.reviversmc.themodindex.validation"
7-
version = "5.0.0"
7+
version = "5.0.1"
88

99
repositories {
1010
mavenCentral()
1111
maven("https://jitpack.io")
1212
}
1313

1414
dependencies {
15-
api("com.github.reviversmc:the-mod-index-api:9.1.1")
15+
api("com.github.reviversmc:the-mod-index-api:9.2.1")
1616
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
1717
}
1818

src/main/kotlin/com/github/reviversmc/themodindex/validation/Validation.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.github.reviversmc.themodindex.validation
22

33
import com.github.reviversmc.themodindex.api.data.IndexJson
44
import com.github.reviversmc.themodindex.api.data.ManifestJson
5+
import com.github.reviversmc.themodindex.api.data.ManifestJsonWithOverrides
56
import kotlinx.coroutines.*
67
import kotlinx.coroutines.sync.Semaphore
78
import kotlinx.coroutines.sync.withPermit
@@ -116,12 +117,12 @@ fun main(args: Array<String>) {
116117
launch {
117118
manifestDownloadSemaphore.withPermit {
118119
try {
119-
val manifest: ManifestJson = json.decodeFromString(
120+
val manifest = json.decodeFromString<ManifestJsonWithOverrides>(
120121
File(
121122
"$repoToCheck/${it.substringBefore(":")}",
122123
"${it.substringAfter(":")}.json"
123124
).readText()
124-
)
125+
).toManifestJson()
125126
val currentlyChecked = checkedManifests.incrementAndGet()
126127
try {
127128
validateManifestRegex(manifest)

0 commit comments

Comments
 (0)