ActuallyAdditions/build.gradle

124 lines
3.4 KiB
Groovy
Raw Normal View History

2014-11-07 14:19:05 +01:00
buildscript {
repositories {
2016-01-07 18:20:59 +01:00
jcenter()
2014-11-07 14:19:05 +01:00
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
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
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
2019-11-08 02:26:53 +01:00
version = "2.0.0"
2015-12-30 22:02:15 +01:00
group = "de.ellpeck.actuallyadditions"
2019-11-08 02:26:53 +01:00
archivesBaseName = "ActuallyAdditions-1.14.4"
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
2014-11-07 14:19:05 +01:00
minecraft {
mappings channel: "snapshot", version: "20191107-1.14.3"
runs {
client = {
2019-11-08 02:26:53 +01:00
properties 'forge.logging.markers': ''
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run').canonicalPath
source sourceSets.main
}
server = {
2019-11-08 02:26:53 +01:00
properties 'forge.logging.markers': ''
properties 'forge.logging.console.level': 'debug'
workingDirectory project.file('run/server').canonicalPath
2019-11-08 02:26:53 +01:00
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
}
}
}
}
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 {
url "https://dvs1.progwml6.com/files/maven"
}
maven {
url "https://tehnut.info/maven"
}
2015-04-26 20:07:57 +02:00
}
dependencies {
2019-11-08 02:26:53 +01:00
minecraft 'net.minecraftforge:forge:1.14.4-28.1.86'
compile fg.deobf('mezz.jei:jei-1.14.4:6.0.0.24')
compile fg.deobf('mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4')
2019-11-08 02:26:53 +01:00
compile fileTree(dir: 'libs', include: '*.jar')
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",
"Specification-Version": "24.0",
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"Ellpeck",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
}
}
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
}