forked from CompassSecurity/SAMLRaider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (41 loc) · 1.33 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
plugins {
id "java-library"
}
version = "2.0.4"
repositories {
mavenCentral()
}
compileJava {
targetCompatibility "21"
sourceCompatibility "21"
}
dependencies {
compileOnly libs.com.formdev.flatlaf
compileOnly libs.net.portswigger.burp.extensions.montoya.api
compileOnly libs.org.bouncycastle.bcpkix.jdk15on
implementation libs.com.google.guava
implementation libs.com.miglayout
implementation libs.com.sun.xml.security.xml.security.impl
implementation libs.org.apache.santuario.xmlsec
implementation libs.xerces.xercesimpl
testImplementation libs.net.portswigger.burp.extensions.montoya.api
testImplementation libs.org.bouncycastle.bcpkix.jdk15on
testImplementation libs.org.junit.jupiter
}
compileJava {
options.compilerArgs << "-Xlint:deprecation"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
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()
}
test {
useJUnitPlatform()
}