diff options
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 2c618b9..0000000 --- a/build.gradle +++ /dev/null | |||
| @@ -1,80 +0,0 @@ | |||
| 1 | plugins { | ||
| 2 | id "maven-publish" | ||
| 3 | id "org.quiltmc.loom" version "1.4.1" | ||
| 4 | } | ||
| 5 | |||
| 6 | base { | ||
| 7 | archivesName = modid | ||
| 8 | } | ||
| 9 | |||
| 10 | version = "0.1+${minecraft_version}" | ||
| 11 | group = groupid | ||
| 12 | |||
| 13 | repositories { | ||
| 14 | maven { | ||
| 15 | url "https://maven.blamejared.com" | ||
| 16 | content { | ||
| 17 | includeGroup "vazkii.patchouli" | ||
| 18 | } | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | loom { | ||
| 23 | mods { | ||
| 24 | "${modid}" { | ||
| 25 | sourceSet("main") | ||
| 26 | } | ||
| 27 | } | ||
| 28 | } | ||
| 29 | |||
| 30 | dependencies { | ||
| 31 | minecraft "com.mojang:minecraft:${minecraft_version}" | ||
| 32 | mappings loom.layered { | ||
| 33 | mappings "org.quiltmc:quilt-mappings:${minecraft_version}+build.${quilt_mappings}:intermediary-v2" | ||
| 34 | officialMojangMappings() | ||
| 35 | } | ||
| 36 | modImplementation "org.quiltmc:quilt-loader:${loader_version}" | ||
| 37 | modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${quilted_fabric_api_version}-${minecraft_version}" | ||
| 38 | |||
| 39 | modImplementation("vazkii.patchouli:Patchouli:${patchouli_version}") { | ||
| 40 | exclude group: "net.fabricmc", module: "fabric-loader" | ||
| 41 | } | ||
| 42 | |||
| 43 | compileOnly "jakarta.annotation:jakarta.annotation-api:${jakarta_annotation_version}" | ||
| 44 | } | ||
| 45 | |||
| 46 | processResources { | ||
| 47 | inputs.property "version", version | ||
| 48 | |||
| 49 | filesMatching("quilt.mod.json") { | ||
| 50 | expand "version": version | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
| 54 | tasks.withType(JavaCompile).configureEach { | ||
| 55 | it.options.encoding = "UTF-8" | ||
| 56 | it.options.release = 17 | ||
| 57 | } | ||
| 58 | |||
| 59 | java { | ||
| 60 | sourceCompatibility = JavaVersion.VERSION_17 | ||
| 61 | targetCompatibility = JavaVersion.VERSION_17 | ||
| 62 | |||
| 63 | withSourcesJar() | ||
| 64 | } | ||
| 65 | |||
| 66 | jar { | ||
| 67 | from("LICENSE") { | ||
| 68 | rename { "${it}_${base.archivesName.get()}" } | ||
| 69 | } | ||
| 70 | } | ||
| 71 | |||
| 72 | publishing { | ||
| 73 | publications { | ||
| 74 | mavenJava(MavenPublication) { | ||
| 75 | from components.java | ||
| 76 | } | ||
| 77 | } | ||
| 78 | |||
| 79 | repositories {} | ||
| 80 | } \ No newline at end of file | ||