177 lines
5.2 KiB
Groovy
177 lines
5.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url = 'https://maven.minecraftforge.net' }
|
|
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
|
|
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'com.matthewprenger.cursegradle' version '1.4.0'
|
|
}
|
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
apply plugin: 'org.spongepowered.mixin'
|
|
|
|
group = 'com.teammoeg'
|
|
version = '1.16.5-1.1.1'
|
|
|
|
java {
|
|
archivesBaseName = 'steampowered'
|
|
toolchain.languageVersion = JavaLanguageVersion.of(8)
|
|
}
|
|
|
|
minecraft {
|
|
mappings channel: 'official', version: '1.16.5'
|
|
|
|
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
|
|
runs {
|
|
client {
|
|
property 'mixin.env.remapRefMap', 'true'
|
|
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
|
|
arg "-mixin.config=" + "steampowered.mixins.json"
|
|
|
|
workingDirectory project.file('run')
|
|
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
mods {
|
|
steampowered {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
server {
|
|
property 'mixin.env.remapRefMap', 'true'
|
|
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
|
|
arg "-mixin.config=" + "steampowered.mixins.json"
|
|
|
|
workingDirectory project.file('run')
|
|
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
mods {
|
|
steampowered {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
data {
|
|
property 'mixin.env.remapRefMap', 'true'
|
|
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
|
|
|
|
workingDirectory project.file('run')
|
|
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
args '--mod', 'steampowered', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
|
|
|
mods {
|
|
steampowered {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
|
|
|
repositories {
|
|
maven {
|
|
url "https://www.cursemaven.com"
|
|
content {
|
|
includeGroup "curse.maven"
|
|
}
|
|
}
|
|
maven {
|
|
// location of the maven that hosts JEI files (And TiC)
|
|
name "Progwml6 maven"
|
|
url "https://dvs1.progwml6.com/files/maven/"
|
|
}
|
|
maven {
|
|
//location of the maven for mixed mappings and registrate
|
|
name = "tterrag maven"
|
|
url = "https://maven.tterrag.com/"
|
|
}
|
|
maven {
|
|
// location of the maven that hosts JEI files (And TiC)
|
|
name "Progwml6 maven"
|
|
url "https://dvs1.progwml6.com/files/maven/"
|
|
}
|
|
maven {
|
|
//location of the maven for vazkii's mods
|
|
name "blamejared"
|
|
url "https://maven.blamejared.com/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
minecraft 'net.minecraftforge:forge:1.16.5-36.2.2'
|
|
|
|
implementation fg.deobf("curse.maven:create-328085:3419412")
|
|
implementation fg.deobf("curse.maven:flywheel-486392:3419392")
|
|
implementation fg.deobf("curse.maven:immersive-engineering-231951:3377691")
|
|
|
|
compileOnly fg.deobf("mezz.jei:jei-1.16.5:7.6.4.88")
|
|
runtimeOnly fg.deobf("mezz.jei:jei-1.16.5:7.6.4.88")
|
|
|
|
annotationProcessor "org.spongepowered:mixin:0.8.3:processor"
|
|
testAnnotationProcessor "org.spongepowered:mixin:0.8.3:processor"
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes([
|
|
"Specification-Title" : "steampowered",
|
|
"Specification-Vendor" : "YueSha, khjxiaogu, goumo_g",
|
|
"Specification-Version" : "1", // We are version 1 of ourselves
|
|
"Implementation-Title" : project.name,
|
|
"Implementation-Version" : project.jar.archiveVersion,
|
|
"Implementation-Vendor" : "YueSha, khjxiaogu, goumo_g",
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
|
"MixinConfigs": "steampowered.mixins.json"
|
|
])
|
|
}
|
|
}
|
|
mixin {
|
|
add sourceSets.main, "steampowered.refmap.json"
|
|
}
|
|
jar.finalizedBy('reobfJar')
|
|
|
|
curseforge {
|
|
project {
|
|
def envApiKey = System.getenv('CURSEFORGE_API_KEY')
|
|
apiKey = envApiKey == null ? 'nope' : envApiKey
|
|
|
|
id = '534610' // Steam Powered
|
|
changelog = "Add a config option to disable dynamo by default"
|
|
|
|
changelogType = 'markdown'
|
|
|
|
releaseType = 'release' // Default versions are marked release
|
|
|
|
addGameVersion "1.16.5"
|
|
|
|
mainArtifact (jar) {
|
|
relations {
|
|
requiredDependency 'create'
|
|
requiredDependency 'flywheel'
|
|
optionalDependency 'immersive-engineering'
|
|
}
|
|
}
|
|
}
|
|
}
|