Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Sep 28, 2022
0 parents commit 3b8a88c
Show file tree
Hide file tree
Showing 937 changed files with 24,491 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @DonovanDMC
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.idea/
.idea_modules/
out/
*.class
*.log
*.jar
.gradle
build/
gradle-app.setting
.gradletasknamecache
**/build/
run/
!gradle-wrapper.jar
bin/
src/generated/resources/.cache
scripts/secrets.sh
**/node_modules/
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "Publishing"]
path = scripts/publish
url = https://github.com/DonovanDMC/ProjectExpansion
branch = publishing
[submodule "Generation"]
path = src/main/generation
url = https://github.com/DonovanDMC/ProjectExpansion
branch = generation
120 changes: 120 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
maven { url = "https://libraries.minecraft.net" }

mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
}

apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'

group = 'furry.cool.mc.forge'
version = getProperty("mcVersion") + "-" + getProperty("localVersion")

java {
archivesBaseName = 'ProjectExpansion'
toolchain.languageVersion = JavaLanguageVersion.of(17)
}

minecraft {
mappings channel: getProperty("mappingsChannel"), version: getProperty("mappingsVersion")

runs {
client {
workingDirectory project.file('run')

property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'

mods {
projectexpansion {
source sourceSets.main
}
}
}

server {
workingDirectory project.file('run')

property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'

mods {
projectexpansion {
source sourceSets.main
}
}
}

data {
workingDirectory project.file('run')

property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'

args '--mod', 'projectexpansion', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')

mods {
projectexpansion {
source sourceSets.main
}
}
}
}
}

mixin {
add sourceSets.main, "projectexpansion.refmap.json"
config "projectexpansion.mixins.json"
}

sourceSets.main.resources { srcDir 'src/generated/resources' }

repositories {
maven {
url "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
name "curios"
url "https://maven.theillusivec4.top/"
content {
includeGroup 'top.theillusivec4.curios'
}
}
}

dependencies {
minecraft "net.minecraftforge:forge:${getProperty("mcVersion")}-${getProperty("forgeVersion")}"
implementation fg.deobf("curse.maven:projecte-226410:${getProperty("projecteVersion")}")
implementation "com.mojang:brigadier:1.0.18"
annotationProcessor "org.spongepowered:mixin:0.8.5:processor"
compileOnly fg.deobf("top.theillusivec4.curios:curios-forge:${getProperty("curiosVersion")}:api")
runtimeOnly fg.deobf("top.theillusivec4.curios:curios-forge:${getProperty("curiosVersion")}")
runtimeOnly fg.deobf("curse.maven:no-chat-reports-634062:3926371")
}

jar {
manifest {
attributes([
"Specification-Title" : "Project Expansion",
"Specification-Vendor" : "Donovan_DMC",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : project.jar.archiveVersion,
"Implementation-Vendor" : "Donovan_DMC",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}

jar.finalizedBy('reobfJar')
12 changes: 12 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

cfProjectID = 579177
mcVersion = 1.19.2
localVersion = 1.0.0
mappingsChannel = official
mappingsVersion = 1.19.2
forgeVersion = 43.1.25
# 1.19.2-PE1.0.1
projecteVersion = 3955047
curiosVersion = 1.19.2-5.1.1.0
1 change: 1 addition & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
5 changes: 5 additions & 0 deletions scripts/generate-assets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
DIR=$(realpath "$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )")
cd "$DIR/../src/main/generation" || exit 1
npm i
node --no-warnings --no-deprecation --experimental-specifier-resolution=node --loader ts-node/esm run
5 changes: 5 additions & 0 deletions scripts/load-properties.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

function getProperty {
cat gradle.properties | grep -w "$1" | cut -d '=' -f 2 | tr -d '\n' | xargs echo -n
}
5 changes: 5 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
DIR=$(realpath "$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )")
cd "$DIR/publish" || exit 1
npm i
"$DIR/publish/sh/publish.sh" "$(realpath $DIR/..)"
4 changes: 4 additions & 0 deletions scripts/publish/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "@uwu-codes/eslint-config/ts.json",
"rules": {}
}
3 changes: 3 additions & 0 deletions scripts/publish/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.git/
config.json
5 changes: 5 additions & 0 deletions scripts/publish/config.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gitName": "0.0",
"auth": "",
"endpoint": "http://localhost/mod"
}
Loading

0 comments on commit 3b8a88c

Please sign in to comment.