-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (44 loc) · 949 Bytes
/
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
/**
* Gradle plugins
*/
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java'
}
/**
* Project Variables
*/
group = 'com.brov3r.bytemorph'
version = '1.0'
/**
* Path to the compiled Jar file
*/
def buildPath = System.getenv('BUILD_PATH') ?: 'build';
/**
* Repositories for project dependencies
*/
repositories {
mavenCentral()
}
/**
* Project Dependencies
*/
dependencies {
implementation('org.javassist:javassist:3.30.2-GA')
}
/**
* Creating a Jar file
*/
shadowJar {
archiveFileName.set("${rootProject.name}-${version}.jar")
destinationDirectory.set(file(buildPath))
manifest {
attributes(
'Implementation-Title': rootProject.name,
'Implementation-Version': version,
'Agent-Class': 'com.brov3r.bytemorph.Agent',
'Can-Redefine-Classes': 'true',
'Can-Retransform-Classes': 'true'
)
}
}