2014-11-07 14:19:05 +01:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2020-09-07 19:43:02 +02:00
|
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
2016-01-07 18:20:59 +01:00
|
|
|
jcenter()
|
2020-09-07 19:43:02 +02:00
|
|
|
mavenCentral()
|
2014-11-07 14:19:05 +01:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-11-07 18:59:07 +01:00
|
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
|
2014-11-07 14:19:05 +01:00
|
|
|
}
|
|
|
|
}
|
2016-05-19 20:05:12 +02:00
|
|
|
|
2019-11-07 18:59:07 +01:00
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
|
|
apply plugin: 'eclipse'
|
2016-05-19 20:05:12 +02:00
|
|
|
apply plugin: 'idea'
|
2020-09-06 21:49:25 +02:00
|
|
|
apply plugin: 'maven-publish'
|
2014-11-07 14:19:05 +01:00
|
|
|
|
2020-09-07 19:43:02 +02:00
|
|
|
version = mod_version
|
2015-12-30 22:02:15 +01:00
|
|
|
group = "de.ellpeck.actuallyadditions"
|
2020-09-07 19:43:02 +02:00
|
|
|
archivesBaseName = "actuallyadditions-${mc_version}"
|
2014-11-07 14:19:05 +01:00
|
|
|
|
2019-11-08 02:26:53 +01:00
|
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
2016-07-31 16:30:37 +02:00
|
|
|
|
2020-09-09 16:48:43 +02:00
|
|
|
sourceSets {
|
|
|
|
main.resources.srcDirs += 'src/generated/resources'
|
|
|
|
}
|
|
|
|
|
2014-11-07 14:19:05 +01:00
|
|
|
minecraft {
|
2020-09-07 19:43:02 +02:00
|
|
|
mappings channel: "snapshot", version: mcp_version
|
|
|
|
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
|
|
|
2019-11-07 18:59:07 +01:00
|
|
|
runs {
|
2020-09-07 19:43:02 +02:00
|
|
|
client {
|
2019-11-08 02:26:53 +01:00
|
|
|
properties 'forge.logging.markers': ''
|
|
|
|
properties 'forge.logging.console.level': 'debug'
|
2020-09-07 19:43:02 +02:00
|
|
|
workingDirectory project.file('run')
|
|
|
|
mods {
|
|
|
|
actuallyadditions {
|
|
|
|
source sourceSets.main
|
|
|
|
}
|
|
|
|
}
|
2019-11-07 18:59:07 +01:00
|
|
|
}
|
2020-09-07 19:43:02 +02:00
|
|
|
server {
|
2019-11-08 02:26:53 +01:00
|
|
|
properties 'forge.logging.markers': ''
|
|
|
|
properties 'forge.logging.console.level': 'debug'
|
2020-09-09 16:42:35 +02:00
|
|
|
workingDirectory project.file('run/server')
|
2020-09-07 19:43:02 +02:00
|
|
|
mods {
|
|
|
|
actuallyadditions {
|
|
|
|
source sourceSets.main
|
|
|
|
}
|
|
|
|
}
|
2019-11-07 18:59:07 +01:00
|
|
|
}
|
2020-09-07 19:43:02 +02:00
|
|
|
data {
|
2020-09-09 16:42:35 +02:00
|
|
|
workingDirectory project.file('run/data')
|
2020-09-09 16:48:43 +02:00
|
|
|
args "--mod", "actuallyadditions", "--all", "--output", file('src/generated/resources/'), "--existing", file('src/main/resources')
|
2019-11-07 18:59:07 +01:00
|
|
|
mods {
|
|
|
|
actuallyadditions {
|
|
|
|
source sourceSets.main
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-11-07 14:19:05 +01:00
|
|
|
}
|
|
|
|
|
2015-04-26 20:07:57 +02:00
|
|
|
repositories {
|
2016-01-16 20:06:25 +01:00
|
|
|
maven {
|
2020-09-07 19:43:02 +02:00
|
|
|
name = "Progwml6 maven / JEI Maven"
|
2020-09-07 15:10:08 +02:00
|
|
|
url = "https://dvs1.progwml6.com/files/maven/"
|
|
|
|
}
|
|
|
|
maven {
|
2020-09-07 19:43:02 +02:00
|
|
|
name = "ModMaven / JEI Mirror"
|
2020-09-07 15:10:08 +02:00
|
|
|
url = "https://modmaven.k-4u.nl"
|
2017-08-24 07:00:33 +02:00
|
|
|
}
|
2015-04-26 20:07:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-09-07 15:10:08 +02:00
|
|
|
minecraft "net.minecraftforge:forge:${mc_version}-${forge_version}"
|
2020-09-07 19:43:02 +02:00
|
|
|
|
2020-09-07 15:10:08 +02:00
|
|
|
// compile against the JEI API but do not include it at runtime
|
|
|
|
compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
|
|
|
|
// at runtime, use the full JEI jar
|
|
|
|
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}")
|
2014-11-07 14:19:05 +01:00
|
|
|
}
|
|
|
|
|
2019-11-08 02:26:53 +01:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(["Specification-Title": "actuallyadditions",
|
|
|
|
"Specification-Vendor": "Ellpeck",
|
2020-09-07 19:43:02 +02:00
|
|
|
"Specification-Version": mod_version,
|
2019-11-08 02:26:53 +01:00
|
|
|
"Implementation-Title": project.name,
|
|
|
|
"Implementation-Version": "${version}",
|
|
|
|
"Implementation-Vendor" :"Ellpeck",
|
|
|
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-06 03:50:15 +01:00
|
|
|
task deobfJar(type: Jar) {
|
2020-09-06 21:46:49 +02:00
|
|
|
from(sourceSets.main.output)
|
|
|
|
archiveName = "${baseName}-${version}-deobf.${extension}"
|
2016-07-31 16:30:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
2020-09-06 21:46:49 +02:00
|
|
|
from(sourceSets.main.allSource)
|
|
|
|
archiveName = "${baseName}-${version}-sources.${extension}"
|
2016-07-31 16:30:37 +02:00
|
|
|
}
|
|
|
|
|
2020-09-06 21:46:49 +02:00
|
|
|
artifacts {
|
|
|
|
archives deobfJar
|
|
|
|
archives sourcesJar
|
|
|
|
}
|
2016-07-31 16:30:37 +02:00
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
2020-09-06 21:46:49 +02:00
|
|
|
groupId project.group
|
|
|
|
artifactId project.archivesBaseName
|
|
|
|
version project.version
|
|
|
|
from components.java
|
|
|
|
|
|
|
|
artifact deobfJar {
|
|
|
|
classifier 'deobf'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifact sourcesJar {
|
|
|
|
classifier 'sources'
|
|
|
|
}
|
|
|
|
|
|
|
|
pom.withXml {
|
|
|
|
def node = asNode()
|
|
|
|
if (node.dependencies.size() > 0)
|
|
|
|
node.remove(node.dependencies)
|
|
|
|
}
|
2016-07-31 16:30:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
2020-09-06 21:46:49 +02:00
|
|
|
url "file://" + System.getenv("local_maven")
|
2016-07-31 16:30:37 +02:00
|
|
|
}
|
|
|
|
}
|
2020-09-06 21:46:49 +02:00
|
|
|
}
|