-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
100 lines (88 loc) · 2.63 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'fatjar'
apply plugin: 'maven'
group = 'net.minecraftforge.lex.fffixer'
version = '1.0-SNAPSHOT'
targetCompatibility = '1.6'
sourceCompatibility = '1.6'
repositories {
mavenCentral()
}
jar {
manifest.attributes('Main-Class': 'net.minecraftforge.lex.fffixer.FFFixer')
}
fatJar {
classifier 'fatjar'
manifest.attributes('Main-Class': 'net.minecraftforge.lex.fffixer.FFFixer')
}
artifacts {
archives jar
archives fatJar
}
dependencies {
compile 'org.ow2.asm:asm-debug-all:5.0.1'
compile 'net.sf.jopt-simple:jopt-simple:4.5'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.guava:guava:15.0'
}
configurations { deployJars }
uploadArchives {
repositories {
add project.repositories.mavenLocal()
}
repositories.mavenDeployer {
configuration = configurations.deployJars
if (project.hasProperty("filesmaven")) {
logger.info('Publishing to files server')
repository(url: project.filesmaven.url) {
authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key)
}
} else {
logger.info('Publishing to repo folder')
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
}
pom {
groupId = project.group
version = project.version
artifactId = project.archivesBaseName
}
pom.project {
name project.archivesBaseName
packaging 'jar'
description 'Program that applies various fixes to Fernflower\'s publicly released binary.'
url 'https://github.com/LexManos/FFFixer'
scm {
url 'https://github.com/LexManos/FFFixer'
connection 'scm:git:git://github.com/LexManos/FFFixer.git'
developerConnection 'scm:git:git@github.com:LexManos/FFFixer.git'
}
issueManagement {
system 'github'
url 'https://github.com/LexManos/FFFixer/issues'
}
licenses {
license {
name ''
url ''
distribution 'repo'
}
}
developers {
developer {
id 'LexManos'
name 'Lex Manos'
roles { role 'developer' }
}
}
}
}
}