-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (38 loc) · 946 Bytes
/
build.gradle
File metadata and controls
46 lines (38 loc) · 946 Bytes
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
plugins {
id 'java'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
}
group maven_group
version project_version
if (build_number != "undefined") {
version += "+build.${build_number}"
}
repositories {
mavenCentral()
}
dependencies {
api "com.google.code.gson:gson:${gson_version}"
}
test {
useJUnitPlatform()
}
java {
archivesBaseName = project.archives_base_name
}
jar {
manifest {
attributes([
"Main-Class" : main_class,
"Specification-Title" : project.name,
"Specification-Vendor" : author,
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : project_version,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
javadoc {
options.encoding "UTF-8"
}