-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
65 lines (50 loc) · 1.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
group 'fallk'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/org.javassist/javassist
compile group: 'org.javassist', name: 'javassist', version: '3.22.0-GA'
compile name: 'NativeBass-1.0'
compile name: 'NativeBass-Examples-1.0'
compile name: 'trashers-lib-1.0'
compileOnly files($/C:\Users\Rafael\Documents\GitHub\project aim\! Old NFM versions\NFM MDX v1\mad.jar/$)
//compile files("libraries/dlls/win64")
}
task copyToLib(type: Copy) {
into "$buildDir/libs/libs"
from configurations.runtime.filter { !it.toString().contains("dlls")}
}
jar {
dependsOn(copyToLib)
archiveName = "${rootProject.name}-${rootProject.version}.jar"
copy {
from "libraries/dlls/win64"
into "$buildDir/libs/libraries/dlls/win64"
}
copy {
from "libraries/dlls/win32"
into "$buildDir/libs/libraries/dlls/win32"
}
manifest {
attributes 'Main-Class': 'SuperRunApp'
attributes "Class-Path": configurations.compile.collect { "libs/" + it.getName() }.join(' ')
}
// manifest {
// attributes(
// 'Premain-Class': 'Agent',
// 'Can-Redefine-Classes': 'true',
// 'Can-Retransform-Classes': 'true',
// 'Can-Set-Native-Method-Prefix': 'true',
// 'Implementation-Title': "ClassLogger",
// 'Implementation-Version': rootProject.version
// )
// }
}