forked from hackvertor/hackvertor
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
80 lines (70 loc) · 2.31 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
plugins {
id 'java'
id "org.javacc.javacc" version "3.0.3"
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
implementation 'net.portswigger.burp.extender:burp-extender-api:1.7.22'
implementation 'commons-codec:commons-codec:1.15'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.unbescape:unbescape:1.1.6.RELEASE'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
implementation 'com.auth0:java-jwt:4.3.0'
implementation 'org.json:json:20230227'
implementation 'commons-io:commons-io:2.14.0'
implementation 'org.apache.commons:commons-compress:1.22'
implementation 'org.brotli:dec:0.1.2'
implementation 'org.python:jython-standalone:2.7.3b1'
implementation 'bsf:bsf:2.4.0'
implementation 'org.apache-extras.beanshell:bsh:2.0b6'
implementation 'org.codehaus.groovy:groovy-all:3.0.16'
implementation 'com.github.javafaker:javafaker:1.0.2'
implementation 'com.fifesoft:autocomplete:3.3.1'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
implementation 'org.graalvm.js:js-community:24.1.1'
implementation 'org.graalvm.js:js-scriptengine:24.1.1'
}
sourceSets {
main {
java {
srcDir compileJavacc.outputDirectory
}
}
}
compileJavacc {
inputDirectory = file('src/main/javacc')
include '**/*.java'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archivesBaseName = project.name + '-all'
from {
configurations.runtimeClasspath.findAll { it.isDirectory() || it.name.endsWith('.jar') }
.collect { it.isDirectory() ? it : zipTree(it) }
}{
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
exclude "META-INF/*.txt"
}
}
tasks.withType(Jar) {
destinationDirectory = file("$rootDir/releases/")
}
test {
useJUnitPlatform()
}
shadowJar {
archiveClassifier.set('')
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations = [project.configurations.runtimeClasspath]
mergeServiceFiles()
}