diff --git a/build.gradle.kts b/build.gradle.kts index 3fba109..865339e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { } group = "com.github.reviversmc.themodindex.validation" -version = "5.0.0" +version = "5.0.1" repositories { mavenCentral() @@ -12,7 +12,7 @@ repositories { } dependencies { - api("com.github.reviversmc:the-mod-index-api:9.1.1") + api("com.github.reviversmc:the-mod-index-api:9.2.1") api("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4") } diff --git a/src/main/kotlin/com/github/reviversmc/themodindex/validation/Validation.kt b/src/main/kotlin/com/github/reviversmc/themodindex/validation/Validation.kt index 1612496..a495961 100644 --- a/src/main/kotlin/com/github/reviversmc/themodindex/validation/Validation.kt +++ b/src/main/kotlin/com/github/reviversmc/themodindex/validation/Validation.kt @@ -2,6 +2,7 @@ package com.github.reviversmc.themodindex.validation import com.github.reviversmc.themodindex.api.data.IndexJson import com.github.reviversmc.themodindex.api.data.ManifestJson +import com.github.reviversmc.themodindex.api.data.ManifestJsonWithOverrides import kotlinx.coroutines.* import kotlinx.coroutines.sync.Semaphore import kotlinx.coroutines.sync.withPermit @@ -116,12 +117,12 @@ fun main(args: Array) { launch { manifestDownloadSemaphore.withPermit { try { - val manifest: ManifestJson = json.decodeFromString( + val manifest = json.decodeFromString( File( "$repoToCheck/${it.substringBefore(":")}", "${it.substringAfter(":")}.json" ).readText() - ) + ).toManifestJson() val currentlyChecked = checkedManifests.incrementAndGet() try { validateManifestRegex(manifest)