dynmap/fabric-1.14.4/build.gradle

62 lines
1.4 KiB
Groovy
Raw Normal View History

plugins {
2024-06-02 12:05:55 +02:00
id 'fabric-loom' version '1.6.11'
2021-04-30 21:48:56 +02:00
}
apply plugin: 'eclipse'
eclipse {
project {
name = "Dynmap(Fabric-1.14.4)"
}
}
archivesBaseName = "Dynmap"
2021-04-30 21:48:56 +02:00
version = parent.version
group = parent.group
configurations {
shadow
implementation.extendsFrom(shadow)
2021-04-30 21:48:56 +02:00
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
compileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
shadow project(path: ':DynmapCore', configuration: 'shadow')
}
processResources {
filesMatching('fabric.mod.json') {
2021-04-30 21:48:56 +02:00
expand "version": project.version
}
}
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()
2021-04-30 21:48:56 +02:00
}
jar {
from "LICENSE"
from {
configurations.shadow.collect { it.toString().contains("guava") ? null : it.isDirectory() ? it : zipTree(it) }
}
}
remapJar {
archiveFileName = "${archivesBaseName}-${project.version}-fabric-${project.minecraft_version}.jar"
destinationDirectory = file '../target'
2021-04-30 21:48:56 +02:00
}
remapJar.doLast {
task ->
ant.checksum file: task.archivePath
}