forked from DolphFlynn/jwt-editor
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
92 lines (82 loc) · 3.18 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
plugins {
id 'java-library'
}
group = 'com.blackberry'
version = '2.3'
description = 'jwt-editor'
repositories {
mavenLocal()
mavenCentral()
maven { url = uri('https://www.jetbrains.com/intellij-repository/releases') }
maven { url = uri('https://packages.jetbrains.team/maven/p/ij/intellij-dependencies/') }
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
configurations {
guiGenerationTask
}
dependencies {
guiGenerationTask(
"com.jetbrains.intellij.java:java-compiler-ant-tasks:${gui_designer_version}"
)
compileOnly(
"org.bouncycastle:bcprov-jdk18on:${bouncycastle_version}",
"org.bouncycastle:bcpkix-jdk18on:${bouncycastle_version}",
"net.portswigger.burp.extensions:montoya-api:${extender_version}"
)
api(
"com.jetbrains.intellij.java:java-gui-forms-rt:${gui_designer_version}",
'com.nimbusds:nimbus-jose-jwt:9.21',
'org.exbin.deltahex:deltahex-swing:0.1.2',
'com.fifesoft:rsyntaxtextarea:3.4.1',
'org.json:json:20240303'
)
testImplementation(
"org.bouncycastle:bcprov-jdk18on:${bouncycastle_version}",
"org.bouncycastle:bcpkix-jdk18on:${bouncycastle_version}",
"net.portswigger.burp.extensions:montoya-api:${extender_version}",
'org.junit.jupiter:junit-jupiter:5.10.3',
'org.assertj:assertj-core:3.26.3',
'org.mockito:mockito-core:5.12.0'
)
}
tasks.withType(JavaCompile).configureEach {
doLast {
project.sourceSets.main.output.classesDirs.each { project.mkdir(it) }
ant.taskdef name: 'javac2', classname: 'com.intellij.ant.Javac2', classpath: configurations.guiGenerationTask.asPath
ant.javac2 srcdir: project.sourceSets.main.java.srcDirs.join(':'),
classpath: project.sourceSets.main.compileClasspath.asPath,
destdir: project.sourceSets.main.output.classesDirs.getSingleFile(),
source: sourceCompatibility,
target: targetCompatibility,
includeAntRuntime: false
}
}
test {
useJUnitPlatform()
}
jar {
dependsOn test
archiveBaseName = project.name
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect {
it.isDirectory()
? it
: zipTree(it).matching({
exclude 'org/exbin/deltahex/swing/DefaultCodeAreaCommandHandler.class',
'org/exbin/deltahex/swing/DefaultCodeAreaCommandHandler$1.class',
'org/exbin/deltahex/swing/DefaultCodeAreaCommandHandler$2.class',
'org/exbin/deltahex/swing/DefaultCodeAreaCommandHandler$BinaryDataClipboardData.class',
'org/exbin/deltahex/swing/DefaultCodeAreaCommandHandler$ClipboardData.class',
'org/exbin/deltahex/swing/DefaultCodeAreaCommandHandler$CodeDataClipboardData.class'
})
}
}
from(rootDir) {
include 'LICENSE.md'
into 'META-INF'
}
}