forked from synnkfps/JByteCustom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (91 loc) · 3.66 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
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.0'
id "org.jetbrains.kotlin.jvm" version "1.6.0-RC2"
id "java"
id "idea"
}
version = "${project_Version}"
group = "${project_Group}"
archivesBaseName = project_BaseName
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
compileJava.options.encoding = "UTF-8"
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
sourceSets.main.resources { srcDir 'src/generated/resources' }
repositories {
mavenCentral()
maven {
url 'https://repo1.maven.org/maven2/'
metadataSources {
artifact() //Look directly for artifact
}
}
maven { url = "https://jitpack.io/" }
maven { url = "https://jcenter.bintray.com/" }
}
configurations {
include
implementation.extendsFrom(include)
}
dependencies {
include 'commons-io:commons-io:2.11.0'
include 'com.fifesoft:rsyntaxtextarea:3.2.0'
include 'club.minnced:java-discord-rpc:2.0.2'
include 'org.bitbucket.mstrobel:procyon-core:0.6.0'
include 'org.bitbucket.mstrobel:procyon-expressions:0.6.0'
include 'org.bitbucket.mstrobel:procyon-reflection:0.6.0'
include 'org.bitbucket.mstrobel:procyon-compilertools:0.6.0'
include 'org.tinyjee.jgraphx:jgraphx:3.4.1.3'
include 'org.jfree:jfreechart:1.5.3'
include 'com.weblookandfeel:weblaf-ui:1.2.13'
include 'org.benf:cfr:0.152'
include 'commons-cli:commons-cli:1.5.0'
include 'org.apache.ant:ant:1.10.12'
include 'com.google.guava:guava:31.1-jre'
include 'com.google.code.gson:gson:2.9.0'
include 'net.java.dev.jna:jna:5.10.0'
include 'com.formdev:flatlaf:2.1'
include files('libs/attach-1.7.jar')
include files('libs/weblaf-complete-1.29-fixed.jar')
include files('libs/weblookandfeel.jar')
include 'org.jetbrains.kotlin:kotlin-stdlib:1.6.10'
include 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'
include 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10'
}
jar {
manifest {
attributes(
"Manifest-Version": 1.0,
"Main-Class": "me.grax.jbytemod.JByteMod"
)
}
}
shadowJar {
dependencies {
include(dependency('commons-io:commons-io:2.8.0'))
include(dependency('com.fifesoft:rsyntaxtextarea:3.1.3'))
include(dependency('club.minnced:java-discord-rpc:2.0.2'))
include(dependency('org.bitbucket.mstrobel:procyon-core:0.5.36'))
include(dependency('org.bitbucket.mstrobel:procyon-expressions:0.5.36'))
include(dependency('org.bitbucket.mstrobel:procyon-reflection:0.5.36'))
include(dependency('org.bitbucket.mstrobel:procyon-compilertools:0.5.36'))
include(dependency('org.tinyjee.jgraphx:jgraphx:3.4.1.3'))
include(dependency('org.jfree:jfreechart:1.5.3'))
include(dependency('org.jetbrains.kotlin:kotlin-stdlib-jdk7'))
include(dependency('org.jetbrains.kotlin:kotlin-stdlib-jdk8'))
include(dependency('org.jetbrains.kotlin:kotlin-stdlib'))
include(dependency('com.weblookandfeel:weblaf-ui:1.2.13'))
include(dependency('org.benf:cfr:0.152'))
include(dependency('com.sun:attach:1.7'))
include(dependency('commons-cli:commons-cli:1.4'))
include(dependency('org.apache.ant:ant:1.10.12'))
include(dependency('com.google.guava:guava:31.0.1-jre'))
include(dependency('com.google.code.gson:gson:2.8.9'))
include(dependency('net.java.dev.jna:jna:5.9.0'))
include(dependency('com.formdev:flatlaf:1.6.1'))
}
exclude 'dummyThing'
exclude 'LICENSE.txt'
exclude 'LICENSE'
classifier = 'release'
}
jar.dependsOn("shadowJar")