forked from tommy811/jCat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
38 lines (30 loc) · 892 Bytes
/
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
plugins {
id 'base'
}
subprojects {
apply plugin: 'java' // 为每个子项目应用Java插件
version = '0.1-SNAPSHOT'
group = 'cn.coderead'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral() // 添加中央仓库
}
dependencies {
testImplementation 'junit:junit:4.12' // 测试库依赖
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
}
}
task buildProduct(type: Copy) {
def boot = findProject('jcat-boot')
def agent = findProject('jCat-agent')
from("${boot.buildDir}/libs/${boot.name}-${boot.version}.jar") {
rename { "${boot.name}.jar" }
}
from("${agent.buildDir}/libs/${agent.name}-${agent.version}-all.jar") {
into "lib"
rename { "${agent.name}.jar" }
}
into 'build'
}