mirror of
https://github.com/ViaVersion/mcstructs-viafier.git
synced 2025-01-01 17:57:38 +01:00
Add prefix to published version
This commit is contained in:
parent
29d2ceab78
commit
bdc89dd763
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
|
||||
- name: Setup Python
|
||||
if: steps.check_changes.outputs.changes == 'y'
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
- name: Update and patch mcstructs
|
||||
if: steps.check_changes.outputs.changes == 'y'
|
||||
@ -36,7 +36,7 @@ jobs:
|
||||
|
||||
- name: Setup Java JDK
|
||||
if: steps.check_changes.outputs.changes == 'y'
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
|
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
run: git submodule update --init
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
- name: Update and patch mcstructs
|
||||
run: |
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
python mcstructs.py
|
||||
|
||||
- name: Setup Java JDK
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
|
@ -2,7 +2,8 @@ import os
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
via_nbt_version = '5.0.0'
|
||||
via_nbt_version = '5.0.0-SNAPSHOT'
|
||||
version_prefix = '5'
|
||||
|
||||
# All of this would work better with bytecode rewriting, but here we go
|
||||
replacements = {
|
||||
@ -11,6 +12,7 @@ replacements = {
|
||||
'url = "https://maven.lenni0451.net/everything"': 'url = "https://repo.viaversion.com/"',
|
||||
'api project(":MCStructs-nbt")': f'api "com.viaversion:nbt:{via_nbt_version}"',
|
||||
'maven_group=net.lenni0451.mcstructs': 'maven_group=com.viaversion.mcstructs',
|
||||
'maven_version=': f'maven_version={version_prefix}-',
|
||||
# Code changes
|
||||
'import net.lenni0451.mcstructs.nbt.tags.': 'import com.viaversion.nbt.tag.',
|
||||
'import net.lenni0451.mcstructs.nbt.': 'import com.viaversion.nbt.tag.',
|
||||
|
Loading…
Reference in New Issue
Block a user