this repo has no description
1plugins {
2 id "net.fabricmc.fabric-loom" version '1.16-SNAPSHOT'
3 id 'maven-publish'
4}
5
6version = project.mod_version
7group = project.maven_group
8
9base {
10 archivesName = project.archives_base_name
11}
12
13repositories {
14 maven {
15 name 'Xander Maven'
16 url 'https://maven.isxander.dev/releases'
17 }
18 maven {
19 name = "Terraformers"
20 url = "https://maven.terraformersmc.com/"
21 }
22}
23
24loom {
25 splitEnvironmentSourceSets()
26
27 mods {
28 "visible-entitites" {
29 sourceSet sourceSets.main
30 sourceSet sourceSets.client
31 }
32 }
33
34}
35
36dependencies {
37 // To change the versions see the gradle.properties file
38 minecraft "com.mojang:minecraft:${project.minecraft_version}"
39 implementation "net.fabricmc:fabric-loader:${project.loader_version}"
40
41 implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
42 implementation "dev.isxander:yet-another-config-lib:${project.yacl_version}"
43
44 compileOnly "com.terraformersmc:modmenu:${project.modmenu_version}"
45 localRuntime "com.terraformersmc:modmenu:${project.modmenu_version}"
46}
47
48processResources {
49 inputs.property "version", project.version
50
51 filesMatching("fabric.mod.json") {
52 expand "version": project.version
53 }
54}
55
56tasks.withType(JavaCompile).configureEach {
57 it.options.release = 25
58}
59
60java {
61 // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
62 // if it is present.
63 // If you remove this line, sources will not be generated.
64 withSourcesJar()
65
66 sourceCompatibility = JavaVersion.VERSION_25
67 targetCompatibility = JavaVersion.VERSION_25
68}
69
70jar {
71 from("LICENSE") {
72 rename { "${it}_${project.base.archivesName.get()}" }
73 }
74}
75
76// configure the maven publication
77publishing {
78 publications {
79 create("mavenJava", MavenPublication) {
80 artifactId = project.archives_base_name
81 from components.java
82 }
83 }
84
85 // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
86 repositories {
87 // Add repositories to publish to here.
88 // Notice: This block does NOT have the same function as the block in the top level.
89 // The repositories here will be used for publishing your artifact, not for
90 // retrieving dependencies.
91 }
92}