You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB
Groovy

plugins {
id 'java'
}
group 'com.weaver.seconddev'
version '1.0.0'
description 'asd'
java.targetCompatibility = JavaVersion.VERSION_1_8
compileJava {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes 'weaver-ecode-seconddev-id': rootProject.group + '-' + rootProject.name,
'Implementation-Version': version,
'Implementation-Vendor-Id': rootProject.group,
'Implementation-Title': rootProject.name
}
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
mavenLocal()
mavenCentral()
}
dependencies {
implementation group: 'junit', name: 'junit', version: '4.12'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
// 添加二开服务拉取的清单依赖
def includeType = ['**/*.jar', '**/*.class']
compile fileTree(dir: project.projectDir.getPath() + '/secDevLib', includes: includeType)
// 项目二开自定义依赖
implementation fileTree(dir: project.projectDir.getPath() + "/devLib", includes: includeType)
}