100 lines
2.7 KiB
Groovy
100 lines
2.7 KiB
Groovy
buildscript {
|
|
repositories {
|
|
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
|
|
maven { url = 'https://maven.minecraftforge.net' }
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
|
|
}
|
|
}
|
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
|
|
group = 'com.buuz135'
|
|
version = '1.0.0'
|
|
|
|
java {
|
|
archivesBaseName = 'functionalstorage'
|
|
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
|
|
minecraft {
|
|
|
|
mappings channel: 'official', version: '1.18.1'
|
|
|
|
runs {
|
|
client {
|
|
workingDirectory project.file('run')
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
mods {
|
|
functionalstorage {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
server {
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
mods {
|
|
functionalstorage {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
data {
|
|
workingDirectory project.file('run')
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
args '--mod', 'functionalstorage', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
|
|
|
mods {
|
|
functionalstorage {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Include resources generated by data generators.
|
|
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
|
|
|
repositories {
|
|
maven {
|
|
name 'jared maven'
|
|
url "https://maven.blamejared.com/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
minecraft 'net.minecraftforge:forge:1.18.1-39.0.5'
|
|
implementation fg.deobf (project.dependencies.create('com.hrznstudio:titanium:1.18-3.4.0-21'))
|
|
|
|
}
|
|
|
|
// Example for how to get properties into the manifest for reading at runtime.
|
|
jar {
|
|
manifest {
|
|
attributes([
|
|
"Specification-Title" : "functionalstorage",
|
|
"Specification-Vendor" : "Buuz135, Rid",
|
|
"Specification-Version" : "1", // We are version 1 of ourselves
|
|
"Implementation-Title" : project.name,
|
|
"Implementation-Version" : project.jar.archiveVersion,
|
|
"Implementation-Vendor" : "Buuz135, Rid",
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
|
])
|
|
}
|
|
}
|
|
|
|
jar.finalizedBy('reobfJar')
|