-
Notifications
You must be signed in to change notification settings - Fork 159
/
build.gradle
78 lines (68 loc) · 1.79 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
apply plugin: 'java'
apply plugin: 'kotlin'
defaultTasks 'build'
sourceCompatibility = 17
targetCompatibility = 17
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "17"
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
}
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'kotlin'
}
resources {
srcDirs = ['python', 'lib/GQLSpection/src']
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.0"
implementation 'org.python:jython-standalone:2.7.3'
implementation 'net.portswigger.burp.extender:burp-extender-api:2.3'
implementation 'net.portswigger.burp.extensions:montoya-api:1.0.0'
}
// build standalone jar with bundled dependencies
jar {
manifest {
attributes('Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '))
}
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
// 'gradle clean' should clean all the annoying trash
build.doLast {
delete "${rootDir}/bin/"
delete fileTree("${rootDir}/") {
include '**/*.class'
include '**/*.pyc'
}
}
// 'gradle build' should remove trash as well
build.doFirst {
delete fileTree("${rootDir}/") {
include '**/*.class'
include '**/*.pyc'
}
}
build.doLast {
delete "${rootDir}/bin/"
ant.move file: "${rootDir}/build/libs/InQL.jar", todir: "${rootDir}/build/"
delete "${rootDir}/build/classes"
delete "${rootDir}/build/kotlin"
delete "${rootDir}/build/libs"
delete "${rootDir}/build/resources"
delete "${rootDir}/build/tmp"
}