Update Concrete to support the new extensible update manifest format.

This commit is contained in:
Alex Zenla 2023-03-13 16:31:52 -07:00
parent 681c984b0a
commit 58aa162aa3
Signed by: alex
GPG Key ID: C0780728420EBFE5
6 changed files with 76 additions and 1 deletions

62
artifacts/manifest.json Normal file
View File

@ -0,0 +1,62 @@
{
"items": [
{
"name": "foundation-bifrost",
"type": "bukkit-plugin",
"version": "DEV",
"dependencies": [
"foundation-core"
],
"files": [
{
"name": "foundation-bifrost-DEV-plugin.jar",
"type": "plugin-jar",
"path": "foundation-bifrost/build/libs/foundation-bifrost-DEV-plugin.jar"
}
]
},
{
"name": "foundation-chaos",
"type": "bukkit-plugin",
"version": "DEV",
"dependencies": [
"foundation-core"
],
"files": [
{
"name": "foundation-chaos-DEV-plugin.jar",
"type": "plugin-jar",
"path": "foundation-chaos/build/libs/foundation-chaos-DEV-plugin.jar"
}
]
},
{
"name": "foundation-core",
"type": "bukkit-plugin",
"version": "DEV",
"dependencies": [],
"files": [
{
"name": "foundation-core-DEV-plugin.jar",
"type": "plugin-jar",
"path": "foundation-core/build/libs/foundation-core-DEV-plugin.jar"
}
]
},
{
"name": "foundation-heimdall",
"type": "bukkit-plugin",
"version": "DEV",
"dependencies": [
"foundation-core"
],
"files": [
{
"name": "foundation-heimdall-DEV-plugin.jar",
"type": "plugin-jar",
"path": "foundation-heimdall/build/libs/foundation-heimdall-DEV-plugin.jar"
}
]
}
]
}

View File

@ -10,3 +10,7 @@ dependencies {
implementation(project(":common-plugin")) implementation(project(":common-plugin"))
compileOnly(project(":foundation-shared")) compileOnly(project(":foundation-shared"))
} }
plugin {
dependency(project(":foundation-core"))
}

View File

@ -6,3 +6,7 @@ dependencies {
implementation(project(":common-plugin")) implementation(project(":common-plugin"))
compileOnly(project(":foundation-shared")) compileOnly(project(":foundation-shared"))
} }
plugin {
dependency(project(":foundation-core"))
}

View File

@ -7,3 +7,7 @@ dependencies {
compileOnly(project(":foundation-shared")) compileOnly(project(":foundation-shared"))
implementation(project(":common-heimdall")) implementation(project(":common-heimdall"))
} }
plugin {
dependency(project(":foundation-core"))
}

View File

@ -40,7 +40,7 @@ dependencyResolutionManagement {
versionCatalogs { versionCatalogs {
create("libs") { create("libs") {
version("versions-plugin", "0.45.0") version("versions-plugin", "0.45.0")
version("concrete", "0.11.0") version("concrete", "0.14.0")
plugin("versions", "com.github.ben-manes.versions").versionRef("versions-plugin") plugin("versions", "com.github.ben-manes.versions").versionRef("versions-plugin")

View File

@ -6,6 +6,7 @@ rm -rf artifacts/
mkdir -p artifacts/ mkdir -p artifacts/
mkdir -p artifacts/build/manifests mkdir -p artifacts/build/manifests
cp build/manifests/update.json artifacts/build/manifests/ cp build/manifests/update.json artifacts/build/manifests/
cp build/manifests/manifest.json artifacts/
find . -name "*-plugin.jar" | grep "foundation-" | while read -r JAR find . -name "*-plugin.jar" | grep "foundation-" | while read -r JAR
do do