-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (48 loc) · 1.32 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
// CCM Modding, Harvestry
buildscript {
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies { classpath 'com.github.abrarsyed.gmcp:GMCP:0.7.4-SNAPSHOT' }
}
apply plugin: "gmcp"
group = 'ccm.harvestry'
version = '1.0.0.${System.env.BUILD_NUMBER}.ALPHA'
archivesBaseName = 'Harvestry'
sourceSets {
main {
java { srcDir 'common' }
resources { srcDir 'resources' }
}
}
minecraft { minecraftVersion = '1.6.2' }
processResources{
// Itterrate through files to expand version on things not PNGs, or OBJs
eachFile { file ->
if (!(file.getPath().endsWith('png') || file.getPath().endsWith('obj'))){
expand version: version, mcversion: minecraft.minecraftVersion
}
}
}
dependencies{
// all of these marked as packed.
compile fileTree(dir: 'lib', include: '*.jar')
}
jar {
appendix = 'universal'
manifest {
attributes 'MCVersion' : project.minecraft.minecraftVersion
attributes 'Version' : project.version
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
appendix = 'src'
}
//task javadocJar(type: Jar, dependsOn: javadoc) {
// appendix = 'javadoc'
// from 'build/docs/javadoc'
//}
//archives javadocJar
artifacts { archives sourceJar }