fix: incorrect build script
This commit is contained in:
parent
97a3dc12a6
commit
3345a53e9e
39
build.gradle
39
build.gradle
|
@ -9,12 +9,11 @@ buildscript {
|
||||||
name = "sonatype"
|
name = "sonatype"
|
||||||
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||||
}
|
}
|
||||||
maven {
|
|
||||||
url = "https://jitpack.io"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.4'
|
classpath ('com.anatawa12.forge:ForgeGradle:1.2-1.0.+') {
|
||||||
|
changing = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +29,9 @@ repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "gt"
|
name = "gt"
|
||||||
url = "https://gregtech.overminddl1.com/"
|
url = "https://gregtech.overminddl1.com/"
|
||||||
|
metadataSources {
|
||||||
|
artifact()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
name = "jitpack"
|
name = "jitpack"
|
||||||
|
@ -40,7 +42,7 @@ repositories {
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "com.github.GTNewHorizons:NotEnoughItems:master-SNAPSHOT:dev"
|
implementation "com.github.GTNewHorizons:NotEnoughItems:2.3.19-GTNH:dev"
|
||||||
implementation "com.github.GTNewHorizons:EnderStorage:master-SNAPSHOT:dev"
|
implementation "com.github.GTNewHorizons:EnderStorage:master-SNAPSHOT:dev"
|
||||||
implementation "com.github.GTNewHorizons:waila:master-SNAPSHOT:dev"
|
implementation "com.github.GTNewHorizons:waila:master-SNAPSHOT:dev"
|
||||||
|
|
||||||
|
@ -96,31 +98,12 @@ processResources {
|
||||||
// exclude xcf files, as they are for development only
|
// exclude xcf files, as they are for development only
|
||||||
exclude '**/*.xcf'
|
exclude '**/*.xcf'
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
inputs.property "version", project.version
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
inputs.property "mcversion", project.minecraft.version
|
||||||
include '*.info'
|
|
||||||
|
|
||||||
// replace version and mcversion
|
filesMatching('mcmod.info') {
|
||||||
expand 'mod_version': project.version, 'minecraft_version': project.config.minecraft_version
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude '**/*.info'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task devJar(type: Jar, dependsOn: 'classes') {
|
|
||||||
from(sourceSets.main.output) {
|
|
||||||
include '**'
|
|
||||||
}
|
|
||||||
|
|
||||||
extension = 'jar'
|
|
||||||
classifier = 'dev'
|
|
||||||
}
|
|
||||||
|
|
||||||
artifacts {
|
|
||||||
archives devJar
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"modid": "EE3",
|
"modid": "EE3",
|
||||||
"name": "Equivalent Exchange 3",
|
"name": "Equivalent Exchange 3",
|
||||||
"description": "Transmute stuff into other stuff! Become a Minecraft God!",
|
"description": "Transmute stuff into other stuff! Become a Minecraft God!",
|
||||||
"version": "${mod_version}",
|
"version": "${version}",
|
||||||
"mcversion": "${minecraft_version}",
|
"mcversion": "${mcversion}",
|
||||||
"url": "http://www.minecraftforum.net/topic/1106178-",
|
"url": "http://www.minecraftforum.net/topic/1106178-",
|
||||||
"updateUrl": "",
|
"updateUrl": "",
|
||||||
"authorList": [
|
"authorList": [
|
||||||
|
@ -19,4 +19,4 @@
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue