forked from bernie-g/geckolib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pushing broken progress update - Tslat
- Loading branch information
Showing
828 changed files
with
71,158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# eclipse | ||
bin | ||
*.launch | ||
.settings | ||
.metadata | ||
.classpath | ||
.project | ||
mcmodsrepo | ||
|
||
# idea | ||
out | ||
*.ipr | ||
*.iws | ||
*.iml | ||
.idea | ||
caches | ||
daemon | ||
wrapper | ||
native | ||
|
||
# gradle | ||
build | ||
.gradle | ||
logs | ||
# other | ||
eclipse | ||
run | ||
|
||
# Files from Forge MDK | ||
forge*changelog.txt | ||
build.bat | ||
*.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "core"] | ||
path = core | ||
url = https://github.com/bernie-g/geckolib-core.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,238 @@ | ||
buildscript { | ||
repositories { | ||
maven { url = 'https://plugins.gradle.org/m2/' } | ||
maven { url = 'https://maven.parchmentmc.org' } | ||
} | ||
dependencies { | ||
classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.0" | ||
} | ||
} | ||
|
||
plugins { | ||
id 'fabric-loom' version '0.12-SNAPSHOT' | ||
id 'maven-publish' | ||
id 'com.github.johnrengelman.shadow' version '7.1.0' | ||
id 'com.matthewprenger.cursegradle' version '1.4.0' | ||
id "com.modrinth.minotaur" version "2.+" | ||
} | ||
|
||
import groovy.json.JsonSlurper | ||
import groovy.json.JsonOutput | ||
import com.modrinth.minotaur.dependencies.ModDependency | ||
|
||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
|
||
archivesBaseName = project.archives_base_name | ||
version = project.mod_version | ||
group = project.maven_group | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' } | ||
maven { url 'https://maven.blamejared.com' } | ||
maven { url "https://cfa2.cursemaven.com" } | ||
maven { url "https://maven.cloudsmith.io/geckolib3/geckolib/" } | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
maven { url "https://maven.shedaniel.me/" } | ||
maven { url = "https://ladysnake.jfrog.io/artifactory/mods" } | ||
maven { url = "https://maven.terraformersmc.com/" } | ||
} | ||
|
||
configurations { | ||
shade | ||
} | ||
|
||
dependencies { | ||
// Minecraft/Fabric deps | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings( loom.layered() { | ||
officialMojangMappings() | ||
parchment("org.parchmentmc.data:parchment-1.19.2:2022.08.14@zip") | ||
}) | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
|
||
// Actual dependencies | ||
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.0' | ||
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.9.0' | ||
implementation(include('com.eliotlash.mclib:mclib:19')) | ||
implementation project(':geckolib-core') | ||
|
||
// Shaded dependencies | ||
shade group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.0' | ||
shade group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.9.0' | ||
shade 'com.eliotlash.mclib:mclib:19' | ||
shade project(':geckolib-core') | ||
|
||
// Testing | ||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.1' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2' | ||
modCompileOnly "vazkii.patchouli:Patchouli:1.19.2-76-FABRIC" | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shade] | ||
from sourceSets.main.output | ||
duplicatesStrategy = 'exclude' | ||
exclude('META-INF/services/**') | ||
exclude('it/**') | ||
exclude('com/google/**') | ||
relocate 'com.eliotlash', 'software.bernie.shadowed.eliotlash' | ||
relocate 'com.fasterxml', 'software.bernie.shadowed.fasterxml' | ||
classifier 'dev' | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes([ | ||
"Specification-Title" : "GeckoLib", | ||
"Specification-Vendor" : "Gecko", | ||
"Specification-Version" : "1", // We are version 1 of ourselves | ||
"Implementation-Title" : project.name, | ||
"Implementation-Version" : project.mod_version, | ||
"Implementation-Vendor" : "Gecko", | ||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") | ||
]) | ||
} | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
loom { | ||
accessWidenerPath = file("src/main/resources/geckolib.aw") | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
it.options.release = 17 | ||
} | ||
|
||
artifacts { | ||
archives shadowJar | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from "LICENSE" | ||
} | ||
|
||
remapJar { | ||
dependsOn(shadowJar) | ||
inputFile = shadowJar.archiveFile | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifactId = project.archives_base_name | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url "file:///${project.projectDir}/mcmodsrepo" | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
repositories { | ||
maven { | ||
name = "cloudsmith" | ||
url = "https://maven.cloudsmith.io/geckolib3/geckolib/" | ||
def releasesRepoUrl = "https://maven.cloudsmith.io/geckolib3/geckolib/" | ||
def snapshotsRepoUrl = "https://maven.cloudsmith.io/geckolib3/geckolib/" | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
credentials { | ||
def envUsername = System.getenv("cloudUsername") | ||
def envPassword = System.getenv("cloudPassword") | ||
username = envUsername == null ? findProperty("cloudUsername") : envUsername | ||
password = envPassword == null ? findProperty("cloudPassword") : envPassword | ||
} | ||
} | ||
} | ||
} | ||
|
||
processResources { | ||
doLast { | ||
def jsonMinifyStart = System.currentTimeMillis() | ||
def jsonMinified = 0 | ||
def jsonBytesSaved = 0 | ||
fileTree(dir: outputs.files.asPath, include: '**/*.json').each { | ||
File file = it | ||
jsonMinified++ | ||
def oldLength = file.length() | ||
file.text = JsonOutput.toJson(new JsonSlurper().parse(file)) | ||
jsonBytesSaved += oldLength - file.length() | ||
} | ||
println('Minified ' + jsonMinified + ' json files. Saved ' + jsonBytesSaved + ' bytes. Took ' + (System.currentTimeMillis() - jsonMinifyStart) + 'ms.') | ||
} | ||
} | ||
|
||
if (file('key.properties').exists()) { | ||
curseforge { | ||
|
||
def curseProp = new Properties() | ||
File secretPropsFile = file("key.properties") | ||
curseProp.load(secretPropsFile.newInputStream()) | ||
|
||
project { | ||
apiKey = curseProp.getProperty('curseKey') | ||
id = "388172" | ||
releaseType = "release" | ||
changelogType = 'text' | ||
changelog = file('changelog.txt') | ||
addGameVersion("1.19.2") | ||
addGameVersion("Fabric") | ||
addGameVersion("Java 17") | ||
|
||
relations { | ||
requiredDependency 'fabric-api' | ||
} | ||
mainArtifact(remapJar) | ||
|
||
afterEvaluate { | ||
uploadTask.dependsOn("remapJar") | ||
} | ||
} | ||
options { | ||
//debug = true | ||
forgeGradleIntegration = false | ||
} | ||
} | ||
} | ||
|
||
if (file('key.properties').exists()) { | ||
modrinth { | ||
def modrinthProp = new Properties() | ||
File secretPropsFile = file("key.properties") | ||
modrinthProp.load(secretPropsFile.newInputStream()) | ||
|
||
token = modrinthProp.getProperty('modrinthKey') | ||
projectId = '8BmcQJ2H' | ||
versionNumber = project.mod_version | ||
versionName = 'Fabric 1.19.2' | ||
uploadFile = remapJar | ||
changelog = rootProject.file("changelog.txt").text | ||
gameVersions = ['1.19.2'] | ||
loaders = ['fabric'] | ||
dependencies { | ||
required.project "fabric-api" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
v3.1.33 | ||
|
||
- Fixes broken rotation on cubes | ||
|
||
v3.1.32 | ||
|
||
- Adds back getTexture fix. | ||
|
||
v3.1.31 | ||
|
||
- Updates Core with Java 17 changes from pervious PR. | ||
- Fixes Vanilla Armor Crash with Extended Render. | ||
- Fixes keyframe issue, fixing animations not playing. | ||
- Fixes broken movement check for entities. | ||
- Fixes broken rotations on child bones. | ||
- Updates Example block entities to EDefaultLoopTypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# These are explicitly windows files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# eclipse | ||
bin | ||
*.launch | ||
.settings | ||
.metadata | ||
.classpath | ||
.project | ||
|
||
# idea | ||
out | ||
*.ipr | ||
*.iws | ||
*.iml | ||
.idea | ||
|
||
# gradle | ||
build | ||
.gradle | ||
|
||
# other | ||
eclipse | ||
run | ||
mdmodsrepo | ||
|
||
# Files from Forge MDK | ||
forge*changelog.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 GeckoThePecko | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.