ActuallyAdditions/build.gradle

129 lines
2.7 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 {
2017-06-17 00:48:49 +02:00
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
2014-11-07 14:19:05 +01:00
}
}
2016-05-19 20:05:12 +02:00
2016-01-07 18:20:59 +01:00
apply plugin: 'net.minecraftforge.gradle.forge'
2016-05-19 20:05:12 +02:00
apply plugin: 'idea'
2014-11-07 14:19:05 +01:00
version = "1.12.2-r152"
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
2020-11-07 14:38:30 +01:00
if (System.getenv('BUILD_NUMBER') != null) {
version += "." + System.getenv('BUILD_NUMBER')
2016-07-31 16:30:37 +02:00
}
2014-11-07 14:19:05 +01:00
minecraft {
2019-05-02 09:08:06 +02:00
version = "1.12.2-14.23.5.2836"
2020-11-20 18:46:34 +01:00
runDir = "run"
2020-11-20 18:55:16 +01:00
mappings = "stable_39"
makeObfSourceJar = false
2018-05-10 11:38:58 +02:00
replaceIn "ActuallyAdditions.java"
2015-11-29 13:17:45 +01:00
replace "@VERSION@", project.version.toString()
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"
}
2020-11-20 18:55:16 +01:00
maven {
url "https://maven.tehnut.info"
}
maven {
url "https://dl.bintray.com/cyclopsmc/dev/"
}
2015-04-26 20:07:57 +02:00
}
dependencies {
2020-11-20 18:55:16 +01:00
deobfCompile "mezz.jei:jei_1.12.2:+"
deobfCompile "mcp.mobius.waila:Hwyla:1.8+"
2019-05-02 09:08:06 +02:00
deobfCompile ("org.cyclops.commoncapabilities:CommonCapabilities:1.12.2-+")
2014-11-07 14:19:05 +01:00
}
processResources {
2014-11-07 14:19:05 +01:00
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
2020-11-20 18:55:16 +01:00
expand 'version': project.version, 'mcversion': project.minecraft.version
2014-11-07 14:19:05 +01:00
}
2015-10-03 22:13:57 +02:00
2014-11-07 14:19:05 +01:00
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
2015-01-05 22:50:20 +01:00
2020-11-20 18:55:16 +01:00
jar {
}
2016-05-19 20:05:12 +02:00
task deobfJar(type: Jar) {
2020-11-20 18:46:34 +01:00
from sourceSets.main.output
from sourceSets.main.java
classifier = 'dev'
}
task apiJar(type: Jar) {
2020-11-20 18:46:34 +01:00
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'
}
2020-11-20 18:46:34 +01:00
task sourcesJar(type: Jar) {
from sourceSets.main.java
classifier = 'sources'
}
apply plugin: 'maven-publish'
2016-07-31 16:30:37 +02:00
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
from components.java
2020-11-20 18:59:03 +01:00
artifact deobfJar {
classifier 'deobf'
}
artifact sourcesJar {
classifier 'sources'
}
artifact apiJar {
classifier 'api'
}
artifact javadocJar {
classifier 'docs'
}
2020-11-20 18:46:34 +01:00
artifact jar
2016-07-31 16:30:37 +02:00
}
}
repositories {
maven {
2020-10-07 21:25:00 +02:00
url "file://" + System.getenv("local_maven")
2016-07-31 16:30:37 +02:00
}
}
}