SteamPowered/build.gradle

178 lines
5.2 KiB
Groovy
Raw Normal View History

2021-08-23 21:32:54 +02:00
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
2021-08-29 17:26:26 +02:00
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
2021-08-23 21:32:54 +02:00
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
2021-08-29 17:26:26 +02:00
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
2021-08-23 21:32:54 +02:00
}
}
2021-10-24 13:20:26 +02:00
plugins {
id 'com.matthewprenger.cursegradle' version '1.4.0'
}
2021-08-23 21:32:54 +02:00
apply plugin: 'net.minecraftforge.gradle'
2021-08-29 17:26:26 +02:00
apply plugin: 'org.spongepowered.mixin'
2021-08-23 21:32:54 +02:00
group = 'com.teammoeg'
2021-10-25 02:30:47 +02:00
version = '1.16.5-1.1.0'
2021-08-23 21:32:54 +02:00
java {
archivesBaseName = 'steampowered'
toolchain.languageVersion = JavaLanguageVersion.of(8)
}
minecraft {
mappings channel: 'official', version: '1.16.5'
2021-08-26 13:45:06 +02:00
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
2021-08-23 21:32:54 +02:00
runs {
client {
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
2021-08-29 17:26:26 +02:00
arg "-mixin.config=" + "steampowered.mixins.json"
2021-08-23 21:32:54 +02:00
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"
2021-08-29 17:26:26 +02:00
arg "-mixin.config=" + "steampowered.mixins.json"
2021-08-23 21:32:54 +02:00
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"
2021-08-23 21:32:54 +02:00
}
jar {
manifest {
attributes([
"Specification-Title" : "steampowered",
2021-10-24 13:20:26 +02:00
"Specification-Vendor" : "YueSha, khjxiaogu, goumo_g",
2021-08-23 21:32:54 +02:00
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : project.jar.archiveVersion,
2021-10-24 13:20:26 +02:00
"Implementation-Vendor" : "YueSha, khjxiaogu, goumo_g",
2021-08-29 17:26:26 +02:00
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"MixinConfigs": "steampowered.mixins.json"
2021-08-23 21:32:54 +02:00
])
}
}
2021-10-16 14:47:50 +02:00
mixin {
add sourceSets.main, "steampowered.refmap.json"
}
2021-08-23 21:32:54 +02:00
jar.finalizedBy('reobfJar')
2021-10-24 13:20:26 +02:00
curseforge {
project {
def envApiKey = System.getenv('CURSEFORGE_API_KEY')
apiKey = envApiKey == null ? 'nope' : envApiKey
id = '534610' // Steam Powered
2021-10-25 02:32:13 +02:00
changelog = "Add a config option to disable dynamo by default"
2021-10-24 14:18:44 +02:00
2021-10-24 13:20:26 +02:00
changelogType = 'markdown'
releaseType = 'release' // Default versions are marked release
addGameVersion "1.16.5"
2021-10-24 14:18:44 +02:00
mainArtifact (jar) {
relations {
requiredDependency 'create'
requiredDependency 'flywheel'
optionalDependency 'immersive-engineering'
}
}
2021-10-24 13:20:26 +02:00
}
}