-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
120 lines (99 loc) · 3.49 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
// buildScript 是用来加载Gradle脚本自身需要使用的资源,
// 可以声明的资源包括依赖项、第三方插件、maven仓库地址等
buildscript {
ext {
shadowVersion = '7.1.2'
//aspectjVersion = '6.5.1'
}
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/spring/' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
mavenCentral()
}
dependencies {
classpath "gradle.plugin.com.github.johnrengelman:shadow:${shadowVersion}"
//classpath "io.freefair.gradle:aspectj-plugin:${aspectjVersion}"
}
}
allprojects {
group 'org.coastline.one'
version '0.0.4'
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/spring/' }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
maven { url 'https://repository.cloudera.com/artifactory/cloudera-repos/' }
mavenCentral()
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
ext {
// tool
lombokVersion = '1.18.22'
guavaVersion = '31.1-jre'
cglibVersion = '3.3.0'
aspectjVersion = '1.9.9'
jmhVersion = '1.35'
log4jVersion = '2.17.2'
junitVersion = '4.13.1'
mockitoVersion = '5.1.1'
// json
gsonVersion = '2.8.7'
jacksonVersion = '2.13.3'
protostuffVersion = '1.7.4'
mysqlVersion = '8.0.25'
hikariCPVersion = '4.0.3'
nettyVersion = '4.1.67.Final'
okhttpVersion = '4.9.3'
// zookeeper
curatorVersion = '2.13.0'
// bigdata
hadoopVersion = '3.3.5'
hiveVersion = '3.1.3'
hbaseVersion = '2.4.5'
kafkaVersion = '3.2.3'
scalaBinaryVersion = '2.12'
scalaVersion = '2.12.15'
// flink
flinkVersion = '1.18.0'
flinkKafkaVersion = '3.0.2-1.18'
flinkJDBCVersion = '3.1.1-1.17'
flinkHBaseVersion = '3.0.0-1.17'
// spark
sparkVersion = '3.3.2'
// iceberg
icebergVersion = '1.4.2'
// juicefs
juicefsHadoopVersion = '1.0.2'
// compress
zstdVersion = '1.5.2-3'
snappyVersion = '1.1.8.4'
mybatisSpring = '2.2.1'
}
configurations {
// 自定义 configuration, 用于区分打包依赖和本地运行依赖
// 被 localDependency 修饰的依赖主要用于本地运行
implementation.extendsFrom(localDependency)
// 被 packageDependency 修饰的依赖才会被打包
implementation.extendsFrom(packageDependency)
}
dependencies {
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation "junit:junit:${junitVersion}"
// scala
/*implementation 'org.scala-lang:scala-library:2.13.10'
implementation "org.scala-lang:scala-compiler:2.13.10"
implementation "org.scala-lang:scala-reflect:2.13.10"*/
}
}