-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (79 loc) · 2.37 KB
/
build.gradle
File metadata and controls
88 lines (79 loc) · 2.37 KB
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
apply plugin: 'scala'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'maven'
group='solar.dimensions.saturn'
version='1.6.2'
repositories {
mavenCentral()
maven {
//MinecraftForge repo for Srg2Source
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
//Because Srg2Source uses eclipse's AST
name = "eclipse"
url = "https://repo.eclipse.org/content/groups/eclipse/"
}
maven {
//Because SpecialSource 1.7 is still beta
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
configurations {
deployer
}
dependencies {
compile 'org.ow2.asm:asm-debug-all:4.1'
compile 'org.scala-lang:scala-library:2.11.1'
compile 'com.google.guava:guava:14.0.1'
compile 'net.sf.opencsv:opencsv:2.3'
compile 'net.md-5:SpecialSource:1.7-SNAPSHOT'
compile 'net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT'
compile 'de.oceanlabs.mcp:mcinjector:3.2-SNAPSHOT'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.cloudbees:diff4j:1.1'
compile 'com.github.abrarsyed.jastyle:jAstyle:1.2'
compile 'com.github.tony19:named-regexp:0.2.3'
compile 'com.github.jponge:lzma-java:1.3'
compile 'com.nothome:javaxdelta:2.0.1'
compile gradleApi()
deployer 'org.apache.maven.wagon:wagon-ssh:2.6'
testCompile 'junit:junit:4.11'
}
uploadArchives {
if (project.hasProperty("deploymaven")) {
logger.lifecycle('Deploying to file server')
repositories.mavenDeployer {
configuration = configurations.deployer
repository(url: project.deploymaven.url) {
authentication(userName: project.deploymaven.username, password: project.deploymaven.password)
}
}
}else{
logger.lifecycle('Deploying to mavenLocal')
repositories{
mavenLocal()
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
/*if(project.hasProperty("deploymaven")) {
maven {
url = project.deploymaven.url
credentials {
username = project.deploymaven.username
password = project.deploymaven.password
}
}
}*/
}
}