148 lines
3.4 KiB
Groovy
Executable File
148 lines
3.4 KiB
Groovy
Executable File
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
maven {
|
|
name = "forge"
|
|
url = "http://files.minecraftforge.net/maven"
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "com.jfrog.bintray" version "1.7"
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
|
|
|
version = "1.5.22"
|
|
group = "refinedstorage"
|
|
archivesBaseName = "refinedstorage"
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
minecraft {
|
|
version = "1.12.2-14.23.0.2493"
|
|
runDir = "run"
|
|
useDepAts = true
|
|
mappings = "snapshot_20170926"
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url "http://dvs1.progwml6.com/files/maven"
|
|
}
|
|
maven {
|
|
url "http://maven.amadornes.com"
|
|
}
|
|
maven {
|
|
url "http://maven.cil.li"
|
|
}
|
|
maven {
|
|
url "https://dl.bintray.com/jaquadro/dev"
|
|
}
|
|
maven {
|
|
name = "CurseForge"
|
|
url = "https://minecraft.curseforge.com/api/maven/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
deobfCompile "mezz.jei:jei_1.12.2:4.7.11.101:api"
|
|
runtime "mezz.jei:jei_1.12.2:4.7.11.101"
|
|
deobfCompile "MCMultiPart2:MCMultiPart:2.2.2"
|
|
deobfCompile "li.cil.oc:OpenComputers:MC1.12.1-1.7.0.4:api"
|
|
deobfCompile "com.jaquadro.minecraft.storagedrawers:StorageDrawers:1.12.1-5.3.3:api"
|
|
compile "inventory-tweaks:InventoryTweaks:1.63+beta.107:api"
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", project.version
|
|
inputs.property "mcversion", project.minecraft.version
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include 'mcmod.info'
|
|
|
|
expand 'version': project.version, 'mcversion': project.minecraft.version
|
|
}
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
exclude 'mcmod.info'
|
|
}
|
|
}
|
|
|
|
jar {
|
|
include "com/raoulvdberge/refinedstorage/**"
|
|
include "assets/**"
|
|
include "mcmod.info"
|
|
include "pack.mcmeta"
|
|
}
|
|
|
|
task deobfJar(type: Jar) {
|
|
from sourceSets.main.output
|
|
classifier 'deobf'
|
|
}
|
|
|
|
task apiJar(type: Jar, dependsOn: 'sourceMainJava') {
|
|
from sourceSets.main.allSource
|
|
from sourceSets.main.output
|
|
include 'com/raoulvdberge/refinedstorage/api/**/*'
|
|
classifier 'api'
|
|
}
|
|
|
|
task signJar(type: SignJar, dependsOn: reobfJar) {
|
|
doLast {
|
|
keyStore = project.property('keyStore')
|
|
alias = project.property('keyStoreAlias')
|
|
storePass = project.property('keyStorePass')
|
|
keyPass = project.property('keyStoreKeyPass')
|
|
inputFile = jar.archivePath
|
|
outputFile = jar.archivePath
|
|
}
|
|
}
|
|
|
|
signJar.onlyIf {
|
|
project.hasProperty('keyStore')
|
|
}
|
|
|
|
artifacts {
|
|
archives deobfJar
|
|
archives apiJar
|
|
archives sourceJar
|
|
archives jar
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
MyPublication(MavenPublication) {
|
|
groupId = project.group
|
|
artifactId = project.archivesBaseName
|
|
version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
|
|
artifact deobfJar
|
|
artifact sourceJar
|
|
artifact apiJar
|
|
artifact jar
|
|
}
|
|
}
|
|
}
|
|
|
|
bintray {
|
|
user = System.getenv('BINTRAY_USER')
|
|
key = System.getenv('BINTRAY_KEY')
|
|
publications = ['MyPublication']
|
|
publish = true
|
|
pkg {
|
|
repo = 'dev'
|
|
name = 'refinedstorage'
|
|
version {
|
|
name = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER')
|
|
released = new Date()
|
|
}
|
|
}
|
|
} |