-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
61 lines (48 loc) · 1.07 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
plugins {
id 'java'
id 'me.qoomon.git-versioning' version '6.4.4'
}
group = 'net.omerc'
version = '0.0.0-SNAPSHOT'
gitVersioning.apply {
refs {
branch('.+') {
version = '${ref}-SNAPSHOT'
}
tag('v(?<version>.*)') {
version = '${ref.version}'
}
}
// optional fallback configuration in case of no matching ref configuration
rev {
version = '${commit.short}'
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'net.portswigger.burp.extensions:montoya-api:2024.12'
implementation 'com.thoughtworks.xstream:xstream:1.4.21'
}
sourceSets {
example {
java {
srcDirs = ['src/example/java']
}
}
}
task exampleJar(type: Jar) {
from sourceSets.example.output
}
task runExample(type: JavaExec) {
dependsOn exampleJar
classpath = sourceSets.example.runtimeClasspath
mainClass = 'example.Client'
}
jar {
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}