-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
99 lines (81 loc) · 2.62 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
import java.text.SimpleDateFormat
plugins {
id 'java'
}
version project.echarts4jVersion
description ':doughnut: An inevitable charts library for Java.'
allprojects {
group 'com.github.koooooo7.echarts4j'
repositories {
mavenLocal()
mavenCentral()
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, "minutes"
}
}
ext {
lombokVersion = "1.18.32"
jacksonVersion = "2.18.2"
cglibVersion = "3.3.0"
lang3Version = "3.14.0"
freeMakerVersion = "2.3.33"
junitVersion = "5.11.4"
jsonPVersion = "1.17.2"
jaywayVersion = "2.9.0"
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
version project.echarts4jVersion
dependencies {
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
implementation "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
implementation "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
}
jar {
manifest {
attributes(
'Built-By': 'KoyZhuang',
'Build-LICENSE': 'Apache-2.0 license',
'Build-Version': project.echarts4jVersion,
'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
)
}
}
test {
useJUnitPlatform()
}
publishing {
repositories {
mavenLocal()
}
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name
// if (project.name == "echarts4j-project") {
// artifactId = "echarts4j"
// }
description = ":doughnut: An inevitable charts library for Java."
url = 'https://github.com/Koooooo-7/echarts4j'
licenses {
license {
name = 'Apache-2.0 license'
url = 'https://github.com/Koooooo-7/echarts4j/blob/main/LICENSE'
}
}
developer {
id = 'Koooooo-7'
name = 'KoyZhuang'
email = 'koy@ko8e24.top'
}
}
}
}
}
}