-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
208 lines (180 loc) · 6.31 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
plugins {
id 'java'
id 'application'
id 'org.jreleaser' version '1.0.0'
id 'org.kordamp.gradle.java-project' version '0.47.0'
}
group 'org.example'
version '1.0'
downloadLicenses {
dependencyConfiguration = 'implementation'
includeProjectDependencies = true
}
// build.gradle app
apply plugin: 'com.github.hierynomus.license'
configurations.implementation.setCanBeResolved(true)
repositories {
mavenCentral()
}
tasks.withType(Javadoc) {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
application {
mainClass = 'quranCLI'
}
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'org.json:json:20220320'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'de.vandermeer:asciitable:0.3.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
implementation 'info.picocli:picocli:4.6.3'
annotationProcessor 'info.picocli:picocli-codegen:4.6.3'
implementation group: 'javazoom', name: 'jlayer', version: '1.0.1'
}
config {
info {
name = 'quranCLI'
description = 'A simple tool to Read, Search and Recite the Quran.'
inceptionYear = '2022'
vendor = 'Ahmed Saheed'
links {
website = 'https://github.com/ahmedsaheed/quranCLI'
issueTracker = 'https://github.com/ahmedsaheed/quranCLI/issues'
scm = 'https://github.com/ahmedsaheed/quranCLI.git'
}
scm {
url = 'https://github.com/ahmedsaheed/quranCLI'
connection = 'scm:git:https://github.com/ahmedsaheed/quranCLI.git'
developerConnection = 'scm:git:https://github.com/ahmedsaheed/quranCLI.git'
}
people {
person {
id = 'Ahmed Saheed'
name = 'Ahmed Saheed'
roles = ['developer', 'author']
}
}
}
licensing {
licenses {
license {
id = 'Apache-2.0'
include "**/*.java"
exclude "**/*Test.java"
exclude "**/*.properties"
}
}
}
}
jreleaser {
release {
github {
owner = 'ahmedsaheed'
name = 'quranCLI'
overwrite = true
enabled = true
connectTimeout = 20
readTimeout = 60
host = 'github.com'
username = 'ahmedsaheed'
apiEndpoint = 'https://api.github.com'
tagName = 'v1.0.0'
previousTagName = 'v0.9.0'
releaseName = 'Release v1.0.0'
update {
enabled = true
section('ASSETS')
skipTag = false
skipRelease = false
sign = false
branch = 'main'
uploadAssets = 'ALWAYS'
files = true
artifacts = true
checksums = true
signatures = true
draft = false
prerelease {
enabled = false
pattern = '.*-pre'
}
discussionCategoryName = 'Announcements'
commitAuthor {
name = 'Ahmed Saheed'
email = 'saheed@quranCLI.com'
}
repoUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}'
repoCloneUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}.git'
commitUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/commits'
srcUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/blob/{{repoBranch}}'
downloadUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/download/{{tagName}}/{{artifactFile}}'
releaseNotesUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/tag/{{tagName}}'
latestReleaseUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/latest'
issueTrackerUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/issues'
}
}
}
distributions {
qurancli {
active = 'ALWAYS'
name = 'qurancli'
artifact {
path = 'build/distributions/{{distributionName}}-{{projectVersion}}.zip'
}
}
}
packagers {
brew {
active = 'ALWAYS'
continueOnError = false
downloadUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/download/{{tagName}}/{{artifactFile}}'
commitAuthor {
name = 'Ahmed Saheed'
email = 'saheed@quranCLI.com'
}
repoTap {
active = 'ALWAYS'
owner = 'ahmedsaheed'
name = 'homebrew-tap'
tagName = '{{distributionName}} {{formulaName}}'
branch = 'HEAD'
username = 'ahmedsaheed'
commitMessage = '{{distributionName}} {{tagName}}'
}
formulaName = 'qurancli'
multiPlatform = true
}
// scoop {
// active = 'ALWAYS'
// continueOnError = false
// downloadUrl = 'https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/download/{{tagName}}/{{artifactFile}}'
// commitAuthor {
// name = 'Ahmed Saheed'
// email = 'saheed@quranCLI.com'
// }
// bucket{
// active = 'ALWAYS'
// owner = 'ahmedsaheed'
// name = 'scoop-ahmedsaheed'
// tagName = '{{distributionName}} {{bucketName}}'
// branch = 'HEAD'
// username = 'ahmedsaheed'
// commitMessage = '{{distributionName}} {{tagName}}'
// }
// }
}
}
gradle.startParameter.excludedTaskNames += "licenseMain"
gradle.startParameter.excludedTaskNames += "licenseTest"
compileJava {
options.compilerArgs += ["-Aproject=${project.group}/${project.name}"]
}
test {
useJUnitPlatform()
}