summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-06-19 20:41:15 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-06-19 20:41:15 -0400
commit80fe25bcb811508a5fe826c37513a8a63239cb55 (patch)
tree9e6242e55ee55e3a0b56322f9d94aacfaf546b25 /build.gradle
parent9190d7c12d1bbdcfc401543128fb0219e6fc0a81 (diff)
[Release] version 2.0.0
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle31
1 files changed, 18 insertions, 13 deletions
diff --git a/build.gradle b/build.gradle
index 62083f9..f807b77 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,15 +1,23 @@
plugins {
- id 'fabric-loom' version '0.5-SNAPSHOT'
+ id 'fabric-loom' version '0.8-SNAPSHOT'
id 'maven-publish'
}
-sourceCompatibility = JavaVersion.VERSION_1_8
-targetCompatibility = JavaVersion.VERSION_1_8
+sourceCompatibility = JavaVersion.VERSION_16
+targetCompatibility = JavaVersion.VERSION_16
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
+repositories {
+ // Add repositories to retrieve artifacts from in here.
+ // You should only use this when depending on other mods because
+ // Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
+ // See https://docs.gradle.org/current/userguide/declaring_repositories.html
+ // for more information about repositories.
+}
+
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
@@ -38,13 +46,8 @@ tasks.withType(JavaCompile).configureEach {
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
- // The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
- // JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.
- // We'll use that if it's available, but otherwise we'll use the older option.
- def targetVersion = 8
- if (JavaVersion.current().isJava9Compatible()) {
- it.options.release = targetVersion
- }
+ // Minecraft 1.17 (21w19a) upwards uses Java 16.
+ it.options.release = 16
}
java {
@@ -74,9 +77,11 @@ publishing {
}
}
- // Select the repositories you want to publish to
- // To publish to maven local, no extra repositories are necessary. Just use the task `publishToMavenLocal`.
+ // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
- // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
+ // Add repositories to publish to here.
+ // Notice: This block does NOT have the same function as the block in the top level.
+ // The repositories here will be used for publishing your artifact, not for
+ // retrieving dependencies.
}
}