-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
136 lines (116 loc) · 4.23 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
buildscript {
repositories {
maven { url = "http://maven.dries007.net/content/repositories/ccm/" }
maven { url = "http://files.minecraftforge.net/maven/" }
maven { url = "https://libraries.minecraft.net/" }
mavenCentral()
}
dependencies {
classpath 'com.github.abrarsyed.gmcp:GMCP:latest.integration'
}
}
configurations {
compile
deployJars
}
repositories {
maven { url = "http://maven.dries007.net/content/repositories/ccm/" }
maven { url = "http://files.minecraftforge.net/maven/" }
maven { url = "https://libraries.minecraft.net/" }
}
apply plugin: "gmcp"
apply plugin: "maven"
group = "ccm.burialservices"
version = "1.0.0"
targetCompatibility = 1.6
sourceCompatibility = 1.6
archivesBaseName = 'CcmBurialServicesInc'
minecraft {
minecraftVersion = "1.6.4"
}
ext.BUILD_NUMBER = System.getenv().BUILD_NUMBER;
if (ext.BUILD_NUMBER == null) ext.BUILD_NUMBER = "0"
version = version + "." + ext.BUILD_NUMBER
dependencies {
compile("ccm.placeableTools:PlaceableTools:" + project.minecraft.minecraftVersion + "-1.+:dev")
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include '**/*.info'
expand 'version':project.version, 'mcversion':project.minecraft.minecraftVersion, 'placeableToolsVersion':configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.findAll({ it.moduleName == "PlaceableTools"}).collect({ it.moduleVersion})[0].split("-")[1]
}
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.info'
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'src'
appendix = project.minecraft.minecraftVersion
}
task deobfJar(type: Jar) {
from sourceSets.main.output
from (sourceSets.main.allSource.srcDirs) {
include '**/*.java'
}
classifier = 'dev'
appendix = project.minecraft.minecraftVersion
}
jar {
appendix = project.minecraft.minecraftVersion
}
artifacts {
archives jar
archives sourcesJar
archives deobfJar
}
uploadArchives {
if (project.hasProperty("mavenUser") && project.hasProperty("mavenPassword")) {
repositories {
mavenDeployer {
repository(url: "http://maven.dries007.net/content/repositories/ccm/") {
authentication(userName: mavenUser, password: mavenPassword)
}
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'Adds upgradable graves to MC.'
url 'https://github.com/CCM-Modding/CcmBurialServicesInc'
scm {
url 'https://github.com/CCM-Modding/CcmBurialServicesInc'
connection 'scm:git:git://github.com/CCM-Modding/CcmBurialServicesInc.git'
developerConnection 'scm:git:[email protected]:CCM-Modding/CcmBurialServicesInc.git'
}
issueManagement {
system 'github'
url 'https://github.com/CCM-Modding/CcmBurialServicesInc/issues'
}
licenses {
license {
name 'MIT License'
url 'https://raw.github.com/CCM-Modding/CcmBurialServicesInc/master/LICENCE'
distribution 'repo'
}
}
developers {
developer {
id 'Dries007'
name 'Dries007'
roles { role 'developer' }
}
developer {
id 'Claycorp'
name 'Claycorp'
roles { role 'architect' }
}
}
}
}
}
}
}
}