-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild.gradle
More file actions
36 lines (31 loc) · 892 Bytes
/
build.gradle
File metadata and controls
36 lines (31 loc) · 892 Bytes
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
plugins {
id 'java'
}
group 'ch.csnc.burp'
version '2.4.0'
repositories {
mavenCentral()
}
compileJava {
sourceCompatibility = '21'
targetCompatibility = '21'
}
dependencies {
compileOnly 'net.portswigger.burp.extensions:montoya-api:2025.12'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
mkdir "src/main/resources"
new File(projectDir, "src/main/resources/version.txt").text = """
Version : ${version}
Build-By : Gradle ${gradle.gradleVersion}
Build-Timestamp : ${java.time.format.DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(LocalDateTime.now())}
Build-Revision : ${"git rev-parse HEAD".execute().text.trim()}
Build-Jdk : ${System.properties["java.version"]}
""".stripIndent().strip()
}