mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 00:18:34 +01:00
Update buildscript and resource data to 1.14.4 (#1292)
* Update gradlew wrapper * Update buildscript to 1.14 * Fix wrong plugin path * Replace mcmod.info with new mods.toml * Add pack mcmeta * Move logo to main folder because forge 1.14.4 cannot load logo files with a path * Fix version number is wrong * Add jei * Add manifest data (Used for version replacement)
This commit is contained in:
parent
b409090ec4
commit
5cf1d2e674
7 changed files with 83 additions and 47 deletions
75
build.gradle
75
build.gradle
|
@ -7,14 +7,15 @@ buildscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
apply plugin: 'net.minecraftforge.gradle'
|
||||||
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
|
|
||||||
version = "1.12.2-r150"
|
version = "1.14.4-r151"
|
||||||
group = "de.ellpeck.actuallyadditions"
|
group = "de.ellpeck.actuallyadditions"
|
||||||
archivesBaseName = "ActuallyAdditions"
|
archivesBaseName = "ActuallyAdditions"
|
||||||
|
|
||||||
|
@ -23,12 +24,34 @@ if(hasProperty('buildnumber')){
|
||||||
}
|
}
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.12.2-14.23.5.2836"
|
mappings channel: "snapshot", version: "20191107-1.14.3"
|
||||||
runDir = "run"
|
runs {
|
||||||
mappings = "stable_39"
|
client = {
|
||||||
makeObfSourceJar = false
|
workingDirectory project.file("run/client").canonicalPath
|
||||||
replaceIn "ActuallyAdditions.java"
|
mods {
|
||||||
replace "@VERSION@", project.version.toString()
|
actuallyadditions {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
server = {
|
||||||
|
workingDirectory project.file("run/server").canonicalPath
|
||||||
|
mods {
|
||||||
|
actuallyadditions {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data = {
|
||||||
|
workingDirectory project.file("run/data").canonicalPath
|
||||||
|
args "--mod", "actuallyadditions", "--all", "--output", "\"" + file("src/generated/resources").toString() + "\"", "--validate", "--existing", "\"" + sourceSets.main.resources.srcDirs[0] + "\""
|
||||||
|
mods {
|
||||||
|
actuallyadditions {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -44,34 +67,34 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
deobfCompile "mezz.jei:jei_1.12.2:+"
|
minecraft "net.minecraftforge:forge:1.14.4-28.1.86"
|
||||||
deobfCompile "mcp.mobius.waila:Hwyla:1.8+"
|
compileOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.24:api")
|
||||||
deobfCompile ("org.cyclops.commoncapabilities:CommonCapabilities:1.12.2-+")
|
runtimeOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.24")
|
||||||
|
//deobfCompile "mcp.mobius.waila:Hwyla:1.8+"
|
||||||
|
//deobfCompile ("org.cyclops.commoncapabilities:CommonCapabilities:1.12.2-+")
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
def normalManifest = {
|
||||||
inputs.property "version", project.version
|
attributes(
|
||||||
inputs.property "mcversion", project.minecraft.version
|
"Built-On": "1.14.4",
|
||||||
|
"Implementation-Title": "ActuallyAdditions",
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
"Implementation-Version": project.version,
|
||||||
include 'mcmod.info'
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
||||||
|
)
|
||||||
expand 'version': project.version, 'mcversion': project.minecraft.version
|
|
||||||
}
|
|
||||||
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'mcmod.info'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
exclude(".cache")
|
||||||
|
manifest normalManifest
|
||||||
}
|
}
|
||||||
|
|
||||||
task deobfJar(type: Jar) {
|
task deobfJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
from sourceSets.main.java
|
from sourceSets.main.java
|
||||||
classifier = 'dev'
|
classifier = 'dev'
|
||||||
|
|
||||||
|
exclude(".cache")
|
||||||
|
manifest normalManifest
|
||||||
}
|
}
|
||||||
|
|
||||||
task apiJar(type: Jar) {
|
task apiJar(type: Jar) {
|
||||||
|
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
3
gradle/wrapper/gradle-wrapper.properties
vendored
3
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,5 @@
|
||||||
#Sat Jul 01 10:16:13 EDT 2017
|
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
|
||||||
|
|
27
src/main/resources/META-INF/mods.toml
Normal file
27
src/main/resources/META-INF/mods.toml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
modLoader="javafml"
|
||||||
|
loaderVersion="[28,)"
|
||||||
|
issueTrackerURL="http://github.com/Ellpeck/ActuallyAdditions/issues"
|
||||||
|
displayURL="http://github.com/Ellpeck/ActuallyAdditions"
|
||||||
|
logoFile="logo.png"
|
||||||
|
credits="Author: Ellpeck; Textures and Models: BootyToast, GlenthorLP, canitzp"
|
||||||
|
authors="Ellpeck"
|
||||||
|
|
||||||
|
[[mods]]
|
||||||
|
modId="actuallyadditions"
|
||||||
|
version="${file.jarVersion}"
|
||||||
|
displayName="Actually Additions"
|
||||||
|
description="Do you want Automation? Wireless Transport? Better Machines? A cup o' Coffee? Chests? Better Hoppers? Leaf Blowers? Faster Growth? Plants? Well, Actually Additions has all that and a lot more!"
|
||||||
|
|
||||||
|
[[dependencies.actuallyadditions]]
|
||||||
|
modId="forge"
|
||||||
|
mandatory=true
|
||||||
|
versionRange="[28.1.86,)"
|
||||||
|
ordering="NONE"
|
||||||
|
side="BOTH"
|
||||||
|
|
||||||
|
[[dependencies.actuallyadditions]]
|
||||||
|
modId="minecraft"
|
||||||
|
mandatory=true
|
||||||
|
versionRange="[1.14.4]"
|
||||||
|
ordering="NONE"
|
||||||
|
side="BOTH"
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
|
@ -1,19 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"modid": "actuallyadditions",
|
|
||||||
"name": "Actually Additions",
|
|
||||||
"description": "Do you want Automation? Wireless Transport? Better Machines? A cup o' Coffee? Chests? Better Hoppers? Leaf Blowers? Faster Growth? Plants? Well, Actually Additions has all that and a lot more!",
|
|
||||||
"version": "${version}",
|
|
||||||
"mcversion": "${mcversion}",
|
|
||||||
"url": "http://github.com/Ellpeck/ActuallyAdditions",
|
|
||||||
"updateUrl": "",
|
|
||||||
"authorList": [ "Ellpeck" ],
|
|
||||||
"credits": "Author: Ellpeck; Textures and Models: BootyToast, GlenthorLP, canitzp",
|
|
||||||
"logoFile": "assets/actuallyadditions/textures/logo.png",
|
|
||||||
"screenshots": [
|
|
||||||
],
|
|
||||||
"parent":"",
|
|
||||||
"dependencies": [
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
6
src/main/resources/pack.mcmeta
Normal file
6
src/main/resources/pack.mcmeta
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"pack": {
|
||||||
|
"description": "Actually Additions",
|
||||||
|
"pack_format": 4
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue