This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
forked from MinecraftForge/FernFlowerLegacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
132 lines (115 loc) · 4.3 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
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'java'
version = "2.0-SNAPSHOT"
group = "net.minecraftforge" //not sure if we shoulkd publish under this name, but it's our fork so meh
archivesBaseName = "fernflower"
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
sourceSets {
main.java.srcDirs = ['src']
test.java.srcDirs = ['test']
}
repositories {
mavenCentral()
maven {
name = "mc"
url = "https://libraries.minecraft.net/"
}
}
configurations {
deployerJars
}
dependencies {
testCompile "junit:junit:4.12"
testCompile 'org.hamcrest:hamcrest-core:1.3'
testCompile 'org.hamcrest:hamcrest-library:1.3'
// MC test only
testRuntime "oshi-project:oshi-core:1.1"
testRuntime "net.java.dev.jna:jna:3.4.0"
testRuntime "net.java.dev.jna:platform:3.4.0"
testRuntime "com.ibm.icu:icu4j-core-mojang:51.2"
testRuntime "net.sf.jopt-simple:jopt-simple:4.6"
testRuntime "com.paulscode:codecjorbis:20101023"
testRuntime "com.paulscode:codecwav:20101023"
testRuntime "com.paulscode:libraryjavasound:20101123"
testRuntime "com.paulscode:librarylwjglopenal:20100824"
testRuntime "com.paulscode:soundsystem:20120107"
testRuntime "io.netty:netty-all:4.0.23.Final"
testRuntime "com.google.guava:guava:17.0"
testRuntime "org.apache.commons:commons-lang3:3.3.2"
testRuntime "commons-io:commons-io:2.4"
testRuntime "commons-codec:commons-codec:1.9"
testRuntime "net.java.jinput:jinput:2.0.5"
testRuntime "net.java.jutils:jutils:1.0.0"
testRuntime "com.google.code.gson:gson:2.2.4"
testRuntime "com.mojang:authlib:1.5.21"
testRuntime "com.mojang:realms:1.7.39"
testRuntime "org.apache.commons:commons-compress:1.8.1"
testRuntime "org.apache.httpcomponents:httpclient:4.3.3"
testRuntime "commons-logging:commons-logging:1.1.3"
testRuntime "org.apache.httpcomponents:httpcore:4.3.2"
testRuntime "org.apache.logging.log4j:log4j-api:2.0-beta9"
testRuntime "org.apache.logging.log4j:log4j-core:2.0-beta9"
testRuntime "org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209"
testRuntime "org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209"
testRuntime "tv.twitch:twitch:6.5"
// maven deployment
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2"
}
test {
systemProperties System.properties
onOutput {
descriptor, event -> logger.lifecycle("TESTOUTPUT:" + event.message)
}
}
compileJava.options.encoding = "utf-8"
compileJava.options.deprecation = true
jar.manifest {
attributes "Main-Class" : "org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler"
}
uploadArchives {
repositories {
add getProject().repositories.mavenLocal()
}
repositories.mavenDeployer {
configuration = configurations.deployerJars
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
project {
name project.archivesBaseName
packaging 'jar'
description 'Fernflower from https://github.com/JetBrains/intellij-community as standalone library'
url 'https://github.com/MinecraftForge/FernFlower'
scm {
url 'https://github.com/MinecraftForge/FernFlower'
connection 'scm:git:git://github.com/MinecraftForge/FernFlower.git'
developerConnection 'scm:git:[email protected]:MinecraftForge/FernFlower.git'
}
issueManagement {
system 'github'
url 'https://github.com/MinecraftForge/FernFlower/issues'
}
licenses {
license {
name 'Apache License 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0'
distribution 'repo'
}
}
}
}
}
}