2023-05-30 12:57:15 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
|
|
|
id 'java-library'
|
|
|
|
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
|
2022-05-20 21:09:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 17
|
|
|
|
|
|
|
|
minecraft {
|
|
|
|
mappings channel: 'official', version: minecraftVersion
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
minecraft "net.minecraftforge:forge:${minecraftVersion}-${forgeVersion}"
|
|
|
|
implementation project(':api')
|
|
|
|
implementation project(':common:loader-utils')
|
|
|
|
implementation project(':forge:forge-api')
|
|
|
|
}
|
|
|
|
|
|
|
|
build {
|
|
|
|
dependsOn(":forge:build")
|
2022-05-20 21:12:56 +02:00
|
|
|
dependsOn(":forge:forge-api:build")
|
2022-05-20 21:09:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
|
|
|
'Implementation-Title': 'LuckPerms',
|
|
|
|
'Implementation-Vendor': 'LuckPerms',
|
|
|
|
'Implementation-Version': project.ext.fullVersion,
|
|
|
|
'Specification-Title': 'luckperms',
|
|
|
|
'Specification-Vendor': 'LuckPerms',
|
|
|
|
'Specification-Version': '1'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
filesMatching('META-INF/mods.toml') {
|
|
|
|
expand 'version': project.ext.fullVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
archiveFileName = "LuckPerms-Forge-${project.ext.fullVersion}.jar"
|
|
|
|
|
|
|
|
from {
|
|
|
|
project(':forge').tasks.shadowJar.archiveFile
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
include(dependency('net.luckperms:.*'))
|
|
|
|
include(dependency('me.lucko.luckperms:.*'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives shadowJar
|
|
|
|
}
|