More updates

This commit is contained in:
seasnail8169 2021-06-15 00:43:49 +01:00
parent cfcde4021a
commit 9117f6425e
3 changed files with 32 additions and 24 deletions

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
[*]
charset = utf-8
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
indent_size = 4
[*.{json, yml}]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

View File

@ -1,6 +1,6 @@
plugins { plugins {
id 'fabric-loom' version '0.9-SNAPSHOT' id 'fabric-loom' version '0.8-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16 sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
@ -10,35 +10,31 @@ version = project.mod_version
group = project.maven_group group = project.maven_group
repositories { repositories {
maven { maven {
name = "jitpack" name = "jitpack"
url = "https://jitpack.io" url = "https://jitpack.io"
} }
} }
dependencies { dependencies {
//Minecraft // Minecraft
minecraft "com.mojang:minecraft:${project.minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2" mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
//Meteor // Meteor
modImplementation "com.github.MeteorDevelopment:meteor-client:master-SNAPSHOT" modImplementation "com.github.MeteorDevelopment:meteor-client:master-SNAPSHOT"
} }
processResources { processResources {
inputs.property "version", project.version inputs.property "version", project.version
filesMatching("fabric.mod.json") { filesMatching("fabric.mod.json") {
expand "version": project.version expand "version": project.version
} }
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8" it.options.encoding = "UTF-8"
it.options.release = 16
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = targetVersion
}
} }

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists