mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-14 19:25:13 -05:00
project cleanup
This commit is contained in:
parent
f47c983b68
commit
e37f590800
8 changed files with 28 additions and 30 deletions
12
.github/stale.yml
vendored
12
.github/stale.yml
vendored
|
@ -1,12 +1,12 @@
|
||||||
daysUntilStale: 14
|
daysUntilStale: 14
|
||||||
daysUntilClose: 3
|
daysUntilClose: 3
|
||||||
exemptLabels:
|
exemptLabels:
|
||||||
- "state: completed"
|
- "state: completed"
|
||||||
- "state: confirmed"
|
- "state: confirmed"
|
||||||
- "state: help wanted/needed"
|
- "state: help wanted/needed"
|
||||||
- "state: in progress"
|
- "state: in progress"
|
||||||
staleLabel: "type: abandoned"
|
staleLabel: "type: abandoned"
|
||||||
markComment: >
|
markComment: >
|
||||||
This submission has been automatically marked as abandoned because it has not had recent activity. It will be closed in 3 days. If you want to prevent that, leave a new comment.
|
This submission has been automatically marked as abandoned because it has not had recent activity. It will be closed in 3 days. If you want to prevent that, leave a new comment.
|
||||||
closeComment: >
|
closeComment: >
|
||||||
Due to no recent activity, this submission is closed now.
|
Due to no recent activity, this submission is closed now.
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8.4",
|
||||||
"package": "com.almostreliable.unified.mixin",
|
"package": "com.almostreliable.unified.mixin",
|
||||||
"refmap": "almostunified.refmap.json",
|
"refmap": "almostunified.refmap.json",
|
||||||
"compatibilityLevel": "JAVA_16",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"RecipeManagerMixin",
|
"RecipeManagerMixin",
|
||||||
"ReloadableServerResourcesMixin"
|
"ReloadableServerResourcesMixin"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"description": "${modName}",
|
"description": "${modName} resources",
|
||||||
"pack_format": 8
|
"pack_format": 9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@ val modName: String by project
|
||||||
val modId: String by project
|
val modId: String by project
|
||||||
val mappingsChannel: String by project
|
val mappingsChannel: String by project
|
||||||
val mappingsVersion: String by project
|
val mappingsVersion: String by project
|
||||||
|
val extraModsDirectory: String by project
|
||||||
val reiVersion: String by project
|
val reiVersion: String by project
|
||||||
val jeiVersion: String by project
|
|
||||||
|
|
||||||
val baseArchiveName = "${modId}-fabric-${minecraftVersion}"
|
val baseArchiveName = "${modId}-fabric-${minecraftVersion}"
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ dependencies {
|
||||||
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api-fabric:${reiVersion}")
|
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api-fabric:${reiVersion}")
|
||||||
modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${reiVersion}")
|
modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${reiVersion}")
|
||||||
|
|
||||||
fileTree("extra-mods-$minecraftVersion") { include("**/*.jar") }
|
fileTree("$extraModsDirectory-$minecraftVersion") { include("**/*.jar") }
|
||||||
.forEach { f ->
|
.forEach { f ->
|
||||||
val sepIndex = f.nameWithoutExtension.lastIndexOf('-');
|
val sepIndex = f.nameWithoutExtension.lastIndexOf('-');
|
||||||
if(sepIndex == -1) {
|
if(sepIndex == -1) {
|
||||||
|
@ -44,7 +44,7 @@ dependencies {
|
||||||
val mod = f.nameWithoutExtension.substring(0, sepIndex);
|
val mod = f.nameWithoutExtension.substring(0, sepIndex);
|
||||||
val version = f.nameWithoutExtension.substring(sepIndex + 1);
|
val version = f.nameWithoutExtension.substring(sepIndex + 1);
|
||||||
println("Extra mod $mod with version $version detected")
|
println("Extra mod $mod with version $version detected")
|
||||||
modLocalRuntime("extra-mods:$mod:$version")
|
modLocalRuntime("$extraModsDirectory:$mod:$version")
|
||||||
}
|
}
|
||||||
|
|
||||||
implementation(project(":Common"))
|
implementation(project(":Common"))
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
],
|
],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://almostreliable.com/",
|
"homepage": "https://almostreliable.com/",
|
||||||
"sources": "https://github.com/${githubUser}/${githubRepo}/issues"
|
"sources": "https://github.com/${githubUser}/${githubRepo}"
|
||||||
},
|
},
|
||||||
"license": "${license}",
|
"license": "${license}",
|
||||||
"icon": "logo.png",
|
"icon": "logo.png",
|
||||||
|
|
|
@ -1,23 +1,20 @@
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
eclipse
|
eclipse
|
||||||
|
`maven-publish`
|
||||||
id("net.minecraftforge.gradle") version ("5.1.+")
|
id("net.minecraftforge.gradle") version ("5.1.+")
|
||||||
id("org.parchmentmc.librarian.forgegradle") version ("1.+")
|
id("org.parchmentmc.librarian.forgegradle") version ("1.+")
|
||||||
id("org.spongepowered.mixin") version ("0.7-SNAPSHOT")
|
id("org.spongepowered.mixin") version ("0.7.+")
|
||||||
`maven-publish`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val minecraftVersion: String by project
|
val minecraftVersion: String by project
|
||||||
val mixinVersion: String by project
|
val mixinVersion: String by project
|
||||||
val forgeVersion: String by project
|
val forgeVersion: String by project
|
||||||
val modName: String by project
|
|
||||||
val modAuthor: String by project
|
|
||||||
val modId: String by project
|
val modId: String by project
|
||||||
val mappingsChannel: String by project
|
val mappingsChannel: String by project
|
||||||
val mappingsVersion: String by project
|
val mappingsVersion: String by project
|
||||||
|
val extraModsDirectory: String by project
|
||||||
val jeiVersion: String by project
|
val jeiVersion: String by project
|
||||||
val almostlibVersion: String by project
|
|
||||||
|
|
||||||
|
|
||||||
val baseArchiveName = "${modId}-forge-${minecraftVersion}"
|
val baseArchiveName = "${modId}-forge-${minecraftVersion}"
|
||||||
|
|
||||||
|
@ -72,7 +69,7 @@ dependencies {
|
||||||
compileOnly(fg.deobf("mezz.jei:jei-${minecraftVersion}-forge-api:${jeiVersion}"))
|
compileOnly(fg.deobf("mezz.jei:jei-${minecraftVersion}-forge-api:${jeiVersion}"))
|
||||||
runtimeOnly(fg.deobf("mezz.jei:jei-${minecraftVersion}-forge:${jeiVersion}"))
|
runtimeOnly(fg.deobf("mezz.jei:jei-${minecraftVersion}-forge:${jeiVersion}"))
|
||||||
|
|
||||||
fileTree("extra-mods-$minecraftVersion") { include("**/*.jar") }
|
fileTree("$extraModsDirectory-$minecraftVersion") { include("**/*.jar") }
|
||||||
.forEach { f ->
|
.forEach { f ->
|
||||||
val sepIndex = f.nameWithoutExtension.lastIndexOf('-');
|
val sepIndex = f.nameWithoutExtension.lastIndexOf('-');
|
||||||
if(sepIndex == -1) {
|
if(sepIndex == -1) {
|
||||||
|
@ -81,7 +78,7 @@ dependencies {
|
||||||
val mod = f.nameWithoutExtension.substring(0, sepIndex);
|
val mod = f.nameWithoutExtension.substring(0, sepIndex);
|
||||||
val version = f.nameWithoutExtension.substring(sepIndex + 1);
|
val version = f.nameWithoutExtension.substring(sepIndex + 1);
|
||||||
println("Extra mod $mod with version $version detected")
|
println("Extra mod $mod with version $version detected")
|
||||||
runtimeOnly(fg.deobf("extra-mods:$mod:$version"))
|
runtimeOnly(fg.deobf("$extraModsDirectory:$mod:$version"))
|
||||||
}
|
}
|
||||||
|
|
||||||
annotationProcessor("org.spongepowered:mixin:${mixinVersion}:processor")
|
annotationProcessor("org.spongepowered:mixin:${mixinVersion}:processor")
|
||||||
|
|
|
@ -8,6 +8,7 @@ val modName: String by project
|
||||||
val modAuthor: String by project
|
val modAuthor: String by project
|
||||||
val modDescription: String by project
|
val modDescription: String by project
|
||||||
val forgeMinVersion: String by project
|
val forgeMinVersion: String by project
|
||||||
|
val extraModsDirectory: String by project
|
||||||
val githubUser: String by project
|
val githubUser: String by project
|
||||||
val githubRepo: String by project
|
val githubRepo: String by project
|
||||||
|
|
||||||
|
@ -19,8 +20,8 @@ plugins {
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
flatDir {
|
flatDir {
|
||||||
name = "extra-mods"
|
name = extraModsDirectory
|
||||||
dir(file("extra-mods-$minecraftVersion"))
|
dir(file("$extraModsDirectory-$minecraftVersion"))
|
||||||
}
|
}
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -81,9 +82,9 @@ subprojects {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.processResources {
|
tasks.processResources {
|
||||||
val resourceTargets = listOf<String>("META-INF/mods.toml", "pack.mcmeta", "fabric.mod.json")
|
val resourceTargets = listOf("META-INF/mods.toml", "pack.mcmeta", "fabric.mod.json")
|
||||||
|
|
||||||
val replaceProperties = mapOf<String, String>(
|
val replaceProperties = mapOf(
|
||||||
"version" to project.version as String,
|
"version" to project.version as String,
|
||||||
"license" to license,
|
"license" to license,
|
||||||
"modId" to modId,
|
"modId" to modId,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Project
|
# Project
|
||||||
version = 0.0.1
|
version = 0.0.1
|
||||||
group = com.almostreliable.unified
|
group = com.almostreliable.unified
|
||||||
license = GNU Lesser General Public License v3.0
|
license = LGPL-3.0
|
||||||
mixinVersion = 0.8.5
|
mixinVersion = 0.8.5
|
||||||
|
|
||||||
# Common
|
# Common
|
||||||
|
@ -23,17 +23,17 @@ kubejsVersion = 1802.5.4-build.500
|
||||||
|
|
||||||
# Mappings
|
# Mappings
|
||||||
mappingsChannel = parchment
|
mappingsChannel = parchment
|
||||||
mappingsVersion = 2022.05.22
|
mappingsVersion = 2022.08.21
|
||||||
|
|
||||||
# Mod options
|
# Mod options
|
||||||
modId = almostunified
|
modId = almostunified
|
||||||
modName = AlmostUnified
|
modName = AlmostUnified
|
||||||
modAuthor = AlmostReliable
|
modAuthor = AlmostReliable
|
||||||
modDescription = Unify all materials.
|
modDescription = Unify all resources.
|
||||||
|
|
||||||
# Github
|
# Github
|
||||||
githubUser = AlmostReliable
|
githubUser = AlmostReliable
|
||||||
githubRepo = almost-unified
|
githubRepo = almostunified
|
||||||
|
|
||||||
# Gradle
|
# Gradle
|
||||||
org.gradle.jvmargs = -Xmx3G
|
org.gradle.jvmargs = -Xmx3G
|
||||||
|
|
Loading…
Reference in a new issue