mirror of
https://github.com/MinecraftForge/MinecraftForge
synced 2026-08-22 04:26:10 -04:00
Declare ME in userdev config as an effective compile transitive Co-authored-by: LexManos <LexManos@gmail.com>
54 lines
1.6 KiB
Groovy
54 lines
1.6 KiB
Groovy
import net.minecraftforge.forge.tasks.*
|
|
import net.minecraftforge.gradleutils.PomUtils
|
|
|
|
plugins {
|
|
id 'net.minecraftforge.licenser' version '1.0.1'
|
|
id 'com.github.ben-manes.versions' version '0.46.0'
|
|
id 'net.minecraftforge.gradleutils' version '[2.6.4,2.7)'
|
|
id 'eclipse'
|
|
id 'de.undercouch.download' version '5.4.0'
|
|
id 'net.minecraftforge.gradle.patcher' version '[6.0.46,6.2)' apply false
|
|
id 'net.minecraftforge.gradle.mcp' version '[6.0.46,6.2)' apply false
|
|
id 'net.minecraftforge.gradlejarsigner' version '1.0.4'
|
|
id 'org.barfuin.gradle.taskinfo' version '2.1.0'
|
|
}
|
|
|
|
Util.init() //Init all our extension methods!
|
|
|
|
ext {
|
|
VERSION = gitversion.getMCTagOffsetBranch(MC_VERSION)
|
|
FORGE_VERSION = VERSION.substring(MC_VERSION.length() + 1)
|
|
}
|
|
|
|
changelog {
|
|
from '47.999'
|
|
}
|
|
|
|
tasks.register('setup') {
|
|
dependsOn ':forge:extractMapped'
|
|
if (findProject(':clean'))
|
|
dependsOn ':clean:extractMapped'
|
|
}
|
|
|
|
tasks.register('doChecks') {
|
|
dependsOn ':forge:checkJarCompatibility'
|
|
dependsOn ':forge:publish'
|
|
}
|
|
|
|
project(':mcp') {
|
|
apply plugin: 'net.minecraftforge.gradle.mcp'
|
|
mcp {
|
|
config MC_VERSION + '-' + MCP_VERSION
|
|
pipeline = 'joined'
|
|
}
|
|
}
|
|
|
|
if (System.env.TEAMCITY_VERSION) {
|
|
//Only setup the CI environment if and only if the environment variables are set.
|
|
tasks.named('configureTeamCity').configure {
|
|
doLast {
|
|
println "##teamcity[buildNumber '${project(':forge').version}']"
|
|
println "##teamcity[setParameter name='env.PUBLISHED_JAVA_ARTIFACT_VERSION' value='${project(':forge').version}']"
|
|
}
|
|
}
|
|
}
|