mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-26 23:13:07 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1e0215080 | ||
|
|
54992ccb71 | ||
|
|
77c1b603bc | ||
|
|
d7bc4873ad | ||
|
|
5a36570a35 | ||
|
|
f784161937 | ||
|
|
eb24fc8f62 | ||
|
|
02aad542d6 |
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
directory="run/crash-reports"
|
||||||
|
if [ -d $directory ]; then
|
||||||
|
echo "Crash reports detected:"
|
||||||
|
cat $directory/*
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "No crash reports detected"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
name: Build pull request
|
name: Build and test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, main ]
|
branches: [ master, main ]
|
||||||
|
push:
|
||||||
|
branches: [ master, main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -30,3 +32,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Build the mod
|
- name: Build the mod
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|
||||||
|
- name: Run server for 1 minute
|
||||||
|
run: |
|
||||||
|
mkdir run
|
||||||
|
echo "eula=true" > run/eula.txt
|
||||||
|
timeout 10 ./gradlew runServer || true
|
||||||
|
|
||||||
|
- name: Test no crashes happend
|
||||||
|
run: |
|
||||||
|
chmod +x .github/scripts/test-no-crash-reports.sh
|
||||||
|
.github/scripts/test-no-crash-reports.sh
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||||
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
|
name: Release tagged build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set release version
|
||||||
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up JDK 8
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '8'
|
||||||
|
distribution: 'adopt'
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
|
- name: Grant execute permission for gradlew
|
||||||
|
run: chmod +x gradlew
|
||||||
|
|
||||||
|
- name: Setup the workspace
|
||||||
|
run: ./gradlew setupCIWorkspace
|
||||||
|
|
||||||
|
- name: Build the mod
|
||||||
|
run: ./gradlew build
|
||||||
|
|
||||||
|
- name: Release under current tag
|
||||||
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
|
with:
|
||||||
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
|
||||||
|
prerelease: false
|
||||||
|
title: "${{ env.RELEASE_VERSION }}"
|
||||||
|
files: build/libs/*.jar
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
||||||
|
|
||||||
name: Build and release main branch
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master, main ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Set up JDK 8
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
java-version: '8'
|
|
||||||
distribution: 'adopt'
|
|
||||||
cache: gradle
|
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
|
||||||
run: chmod +x gradlew
|
|
||||||
|
|
||||||
- name: Setup the workspace
|
|
||||||
run: ./gradlew setupCIWorkspace
|
|
||||||
|
|
||||||
- name: Build the mod
|
|
||||||
run: ./gradlew build
|
|
||||||
|
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
||||||
with:
|
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
automatic_release_tag: "latest"
|
|
||||||
prerelease: true
|
|
||||||
title: "Latest Development Build"
|
|
||||||
files: build/libs/*.jar
|
|
||||||
|
|
||||||
@@ -21,7 +21,6 @@ server.properties
|
|||||||
servers.dat
|
servers.dat
|
||||||
usercache.json
|
usercache.json
|
||||||
whitelist.json
|
whitelist.json
|
||||||
world/
|
|
||||||
/out/
|
/out/
|
||||||
*.iml
|
*.iml
|
||||||
*.ipr
|
*.ipr
|
||||||
|
|||||||
+87
-96
@@ -1,4 +1,4 @@
|
|||||||
//version: 21647c763d3f6c90d59c900edae1248239c49dfb
|
//version: ffe7b130f98fdfa1ac7c6ba4bd34722a55ab28d4
|
||||||
/*
|
/*
|
||||||
DO NOT CHANGE THIS FILE!
|
DO NOT CHANGE THIS FILE!
|
||||||
|
|
||||||
@@ -8,15 +8,12 @@ Please check https://github.com/SinTh0r4s/ExampleMod1.7.10/blob/main/build.gradl
|
|||||||
|
|
||||||
|
|
||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
||||||
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
|
||||||
name = "jitpack"
|
|
||||||
url = "https://jitpack.io"
|
|
||||||
}
|
|
||||||
maven {
|
maven {
|
||||||
name = "forge"
|
name = "forge"
|
||||||
url = "https://maven.minecraftforge.net"
|
url = "https://maven.minecraftforge.net"
|
||||||
@@ -29,25 +26,31 @@ buildscript {
|
|||||||
name = "Scala CI dependencies"
|
name = "Scala CI dependencies"
|
||||||
url = "https://repo1.maven.org/maven2/"
|
url = "https://repo1.maven.org/maven2/"
|
||||||
}
|
}
|
||||||
|
maven {
|
||||||
|
name = "jitpack"
|
||||||
|
url = "https://jitpack.io"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.github.TheElan:ForgeGradle:1.2.2'
|
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.4'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
id 'idea'
|
||||||
|
id 'scala'
|
||||||
id("org.ajoberstar.grgit") version("3.1.1")
|
id("org.ajoberstar.grgit") version("3.1.1")
|
||||||
id("com.github.johnrengelman.shadow") version("4.0.4")
|
id("com.github.johnrengelman.shadow") version("4.0.4")
|
||||||
id("com.palantir.git-version") version("0.12.3")
|
id("com.palantir.git-version") version("0.12.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'scala'
|
|
||||||
apply plugin: 'forge'
|
apply plugin: 'forge'
|
||||||
apply plugin: 'idea'
|
|
||||||
|
def projectJavaVersion = JavaLanguageVersion.of(8)
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion.set(JavaLanguageVersion.of(8))
|
languageVersion.set(projectJavaVersion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,6 +62,10 @@ idea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(JavaVersion.current() != JavaVersion.VERSION_1_8) {
|
||||||
|
throw new GradleException("This project requires Java 8, but it's running on " + JavaVersion.current())
|
||||||
|
}
|
||||||
|
|
||||||
checkPropertyExists("modName")
|
checkPropertyExists("modName")
|
||||||
checkPropertyExists("modId")
|
checkPropertyExists("modId")
|
||||||
checkPropertyExists("modGroup")
|
checkPropertyExists("modGroup")
|
||||||
@@ -150,7 +157,12 @@ configurations.all {
|
|||||||
// Fix Jenkins' Git: chmod a file should not be detected as a change and append a '.dirty' to the version
|
// Fix Jenkins' Git: chmod a file should not be detected as a change and append a '.dirty' to the version
|
||||||
'git config core.fileMode false'.execute()
|
'git config core.fileMode false'.execute()
|
||||||
// Pulls version from git tag
|
// Pulls version from git tag
|
||||||
version = minecraftVersion + "-" + gitVersion()
|
try {
|
||||||
|
version = minecraftVersion + "-" + gitVersion()
|
||||||
|
}
|
||||||
|
catch (Exception e) {
|
||||||
|
throw new IllegalStateException("This mod must be version controlled by Git AND the repository must provide at least one tag!");
|
||||||
|
}
|
||||||
group = modGroup
|
group = modGroup
|
||||||
archivesBaseName = modId
|
archivesBaseName = modId
|
||||||
|
|
||||||
@@ -166,7 +178,7 @@ minecraft {
|
|||||||
if(gradleTokenModName) {
|
if(gradleTokenModName) {
|
||||||
replace gradleTokenModName, modName
|
replace gradleTokenModName, modName
|
||||||
}
|
}
|
||||||
if(gradleTokenModName) {
|
if(gradleTokenVersion) {
|
||||||
replace gradleTokenVersion, versionDetails().lastTag
|
replace gradleTokenVersion, versionDetails().lastTag
|
||||||
}
|
}
|
||||||
if(gradleTokenGroupName) {
|
if(gradleTokenGroupName) {
|
||||||
@@ -186,6 +198,10 @@ configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "Overmind forge repo mirror"
|
||||||
|
url = "https://gregtech.overminddl1.com/"
|
||||||
|
}
|
||||||
if(usesMixins.toBoolean()) {
|
if(usesMixins.toBoolean()) {
|
||||||
maven {
|
maven {
|
||||||
name = "sponge"
|
name = "sponge"
|
||||||
@@ -218,19 +234,13 @@ dependencies {
|
|||||||
|
|
||||||
apply from: 'dependencies.gradle'
|
apply from: 'dependencies.gradle'
|
||||||
|
|
||||||
task relocateShadowJar(type: ConfigureShadowRelocation) {
|
|
||||||
target = tasks.shadowJar
|
|
||||||
prefix = modGroup + ".shadow"
|
|
||||||
}
|
|
||||||
|
|
||||||
def mixinConfigJson = "mixins." + modId + ".json"
|
|
||||||
def mixingConfigRefMap = "mixins." + modId + ".refmap.json"
|
def mixingConfigRefMap = "mixins." + modId + ".refmap.json"
|
||||||
def refMap = "${tasks.compileJava.temporaryDir}" + File.separator + mixingConfigRefMap
|
def refMap = "${tasks.compileJava.temporaryDir}" + File.separator + mixingConfigRefMap
|
||||||
def mixinSrg = "${tasks.reobf.temporaryDir}" + File.separator + "mixins.srg"
|
def mixinSrg = "${tasks.reobf.temporaryDir}" + File.separator + "mixins.srg"
|
||||||
|
|
||||||
task generateAssets {
|
task generateAssets {
|
||||||
if(usesMixins.toBoolean()) {
|
if(usesMixins.toBoolean()) {
|
||||||
new File(projectDir.toString() + "/src/main/resources/", mixinConfigJson).text = """{
|
new File(projectDir.toString() + "/src/main/resources/", "mixins." + modId + ".json").text = """{
|
||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.7.11",
|
"minVersion": "0.7.11",
|
||||||
"package": "${modGroup}.${mixinsPackage}",
|
"package": "${modGroup}.${mixinsPackage}",
|
||||||
@@ -244,61 +254,24 @@ task generateAssets {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task relocateShadowJar(type: ConfigureShadowRelocation) {
|
||||||
|
target = tasks.shadowJar
|
||||||
|
prefix = modGroup + ".shadow"
|
||||||
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
def manifestAttributes = [:]
|
|
||||||
if(containsMixinsAndOrCoreModOnly.toBoolean() == false) {
|
|
||||||
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(accessTransformersFile) {
|
|
||||||
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(coreModClass) {
|
|
||||||
manifestAttributes += ["FMLCorePlugin": modGroup + "." + coreModClass]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(usesMixins.toBoolean()) {
|
|
||||||
from refMap
|
|
||||||
manifestAttributes += [
|
|
||||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
|
||||||
"MixinConfigs" : mixinConfigJson,
|
|
||||||
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
|
||||||
]
|
|
||||||
}
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes(manifestAttributes)
|
attributes(getManifestAttributes())
|
||||||
}
|
}
|
||||||
|
|
||||||
minimize()
|
minimize() // This will only allow shading for actually used classes
|
||||||
configurations = [project.configurations.shadowImplementation]
|
configurations = [project.configurations.shadowImplementation]
|
||||||
dependsOn(relocateShadowJar)
|
dependsOn(relocateShadowJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
def manifestAttributes = [:]
|
|
||||||
if(containsMixinsAndOrCoreModOnly.toBoolean() == false) {
|
|
||||||
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(accessTransformersFile) {
|
|
||||||
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(coreModClass) {
|
|
||||||
manifestAttributes += ["FMLCorePlugin": modGroup + "." + coreModClass]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(usesMixins.toBoolean()) {
|
|
||||||
from refMap
|
|
||||||
manifestAttributes += [
|
|
||||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
|
||||||
"MixinConfigs" : mixinConfigJson,
|
|
||||||
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
|
||||||
]
|
|
||||||
}
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes(manifestAttributes)
|
attributes(getManifestAttributes())
|
||||||
}
|
}
|
||||||
|
|
||||||
if(usesShadowedDependencies.toBoolean()) {
|
if(usesShadowedDependencies.toBoolean()) {
|
||||||
@@ -351,7 +324,7 @@ runClient {
|
|||||||
runServer {
|
runServer {
|
||||||
def arguments = []
|
def arguments = []
|
||||||
|
|
||||||
if(usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
arguments += [
|
arguments += [
|
||||||
"--mods=../build/libs/$modId-${version}.jar",
|
"--mods=../build/libs/$modId-${version}.jar",
|
||||||
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
|
"--tweakClass org.spongepowered.asm.launch.MixinTweaker"
|
||||||
@@ -361,6 +334,14 @@ runServer {
|
|||||||
args(arguments)
|
args(arguments)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(JavaExec).configureEach {
|
||||||
|
javaLauncher.set(
|
||||||
|
javaToolchains.launcherFor {
|
||||||
|
languageVersion = projectJavaVersion
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
processResources
|
processResources
|
||||||
{
|
{
|
||||||
// this will ensure that this task is redone when the versions change.
|
// this will ensure that this task is redone when the versions change.
|
||||||
@@ -378,19 +359,19 @@ processResources
|
|||||||
"modName": modName
|
"modName": modName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(usesMixins.toBoolean()) {
|
||||||
|
from refMap
|
||||||
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
// copy everything else, thats not the mcmod.info
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
exclude 'mcmod.info'
|
exclude 'mcmod.info'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task sourcesJar(type: Jar) {
|
def getManifestAttributes() {
|
||||||
from (sourceSets.main.allJava)
|
|
||||||
from (file("$projectDir/LICENSE"))
|
|
||||||
getArchiveClassifier().set('sources')
|
|
||||||
|
|
||||||
def manifestAttributes = [:]
|
def manifestAttributes = [:]
|
||||||
if(containsMixinsAndOrCoreModOnly.toBoolean() == false) {
|
if(containsMixinsAndOrCoreModOnly.toBoolean() == false && (usesMixins.toBoolean() || coreModClass)) {
|
||||||
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -403,45 +384,55 @@ task sourcesJar(type: Jar) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(usesMixins.toBoolean()) {
|
if(usesMixins.toBoolean()) {
|
||||||
from refMap
|
|
||||||
manifestAttributes += [
|
manifestAttributes += [
|
||||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||||
"MixinConfigs" : mixinConfigJson,
|
"MixinConfigs" : "mixins." + modId + ".json",
|
||||||
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
return manifestAttributes
|
||||||
|
}
|
||||||
|
|
||||||
|
task sourcesJar(type: Jar) {
|
||||||
|
from (sourceSets.main.allJava)
|
||||||
|
from (file("$projectDir/LICENSE"))
|
||||||
|
getArchiveClassifier().set('sources')
|
||||||
|
}
|
||||||
|
|
||||||
|
task shadowDevJar(type: ShadowJar) {
|
||||||
|
from sourceSets.main.output
|
||||||
|
getArchiveClassifier().set("dev")
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes(manifestAttributes)
|
attributes(getManifestAttributes())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minimize() // This will only allow shading for actually used classes
|
||||||
|
configurations = [project.configurations.shadowImplementation]
|
||||||
|
}
|
||||||
|
|
||||||
|
task relocateShadowDevJar(type: ConfigureShadowRelocation) {
|
||||||
|
target = tasks.shadowDevJar
|
||||||
|
prefix = modGroup + ".shadow"
|
||||||
|
}
|
||||||
|
|
||||||
|
task circularResolverJar(type: Jar) {
|
||||||
|
dependsOn(relocateShadowDevJar)
|
||||||
|
dependsOn(shadowDevJar)
|
||||||
|
enabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
task devJar(type: Jar) {
|
task devJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
getArchiveClassifier().set("dev")
|
getArchiveClassifier().set("dev")
|
||||||
|
|
||||||
def manifestAttributes = [:]
|
|
||||||
if(containsMixinsAndOrCoreModOnly.toBoolean() == false) {
|
|
||||||
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(accessTransformersFile) {
|
|
||||||
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(coreModClass) {
|
|
||||||
manifestAttributes += ["FMLCorePlugin": modGroup + "." + coreModClass]
|
|
||||||
}
|
|
||||||
|
|
||||||
if(usesMixins.toBoolean()) {
|
|
||||||
from refMap
|
|
||||||
manifestAttributes += [
|
|
||||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
|
||||||
"MixinConfigs" : mixinConfigJson,
|
|
||||||
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
|
||||||
]
|
|
||||||
}
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes(manifestAttributes)
|
attributes(getManifestAttributes())
|
||||||
|
}
|
||||||
|
|
||||||
|
if(usesShadowedDependencies.toBoolean()) {
|
||||||
|
dependsOn(circularResolverJar)
|
||||||
|
enabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -523,4 +514,4 @@ static String getVersionHash(String buildScriptContent) {
|
|||||||
configure(updateBuildScript) {
|
configure(updateBuildScript) {
|
||||||
group = 'forgegradle'
|
group = 'forgegradle'
|
||||||
description = 'Updates the build script to the latest version'
|
description = 'Updates the build script to the latest version'
|
||||||
}
|
}
|
||||||
+1
-4
@@ -1,8 +1,5 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev")
|
compile("com.github.GTNewHorizons:NotEnoughItems:master-SNAPSHOT:dev")
|
||||||
compile("codechicken:NotEnoughItems:1.7.10-1.0.5.120:dev")
|
|
||||||
|
|
||||||
runtime("codechicken:CodeChickenCore:1.7.10-1.0.7.47:dev")
|
|
||||||
}
|
}
|
||||||
+1
-2
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "chickenbones"
|
url = "https://jitpack.io"
|
||||||
url = "http://chickenbones.net/maven"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -579,7 +579,7 @@ object ASMMixinCompiler
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fields += FieldMixin(sym.name.trim, getReturnType(sym.jDesc).getDescriptor,
|
fields += FieldMixin(sym.name.trim, sym.jDesc,
|
||||||
if (fieldAccessors(sym.name.trim).isPrivate) ACC_PRIVATE else ACC_PUBLIC)
|
if (fieldAccessors(sym.name.trim).isPrivate) ACC_PRIVATE else ACC_PUBLIC)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -588,4 +588,4 @@ object ASMMixinCompiler
|
|||||||
mixinMap.put(cnode.name, mixin)
|
mixinMap.put(cnode.name, mixin)
|
||||||
mixin
|
mixin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user