summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGravatar Runemoro2019-11-02 17:16:53 -0400
committerGravatar modmuss502019-11-02 21:16:53 +0000
commit2c7dbf2493bfa3c307575b4cef36cb4812619acb (patch)
tree1069d5adae9d56f1be1199a77b09be22f623f1db /build.gradle
parentMerge branch 'pull/163' and bump version (diff)
downloadenigma-2c7dbf2493bfa3c307575b4cef36cb4812619acb.tar.gz
enigma-2c7dbf2493bfa3c307575b4cef36cb4812619acb.tar.xz
enigma-2c7dbf2493bfa3c307575b4cef36cb4812619acb.zip
Update readme (#170)
* Update readme * Update README.md
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle21
1 files changed, 3 insertions, 18 deletions
diff --git a/build.gradle b/build.gradle
index febbf75d..5a743603 100644
--- a/build.gradle
+++ b/build.gradle
@@ -31,18 +31,6 @@ if (ENV.BUILD_NUMBER) {
31sourceCompatibility = 1.8 31sourceCompatibility = 1.8
32targetCompatibility = 1.8 32targetCompatibility = 1.8
33 33
34// Custom source layout
35sourceSets {
36 main {
37 java { srcDir 'src/main/java' }
38 resources { srcDir 'conf' }
39 }
40 test {
41 java { srcDir 'src/test/java' }
42 resources { srcDir 'test' }
43 }
44}
45
46task generateSources(type: Copy) { 34task generateSources(type: Copy) {
47 from sourceSets.main.java 35 from sourceSets.main.java
48 into generatedSourcesDir 36 into generatedSourcesDir
@@ -121,7 +109,7 @@ file('src/test/java/cuchaz/enigma/inputs').listFiles().each { theFile ->
121 main 'proguard.ProGuard' 109 main 'proguard.ProGuard'
122 classpath configurations.proGuard 110 classpath configurations.proGuard
123 111
124 args '@proguard-test.conf', '-injars', file('build/test-inputs/' + 112 args '@src/test/resources/proguard-test.conf', '-injars', file('build/test-inputs/' +
125 "${theFile.name}.jar"), '-outjars', file('build/test-obf/' + 113 "${theFile.name}.jar"), '-outjars', file('build/test-obf/' +
126 "${theFile.name}.jar") 114 "${theFile.name}.jar")
127 } 115 }
@@ -161,11 +149,8 @@ jar.manifest.attributes 'Main-Class': 'cuchaz.enigma.Main'
161// Make the "fat" application jar. This is useful to just throw in a classpath 149// Make the "fat" application jar. This is useful to just throw in a classpath
162// for tests, though it includes some slightly useless stuff. 150// for tests, though it includes some slightly useless stuff.
163shadowJar { 151shadowJar {
164 append 'license.LGPL3.txt' 152 append 'LICENSE'
165 append 'license.APL2.txt' 153 append 'README.md'
166 append 'readme.txt'
167
168 exclude 'META-INF/maven/**'
169} 154}
170 155
171// Create a library jar, containing only the deobfuscation code, for use at 156// Create a library jar, containing only the deobfuscation code, for use at