-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
144 lines (120 loc) · 4.24 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id 'java-library'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'org.asciidoctor.jvm.base' version '4.0.4'
id 'org.asciidoctor.jvm.convert' version '4.0.4'
id 'org.asciidoctor.jvm.pdf' version '4.0.4'
}
repositories {
mavenCentral()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
asciidoctor {
sourceDir = file("src/main/help")
sources {
include "help.adoc", "help-ja.adoc"
}
attributes = [
'revnumber': "v${release_version_major}.${release_version_minor}"
]
outputDir = file("help")
}
application {
mainClass = 'yagura.view.MainFrame'
}
processResources {
filteringCharset = 'UTF-8'
filesMatching ('**/*.properties') {
expand(project.properties)
// naitive2ascii
filter(org.apache.tools.ant.filters.EscapeUnicode)
}
}
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
clean.doFirst {
delete fileTree('release') {
include '*.jar'
}
}
shadowJar {
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
exclude 'junit/**'
classifier = null
destinationDirectory = file('release')
archiveVersion = "v${release_version_major}"
}
task release(type: Zip, dependsOn: ['build', 'asciidoctor']) {
archiveBaseName ="${rootProject.name}_v${release_version_major}.${release_version_minor}"
destinationDirectory = file("${projectDir}")
from rootProject.rootDir
include '*'
include 'gradle/**'
include 'src/**'
include 'help/**'
include 'libs/**'
include 'sample/**'
include 'release/*.jar'
exclude 'build'
exclude 'nbproject'
exclude '.git'
exclude '.gradle'
exclude '*.zip'
}
dependencies {
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on
compileOnly 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on
compileOnly 'org.bouncycastle:bcprov-jdk18on:1.78.1'
// https://github.com/raise-isayan/BurpExtensionCommons
implementation fileTree(dir: 'libs', include: ['*.jar'])
// standalone 利用のため
// https://mvnrepository.com/artifact/net.portswigger.burp.extensions/montoya-api
implementation 'net.portswigger.burp.extensions:montoya-api:2024.12'
// https://mvnrepository.com/artifact/commons-codec/commons-codec
implementation 'commons-codec:commons-codec:1.17.2'
// https://mvnrepository.com/artifact/com.fifesoft/rsyntaxtextarea
implementation 'com.fifesoft:rsyntaxtextarea:3.3.4'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
// https://mvnrepository.com/artifact/io.github.rburgst/okhttp-digest
implementation 'io.github.rburgst:okhttp-digest:3.1.1'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver
implementation 'com.squareup.okhttp3:mockwebserver:4.12.0'
// Unit Test
// Use JUnit Jupiter for testing.
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.5'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.5'
// testImplementation fileTree(dir: 'libs', include: ['*.jar'])
// https://mvnrepository.com/artifact/net.portswigger.burp.extensions/montoya-api
testImplementation 'net.portswigger.burp.extensions:montoya-api:2024.12'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
// https://mvnrepository.com/artifact/io.github.rburgst/okhttp-digest
testImplementation 'io.github.rburgst:okhttp-digest:3.1.1'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver
testImplementation 'com.squareup.okhttp3:mockwebserver:4.12.0'
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testImplementation 'org.mockito:mockito-core:5.4.0'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}