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.

65 lines
2.1 KiB
Groovy

1 month ago
plugins {
id 'java'
id 'com.weaver.ecode.gradle.plugin.BuildArchPlugin'
}
group 'com.weaver.secondev'
version '1.0.0'
description 'e10聚才林产品'
allprojects {
repositories {
// maven { url 'https://maven.aliyun.com/repository/public/' } // 可以连互联网 可放开此行注释
mavenLocal()
mavenCentral()
}
}
def ignoredProjectNames = []
configure(allprojects) { project ->
apply plugin: 'java'
apply plugin: 'com.weaver.ecode.gradle.plugin.BuildArchPlugin'
compileJava {
options.encoding = 'UTF-8'
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
jar {
from sourceSets.main.allJava
manifest {
attributes 'weaver-ecode-seconddev-id': rootProject.group + '-' + rootProject.name,
'Implementation-Version': rootProject.version,
'Implementation-Vendor-Id': rootProject.group,
'Implementation-Title': rootProject.name
}
}
if (!ignoredProjectNames.contains(project.name)) {
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'
1 month ago
// implementation group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
// 添加二开服务拉取的清单依赖
1 month ago
def includeType = ['**/*.jar', '**/*.class']
implementation files(rootProject.projectDir.getPath() + "/secDevClasses")
implementation fileTree(dir: rootProject.projectDir.getPath() + '/secDevLib', includes: includeType)
// 项目二开自定义依赖
implementation files(rootProject.projectDir.getPath() + "/devLibClasses")
implementation fileTree(dir: rootProject.projectDir.getPath() + "/devLib", includes: includeType)
// implementation 'org.projectlombok:lombok:1.18.12'
//compileOnly 'org.projectlombok:lombok:1.18.12'
1 month ago
}
}
}