-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathbuild.gradle
77 lines (66 loc) · 1.9 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0"
}
}
plugins {
id("org.jetbrains.kotlin.jvm") version "2.1.0"
}
dependencies {
implementation 'net.portswigger.burp.extender:burp-extender-api:2.3'
implementation 'net.portswigger.burp.extensions:montoya-api:2023.5'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
implementation 'org.apache.commons:commons-text:1.11.0'
implementation 'commons-codec:commons-codec:1.16.1'
implementation 'io.ktor:ktor-server-core:3.1.1'
implementation 'io.ktor:ktor-server-netty:3.1.1'
implementation 'com.formdev:flatlaf:3.4'
implementation 'com.formdev:flatlaf-extras:3.4'
implementation 'com.graphql-java:graphql-java:21.5'
}
java {
sourceCompatibility = 17
targetCompatibility = 17
}
tasks.withType(KotlinCompile).configureEach {
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
}
compileKotlin {
compilerOptions {
// Configure the Kotlin compiler options
allWarningsAsErrors = true
}
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'kotlin'
}
resources {
srcDirs = ['resources']
}
}
}
build {
dependsOn(clean, processResources)
}
defaultTasks "build"
// 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) } }
destinationDirectory = rootDir
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = "InQL.jar"
}