Skip to content

Commit

Permalink
ok use back json for setting storage
Browse files Browse the repository at this point in the history
it's hard to make python scripts support yaml in github action env. doable, not worth it
  • Loading branch information
Fallen-Breath committed Jun 17, 2023
1 parent dbf5345 commit 8aa4beb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ preprocess {
def mc116 = createNode('1.16.5', 1_16_05, 'yarn')
def mc117 = createNode('1.17.1', 1_17_01, 'yarn')
def mc118 = createNode('1.18.2', 1_18_02, 'yarn')
def mc1192 = createNode('1.19.2', 1_19_02, 'yarn')
def mc1193 = createNode('1.19.3', 1_19_03, 'yarn')
def mc1192 = createNode('1.19.2', 1_19_02, 'yarn') // TODO: drop support when mc1.21 is out
def mc1193 = createNode('1.19.3', 1_19_03, 'yarn') // TODO: drop support when mc1.21 is out
def mc1194 = createNode('1.19.4', 1_19_04, 'yarn')
def mc120 = createNode('1.20.1', 1_20_01, 'yarn')

Expand Down
10 changes: 3 additions & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import groovy.json.JsonSlurper

pluginManagement {
repositories {
maven {
Expand All @@ -23,13 +25,7 @@ pluginManagement {
}
}

buildscript {
repositories { mavenCentral() }
dependencies { classpath 'org.yaml:snakeyaml:2.0' }
}

import org.yaml.snakeyaml.Yaml
def settings = new Yaml().load(file('settings.yml').text)
def settings = new JsonSlurper().parseText(file('settings.json').text)
for (String version : settings.versions) {
include(":$version")

Expand Down
13 changes: 13 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"versions": [
"1.14.4",
"1.15.2",
"1.16.5",
"1.17.1",
"1.18.2",
"1.19.2",
"1.19.3",
"1.19.4",
"1.20.1"
]
}
13 changes: 0 additions & 13 deletions settings.yml

This file was deleted.

0 comments on commit 8aa4beb

Please sign in to comment.