Skip to content

Commit

Permalink
Update buildscript and fix mod metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
StartsMercury committed Jan 7, 2025
1 parent 5b34860 commit 10d5438
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 16 deletions.
33 changes: 21 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("NAME_SHADOWING")

import dev.crmodders.cosmicloom.CosmicLoomPlugin
import dev.crmodders.cosmicloom.task.tasks.RunClientTask
import dev.crmodders.cosmicloom.task.tasks.RunServerTask
Expand All @@ -7,6 +9,8 @@ object Constants {
const val MODID = "flux-api"
const val VERSION = "0.8.0-alpha.3"

const val SUBGROUP = "${GROUP}.${MODID}"

const val VERSION_COSMIC_REACH = "0.3.14"
const val VERSION_COSMIC_QUILT = "2.3.2"
}
Expand Down Expand Up @@ -34,15 +38,24 @@ java {
}

subprojects {
apply<JavaLibraryPlugin>()
apply<CosmicLoomPlugin>()
apply<MavenPublishPlugin>()

base {
group = Constants.GROUP
group = Constants.SUBGROUP
archivesName = name
version = Constants.VERSION
}
}

dependencies {
subprojects {
api(project)
include(project)
}
}

allprojects {
loom {
splitEnvironmentSourceSets()
Expand Down Expand Up @@ -136,19 +149,15 @@ allprojects {
}
}
}
}

dependencies {
subprojects { include(project) }
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group as String
artifactId = project.base.archivesName.get()

publishing {
publications {
create<MavenPublication>("maven") {
groupId = Constants.GROUP
artifactId = Constants.MODID

from(components["java"])
from(components["java"])
}
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions flux-api-base/src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"schema_version": 1,

"quilt_loader": {
"group": "${mod_group}",
"id": "flux-api-base",
"version": "${mod_version}",

"intermediate_mappings": "net.fabricmc:intermediary",

"metadata": {
"name": "Flux API Base",
"description": "Flux common module.",
"contributors": {
"CRModders": "Owner"
},

"contact": {
"issues": "https://github.com/CRModders/FluxAPI/issues",
"sources": "https://github.com/CRModders/FluxAPI"
},

"license": "MIT",

"icon": "assets/flux-api-base/icon.png"
},

"depends": [
{
"id": "cosmicquilt",
"versions": "*"
},
{
"id": "cosmicreach",
"versions": ">=${cosmic_reach_version}"
}
]
}
}
Binary file added src/main/resources/assets/flux-api/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
"name": "Flux API",
"description": "Community focused API for Cosmic Reach Quilt.",
"contributors": {
"Zombii": "Owner",
"nanobass": "Developer",
"coolGi": "Developer",
"StartsMercury": "Developer"
"CRModders": "Owner"
},

"contact": {
Expand Down

0 comments on commit 10d5438

Please sign in to comment.