-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
58 lines (47 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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
*/
plugins {
id "com.peterabeles.gversion" version "1.9"
}
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'net.portswigger.burp.extender', name: 'burp-extender-api', version: '2.1'
implementation group: 'com.rethinkdb', name: 'rethinkdb-driver', version: '2.4.1'
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.2'
}
sourceSets {
main {
java {
srcDir 'src'
}
}
}
gversion {
srcDir = "src" // path is relative to the sub-project by default
version = "1.1.1"
classPackage = "burp.version"
className = "MultiplayerVersion" // optional. If not specified GVersion is used
dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'" // optional. This is the default
timeZone = "UTC" // optional. UTC is default
debug = false // optional. print out extra debug information
language = "java" // optional. Can be Java, Kotlin, or YAML. Case insensitive.
explicitType = false // optional. Force types to be explicitly printed
indent = "\t" // optional. Change how code is indented. 1 tab is default.
annotate = false // optional. Java only. Adds @Generated annotation
}
defaultTasks 'all'
project.compileJava.dependsOn(createVersionFile)
// Create a task for bundling all dependencies into a jar file.
task all(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
baseName = project.name
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}