summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorsciwhiz12 <arnoldnunag12@gmail.com>2022-03-02 02:59:37 +0800
committerGitHub <noreply@github.com>2022-03-01 18:59:37 +0000
commit7f65352e09aced40e534901c9d0e6deb6191101d (patch)
tree584d0284a3c46bd383f42878b6365bc5ca976517 /build.gradle
parent17b8c584047d34525296772e8d56dcb417f6ff60 (diff)
1.18.x Omnibus (#8239)
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle37
1 files changed, 13 insertions, 24 deletions
diff --git a/build.gradle b/build.gradle
index a663f59..b988736 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,10 +8,13 @@ buildscript {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
}
}
-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'
+plugins {
+ id 'eclipse'
+ id 'maven-publish'
+}
+apply plugin: 'net.minecraftforge.gradle'
+
version = '1.0'
group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
@@ -20,17 +23,19 @@ archivesBaseName = 'modid'
// Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
-println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
+println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
minecraft {
// The mappings can be changed at any time and must be in the following format.
// Channel: Version:
- // snapshot YYYYMMDD Snapshot are built nightly.
- // stable # Stables are built at the discretion of the MCP team.
- // official MCVersion Official field/method names from Mojang mapping files
+ // official MCVersion Official field/method names from Mojang mapping files
+ // parchment YYYY.MM.DD-MCVersion Open community-sourced parameter names and javadocs layered on top of official
//
- // You must be aware of the Mojang license when using the 'official' mappings.
+ // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings.
// See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
//
+ // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge
+ // Additional setup is needed to use their mappings: https://github.com/ParchmentMC/Parchment/wiki/Getting-Started
+ //
// Use non-default mappings at your own risk. They may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: '@MAPPING_CHANNEL@', version: '@MAPPING_VERSION@'
@@ -68,16 +73,8 @@ minecraft {
server {
workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
- // The markers can be added/remove as needed separated by commas.
- // "SCAN": For mods scan.
- // "REGISTRIES": For firing of registry events.
- // "REGISTRYDUMP": For getting the contents of all registries.
property 'forge.logging.markers', 'REGISTRIES'
- // Recommended logging level for the console
- // You can set various levels here.
- // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
property 'forge.logging.console.level', 'debug'
// Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
@@ -121,16 +118,8 @@ minecraft {
data {
workingDirectory project.file('run')
- // Recommended logging data for a userdev environment
- // The markers can be added/remove as needed separated by commas.
- // "SCAN": For mods scan.
- // "REGISTRIES": For firing of registry events.
- // "REGISTRYDUMP": For getting the contents of all registries.
property 'forge.logging.markers', 'REGISTRIES'
- // Recommended logging level for the console
- // You can set various levels here.
- // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
property 'forge.logging.console.level', 'debug'
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.