FunctionalStorage/build.gradle

124 lines
4.1 KiB
Groovy
Raw Normal View History

2021-12-17 18:36:34 -06:00
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.18.2-1.0.2'
2021-12-17 18:36:34 -06:00
java {
archivesBaseName = 'functionalstorage'
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
minecraft {
2022-03-21 14:14:28 -05:00
mappings channel: 'official', version: '1.18.2'
2021-12-24 10:15:57 -06:00
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
2021-12-17 18:36:34 -06:00
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
2021-12-17 18:36:34 -06:00
mods {
functionalstorage {
source sourceSets.main
}
}
}
server {
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
2021-12-17 18:36:34 -06:00
mods {
functionalstorage {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
2021-12-17 18:36:34 -06:00
args '--mod', 'functionalstorage', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
2021-12-17 18:36:34 -06:00
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/"
}
2021-12-19 10:24:58 -06:00
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
url = "https://www.cursemaven.com"
}
2021-12-17 18:36:34 -06:00
}
dependencies {
2022-07-03 13:11:34 -05:00
minecraft 'net.minecraftforge:forge:1.18.2-40.1.19'
2022-06-06 15:55:11 -05:00
implementation fg.deobf (project.dependencies.create('com.hrznstudio:titanium:1.18.2-3.5.6-38'))
compileOnly fg.deobf("mezz.jei:jei-1.18.2:9.7.0.180:api")
runtimeOnly fg.deobf("mezz.jei:jei-1.18.2:9.7.0.180")
runtimeOnly fg.deobf("curse.maven:refined-storage-243076:3712882")
implementation fg.deobf("curse.maven:the-one-probe-245211:3671753")
//implementation fg.deobf("curse.maven:allthecompressed-514045:3723881")
2022-03-21 14:14:28 -05:00
//runtimeOnly fg.deobf("curse.maven:create-328085:3600402")
//runtimeOnly fg.deobf("curse.maven:flywheel-486392:3600401")
implementation fg.deobf("curse.maven:mekanism-268560:3810540")
runtimeOnly fg.deobf("curse.maven:refined-pipes-370696:3816785")
annotationProcessor "org.spongepowered:mixin:0.8.5:processor"
2021-12-17 18:36:34 -06:00
}
// 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')