ActuallyAdditions/build.gradle

138 lines
3.2 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'
2014-11-07 14:19:05 +01:00
version = "1.14.4-r151"
2015-12-30 22:02:15 +01:00
group = "de.ellpeck.actuallyadditions"
2015-03-07 12:51:28 +01:00
archivesBaseName = "ActuallyAdditions"
2014-11-07 14:19:05 +01:00
2016-07-31 16:30:37 +02:00
if(hasProperty('buildnumber')){
version = "${version}-${this.properties['buildnumber']}"
}
2014-11-07 14:19:05 +01:00
minecraft {
mappings channel: "snapshot", version: "20191107-1.14.3"
runs {
client = {
workingDirectory project.file("run/client").canonicalPath
mods {
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
}
}
}
}
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 {
2019-05-02 09:08:06 +02:00
url "https://dvs1.progwml6.com/files/maven"
}
maven {
url "http://tehnut.info/maven"
}
maven {
url "https://dl.bintray.com/cyclopsmc/dev/"
}
2015-04-26 20:07:57 +02:00
}
dependencies {
minecraft "net.minecraftforge:forge:1.14.4-28.1.86"
compileOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.24:api")
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-+")
2014-11-07 14:19:05 +01:00
}
def normalManifest = {
attributes(
"Built-On": "1.14.4",
"Implementation-Title": "ActuallyAdditions",
"Implementation-Version": project.version,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
)
2014-11-07 14:19:05 +01:00
}
2015-01-05 22:50:20 +01:00
2016-05-19 20:05:12 +02:00
jar {
exclude(".cache")
manifest normalManifest
2016-05-19 20:05:12 +02:00
}
task deobfJar(type: Jar) {
from sourceSets.main.output
2016-05-19 20:05:12 +02:00
from sourceSets.main.java
classifier = 'dev'
exclude(".cache")
manifest normalManifest
}
task apiJar(type: Jar) {
from sourceSets.main.output
from sourceSets.main.java
classifier = 'api'
include 'de/ellpeck/actuallyadditions/api/**'
2016-07-31 16:30:37 +02:00
}
javadoc {
include 'de/ellpeck/actuallyadditions/api/**'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from 'build/docs/javadoc'
classifier 'javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.java
classifier = 'sources'
}
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
artifact apiJar
artifact javadocJar
artifact sourcesJar
artifact deobfJar
}
}
repositories {
maven {
url "file:///srv/nginx/maven"
}
}
}