File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/kotlin/com/github/reviversmc/themodindex/validation Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ plugins {
4
4
}
5
5
6
6
group = " com.github.reviversmc.themodindex.validation"
7
- version = " 5.0.0 "
7
+ version = " 5.0.1 "
8
8
9
9
repositories {
10
10
mavenCentral()
11
11
maven(" https://jitpack.io" )
12
12
}
13
13
14
14
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" )
16
16
api(" org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4" )
17
17
}
18
18
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.github.reviversmc.themodindex.validation
2
2
3
3
import com.github.reviversmc.themodindex.api.data.IndexJson
4
4
import com.github.reviversmc.themodindex.api.data.ManifestJson
5
+ import com.github.reviversmc.themodindex.api.data.ManifestJsonWithOverrides
5
6
import kotlinx.coroutines.*
6
7
import kotlinx.coroutines.sync.Semaphore
7
8
import kotlinx.coroutines.sync.withPermit
@@ -116,12 +117,12 @@ fun main(args: Array<String>) {
116
117
launch {
117
118
manifestDownloadSemaphore.withPermit {
118
119
try {
119
- val manifest: ManifestJson = json.decodeFromString(
120
+ val manifest = json.decodeFromString< ManifestJsonWithOverrides > (
120
121
File (
121
122
" $repoToCheck /${it.substringBefore(" :" )} " ,
122
123
" ${it.substringAfter(" :" )} .json"
123
124
).readText()
124
- )
125
+ ).toManifestJson()
125
126
val currentlyChecked = checkedManifests.incrementAndGet()
126
127
try {
127
128
validateManifestRegex(manifest)
You can’t perform that action at this time.
0 commit comments