NaturesAura/build.gradle

126 lines
2.6 KiB
Groovy
Raw Normal View History

2018-10-13 20:35:18 +02:00
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
2018-10-15 18:36:46 +02:00
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'maven'
2018-10-13 20:35:18 +02:00
2019-04-21 19:47:26 +02:00
version = "r17"
2018-10-15 18:36:46 +02:00
group = "de.ellpeck.naturesaura"
2018-11-02 13:27:39 +01:00
archivesBaseName = "NaturesAura"
2018-10-13 20:35:18 +02:00
2018-11-23 15:46:08 +01:00
if (hasProperty('buildnumber')) {
2018-11-14 21:19:32 +01:00
version = "${version}-${this.properties['buildnumber']}"
}
2018-10-15 18:36:46 +02:00
sourceCompatibility = targetCompatibility = '1.8'
2018-10-13 20:35:18 +02:00
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
2018-10-15 18:36:46 +02:00
repositories {
2018-11-11 16:50:51 +01:00
mavenCentral()
2018-10-15 18:36:46 +02:00
maven {
url = "https://dvs1.progwml6.com/files/maven"
2018-10-15 18:36:46 +02:00
}
2018-10-19 14:35:25 +02:00
maven {
url = "http://maven.thiakil.com"
}
maven {
url = "https://maven.blamejared.com"
}
2018-10-13 20:35:18 +02:00
}
dependencies {
compile "vazkii.patchouli:Patchouli:1.0-19.96"
2018-11-23 15:46:08 +01:00
2019-03-01 11:58:39 +01:00
deobfCompile "mezz.jei:jei_1.12.2:4.14.4.267"
2018-10-19 14:35:25 +02:00
deobfCompile "com.azanor.baubles:Baubles:1.12-1.5.2"
2018-11-11 16:50:51 +01:00
compile "com.blamejared:MTLib:3.0.4.8"
compile "CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.11.494"
2018-10-15 18:36:46 +02:00
}
2018-10-13 20:35:18 +02:00
2018-10-15 18:36:46 +02:00
minecraft {
version = "1.12.2-14.23.5.2768"
mappings = "snapshot_20180720"
2018-10-13 20:35:18 +02:00
2018-10-15 18:36:46 +02:00
runDir = "run"
makeObfSourceJar = false
2018-10-13 20:35:18 +02:00
2018-10-15 18:36:46 +02:00
replaceIn "NaturesAura.java"
replace "@VERSION@", project.version.toString()
2018-10-13 20:35:18 +02:00
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
2018-10-15 18:36:46 +02:00
expand 'version': project.version, 'mcversion': project.minecraft.version
2018-10-13 20:35:18 +02:00
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
2018-11-14 21:19:32 +01:00
apply plugin: 'maven-publish'
2018-11-23 15:46:08 +01:00
jar {
}
task deobfJar(type: Jar) {
from sourceSets.main.output
from sourceSets.main.java
classifier = 'dev'
}
2018-11-23 15:40:30 +01:00
task apiJar(type: Jar) {
from sourceSets.main.output
from sourceSets.main.java
classifier = 'api'
include 'de/ellpeck/naturesaura/api/**'
}
javadoc {
include 'de/ellpeck/naturesaura/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'
2018-11-14 21:19:32 +01:00
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
2018-11-23 15:40:30 +01:00
artifact apiJar
artifact javadocJar
artifact sourcesJar
artifact deobfJar
2018-11-14 21:19:32 +01:00
}
}
repositories {
maven {
url "file:///srv/nginx/maven"
//url "file:///tmp/maven"
2018-11-14 21:19:32 +01:00
}
}
}