99 lines
2.4 KiB
Groovy
99 lines
2.4 KiB
Groovy
plugins {
|
|
id 'eclipse'
|
|
id 'maven-publish'
|
|
id 'net.minecraftforge.gradle' version '5.1.+'
|
|
}
|
|
|
|
group = mod_group_id
|
|
version = mod_version
|
|
|
|
base {
|
|
archivesName = mod_id
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
|
|
minecraft {
|
|
mappings channel: mapping_channel, version: mapping_version
|
|
|
|
runs {
|
|
client {
|
|
workingDirectory project.file('run')
|
|
property 'forge.logging.console.level', 'debug'
|
|
mods {
|
|
vaultpartyui {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
server {
|
|
workingDirectory project.file('run')
|
|
property 'forge.logging.console.level', 'debug'
|
|
mods {
|
|
vaultpartyui {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
data {
|
|
workingDirectory project.file('run')
|
|
property 'forge.logging.console.level', 'debug'
|
|
args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
|
mods {
|
|
vaultpartyui {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
def vaultHuntersProjectId = "458203"
|
|
def vaultHuntersFileId = "7967092"
|
|
|
|
// https://cursemaven.com/test/458203/7967092
|
|
|
|
repositories {
|
|
maven {
|
|
url = 'https://maven.minecraftforge.net'
|
|
}
|
|
exclusiveContent {
|
|
forRepository {
|
|
maven {
|
|
url "https://cursemaven.com"
|
|
}
|
|
}
|
|
filter {
|
|
includeGroup "curse.maven"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
|
implementation fg.deobf("curse.maven:the-vault-${vaultHuntersProjectId}:${vaultHuntersFileId}")
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
options.release = 17
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes([
|
|
'Specification-Title' : mod_name,
|
|
'Specification-Vendor' : 'Massuus',
|
|
'Specification-Version' : '1',
|
|
'Implementation-Title' : project.name,
|
|
'Implementation-Version' : mod_version,
|
|
'Implementation-Vendor' : 'Massuus',
|
|
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
|
])
|
|
}
|
|
}
|