forked from MinecraftForge/ForgeGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
135 lines (115 loc) · 4.47 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = 'net.minecraftforge.gradle'
version = '1.3-SNAPSHOT'
archivesBaseName = 'ForgeGradle'
targetCompatibility = '1.6'
sourceCompatibility = '1.6'
repositories {
mavenLocal()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
// because Srg2Source needs an eclipse dependency.
name = "eclipse"
url = "https://repo.eclipse.org/content/groups/eclipse/"
}
maven {
// because SpecialSource doesnt have a full release
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
mavenCentral()
}
jar {
manifest {
attributes 'version':project.version, 'javaCompliance': project.targetCompatibility
attributes 'group':project.group
}
}
configurations {
deployerJars
}
dependencies {
compile gradleApi()
// moved to the beginning to be the overrider
compile 'org.ow2.asm:asm-debug-all:4.1' // Debug version, so we can have generics!
compile 'net.sourceforge.argo:argo:3.4' // json stuff? perhaps replace with json slurper and stuff?
compile 'net.sf.opencsv:opencsv:2.3' // reading CSVs.. also used by SpecialSource
compile 'com.cloudbees:diff4j:1.1' // for difing and patching
compile 'com.github.abrarsyed.jastyle:jAstyle:1.2' // formatting
compile 'com.github.jponge:lzma-java:1.3' // replaces the LZMA binary
compile 'com.nothome:javaxdelta:2.0.1' // GDIFF implementation for BinPatches
compile 'com.google.code.gson:gson:2.2.4' // Used instead of Argo for buuilding changelog.
compile 'com.github.tony19:named-regexp:0.2.3' // 1.7 Named regexp features
compile 'net.md-5:SpecialSource:1.7-SNAPSHOT' // deobf and reobs
// mcp stuff
compile 'de.oceanlabs.mcp:RetroGuard:3.6.6'
compile 'de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT'
compile 'net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT'
// stupid maven
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2"
}
artifacts { archives jar }
uploadArchives {
repositories {
if (project.hasProperty("filesmaven")) {
logger.info('Publishing to files server')
mavenDeployer {
configuration = configurations.deployerJars
repository(url: project.filesmaven.url) {
authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key)
}
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'Gradle plugin for Forge'
url 'https://github.com/MinecraftForge/ForgeGradle'
scm {
url 'https://github.com/MinecraftForge/ForgeGradle'
connection 'scm:git:git://github.com/MinecraftForge/ForgeGradle.git'
developerConnection 'scm:git:[email protected]:MinecraftForge/ForgeGradle.git'
}
issueManagement {
system 'github'
url 'https://github.com/MinecraftForge/ForgeGradle/issues'
}
licenses {
license {
name 'Eclipse Public License (EPL), Version 1.0'
url 'http://www.eclipse.org/legal/epl-v10.html'
distribution 'repo'
}
}
developers {
developer {
id 'AbrarSyed'
name 'Abrar Syed'
roles { role 'developer' }
}
}
developers {
developer {
id 'LexManos'
name 'Lex Manos'
roles { role 'developer' }
}
}
}
}
}
}
else
{
add project.repositories.mavenLocal()
}
}
}