2023-05-10 01:29:43 +02:00
2022-02-28 21:15:15 +01:00
plugins {
2024-06-02 12:05:55 +02:00
id 'fabric-loom' version '1.6.11'
2022-02-28 21:15:15 +01:00
}
archivesBaseName = "Dynmap"
version = parent . version
group = parent . group
eclipse {
project {
2022-02-28 21:16:07 +01:00
name = "Dynmap(Fabric-1.18.2)"
2022-02-28 21:15:15 +01:00
}
}
2023-05-10 01:29:43 +02:00
sourceCompatibility = targetCompatibility = compileJava . sourceCompatibility = compileJava . targetCompatibility = JavaLanguageVersion . of ( 17 ) // Need this here so eclipse task generates correctly.
2022-02-28 21:15:15 +01:00
configurations {
shadow
implementation . extendsFrom ( shadow )
}
2022-05-06 16:48:04 +02:00
repositories {
2022-05-06 19:55:28 +02:00
mavenCentral ( )
2022-05-06 16:48:04 +02:00
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
2022-02-28 21:15:15 +01: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' )
2022-05-06 16:48:04 +02:00
modCompileOnly "me.lucko:fabric-permissions-api:0.1-SNAPSHOT"
2022-05-06 19:55:28 +02:00
compileOnly 'net.luckperms:api:5.4'
2022-02-28 21:15:15 +01:00
}
processResources {
filesMatching ( 'fabric.mod.json' ) {
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 ( )
}
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'
}
remapJar . doLast {
task - >
ant . checksum file: task . archivePath
}