mirror of
https://github.com/JonasunderscoreJones/Microcraft.git
synced 2025-10-28 04:59:18 +01:00
new: start update
This commit is contained in:
parent
ab68da2070
commit
483a4a96fc
18 changed files with 95 additions and 128 deletions
59
build.gradle
59
build.gradle
|
|
@ -1,6 +1,6 @@
|
|||
plugins {
|
||||
id 'fabric-loom' version '0.12-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
id 'fabric-loom' version '1.0-SNAPSHOT'
|
||||
id 'io.github.juuxel.loom-quiltflower' version '1.8.0' // to use genSourcesWithQuiltflower
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
|
|
@ -11,33 +11,31 @@ 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.
|
||||
mavenCentral()
|
||||
maven { url "https://maven.parchmentmc.org" } // parchment mappings
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.projectlombok:lombok:1.18.22'
|
||||
implementation 'org.projectlombok:lombok:1.18.22'
|
||||
implementation 'org.projectlombok:lombok:1.18.22'
|
||||
|
||||
// To change the versions see the gradle.properties file
|
||||
// mc & mappings
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
mappings loom.layered {
|
||||
it.officialMojangMappings()
|
||||
it.parchment("org.parchmentmc.data:${project.parchment_version}@zip")
|
||||
}
|
||||
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
// apis & libraries
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
|
||||
// Uncomment the following line to enable the deprecated Fabric API modules.
|
||||
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
|
||||
implementation 'com.fazecast:jSerialComm:2.9.2'
|
||||
implementation 'com.github.cliftonlabs:json-simple:4.0.1'
|
||||
|
||||
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
|
||||
implementation 'org.projectlombok:lombok:1.18.22'
|
||||
implementation 'org.projectlombok:lombok:1.18.22'
|
||||
implementation 'org.projectlombok:lombok:1.18.22'
|
||||
|
||||
implementation files('libs/jSerialComm-2.9.2.jar')
|
||||
implementation files('libs/json-simple-1.1.jar')
|
||||
// mods & other deps
|
||||
// none
|
||||
}
|
||||
|
||||
processResources {
|
||||
|
|
@ -49,14 +47,10 @@ processResources {
|
|||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
|
||||
it.options.release = 17
|
||||
}
|
||||
|
||||
java {
|
||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||
// if it is present.
|
||||
// If you remove this line, sources will not be generated.
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
|
|
@ -65,20 +59,3 @@ jar {
|
|||
rename { "${it}_${project.archivesBaseName}"}
|
||||
}
|
||||
}
|
||||
|
||||
// configure the maven publication
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
||||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
||||
repositories {
|
||||
// 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.
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue