forked from squeek502/AppleSkin
-
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.
- Loading branch information
Showing
41 changed files
with
757 additions
and
1,884 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,112 +1,69 @@ | ||
buildscript { | ||
repositories { | ||
maven { url = 'https://files.minecraftforge.net/maven' } | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true | ||
} | ||
plugins { | ||
id 'fabric-loom' version '0.2.6-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
apply plugin: 'net.minecraftforge.gradle' | ||
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. | ||
apply plugin: 'eclipse' | ||
apply plugin: 'maven-publish' | ||
|
||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
|
||
minecraft { | ||
mappings channel: mappings_channel, version: mappings_version | ||
|
||
// default run configurations. | ||
// these can be tweaked, removed, or duplicated as needed. | ||
runs { | ||
client { | ||
workingDirectory project.file('run') | ||
mods { | ||
appleskin { | ||
source sourceSets.main | ||
} | ||
} | ||
} | ||
archivesBaseName = project.archives_base_name | ||
group = project.maven_group | ||
|
||
server { | ||
workingDirectory project.file('run') | ||
mods { | ||
appleskin { | ||
source sourceSets.main | ||
} | ||
} | ||
} | ||
} | ||
minecraft { | ||
} | ||
|
||
group = project.maven_group | ||
archivesBaseName = project.archives_base_name | ||
version = "mc" + project.minecraft_version + "-" + project.mod_version | ||
def semver_version = project.mod_version + "+mc" + project.minecraft_version | ||
|
||
sourceSets.main.java.srcDirs += 'java' | ||
sourceSets.main.java.srcDirs += 'apis' | ||
sourceSets.main.resources.srcDirs += 'resources' | ||
|
||
dependencies { | ||
minecraft 'net.minecraftforge:forge:'+minecraft_version+'-'+forge_version | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modCompile "net.fabricmc:fabric-loader:${project.loader_version}" | ||
|
||
modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes([ | ||
"Specification-Title": "appleskin", | ||
"Specification-Vendor": "squeek", | ||
"Specification-Version": "1", | ||
"Implementation-Title": project.name, | ||
"Implementation-Version": semver_version, | ||
"Implementation-Vendor" :"squeek", | ||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") | ||
]) | ||
processResources { | ||
inputs.property "vars", project.version | ||
from(sourceSets.main.resources.srcDirs) { | ||
include '**/fabric.mod.json' | ||
expand 'version':project.version | ||
} | ||
from(sourceSets.main.resources.srcDirs) { | ||
exclude '**/fabric.mod.json' | ||
} | ||
|
||
finalizedBy 'reobfJar' | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
archiveClassifier.set("sources") | ||
from sourceSets.main.allJava | ||
tasks.withType(JavaCompile) { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
task apiJar(type: Jar) { | ||
archiveClassifier.set("api") | ||
from sourceSets.main.output | ||
include "squeek/appleskin/api/**" | ||
|
||
finalizedBy 'reobfJar' | ||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = "sources" | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives apiJar | ||
jar { | ||
from "LICENSE" | ||
} | ||
|
||
// configure the maven publication | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId = group | ||
artifactId = archivesBaseName | ||
|
||
// add all the jars that should be included when publishing to maven | ||
artifact(jar) | ||
artifact(sourcesJar) | ||
artifact(apiJar) | ||
artifact(jar.archivePath) { | ||
builtBy remapJar | ||
} | ||
artifact(sourcesJar) { | ||
builtBy remapSourcesJar | ||
} | ||
} | ||
} | ||
|
||
// select the repositories you want to publish to | ||
repositories { | ||
maven { | ||
url = project.findProperty("maven.url") ?: System.getenv("MAVEN_URL") | ||
credentials { | ||
username=project.findProperty("maven.user") ?: System.getenv("MAVEN_USER") | ||
password=project.findProperty("maven.password") ?: System.getenv("MAVEN_PASSWORD") | ||
} | ||
} | ||
// uncomment to publish to the local maven | ||
// mavenLocal() | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
minecraft_version=1.16.4 | ||
forge_version=35.1.4 | ||
mappings_version=20201028-1.16.3 | ||
mappings_channel=snapshot | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx1G | ||
|
||
# Sets default memory used for gradle commands. Can be overridden by user or command line properties. | ||
# This is required to provide enough memory for the Minecraft decompilation process. | ||
org.gradle.jvmargs=-Xmx3G | ||
org.gradle.daemon=false | ||
# Fabric Properties | ||
# check these on https://fabricmc.net/use | ||
minecraft_version=20w14infinite | ||
yarn_mappings=20w14infinite+build.4 | ||
loader_version=0.7.8+build.187 | ||
fabric_version=0.5.7+build.2-20w14infinite | ||
|
||
# Mod Properties | ||
maven_group = squeek.appleskin | ||
archives_base_name = appleskin-forge | ||
mod_version = 2.5.1 | ||
archives_base_name = appleskin | ||
version = 1.0.8 |
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
Oops, something went wrong.