forked from refinedmods/refinedstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·137 lines (116 loc) · 2.95 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'net.minecraftforge.gradle.forge'
version = "1.6.16"
def env = System.getenv()
if (env.BUILD_NUMBER) {
version = version + "-" + "${env.BUILD_NUMBER}"
}
group = "refinedstorage"
archivesBaseName = "refinedstorage"
sourceCompatibility = 1.8
targetCompatibility = 1.8
minecraft {
version = "1.12.2-14.23.5.2838"
runDir = "run"
useDepAts = true
mappings = "stable_39"
replaceIn "RS.java"
replace "@version@", project.version
}
repositories {
maven {
url "http://dvs1.progwml6.com/files/maven"
}
maven {
url "http://maven.cil.li"
}
maven {
name = "CurseForge"
url = "https://minecraft.curseforge.com/api/maven/"
}
}
dependencies {
deobfCompile "mezz.jei:jei_1.12.2:4.15.0.287:api"
runtime "mezz.jei:jei_1.12.2:4.15.0.287"
deobfCompile "li.cil.oc:OpenComputers:MC1.12.2-1.7.2.67:api"
compile "inventory-tweaks:InventoryTweaks:1.63: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) {
onlyIf {
project.hasProperty('keyStore')
}
keyStore = project.findProperty('keyStore')
alias = project.findProperty('keyStoreAlias')
storePass = project.findProperty('keyStorePass')
keyPass = project.findProperty('keyStoreKeyPass')
inputFile = jar.archivePath
outputFile = jar.archivePath
}
build.dependsOn signJar
artifacts {
archives deobfJar
archives apiJar
archives sourceJar
archives jar
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = project.group
artifactId = project.archivesBaseName
version = project.version
artifact deobfJar
artifact sourceJar
artifact apiJar
artifact jar
}
}
}
publishing {
repositories {
maven {
url "/var/www/repo"
}
}
}