0 Star 0 Fork 0

风雨bu改/PDConcurrent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.04 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id 'java'
id 'idea'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
group 'fybug.nulll'
version = '0.1.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(23)
}
}
repositories {
mavenLocal()
mavenCentral()
google()
maven { url 'https://maven.aliyun.com/repository/releases' }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url "https://maven.aliyun.com/repository/mapr-public" }
maven { url "https://maven.aliyun.com/repository/staging-alpha" }
maven { url "https://maven.aliyun.com/repository/central" }
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://maven.aliyun.com/repository/spring-plugin" }
maven { url "https://maven.aliyun.com/repository/grails-core" }
maven { url "https://maven.aliyun.com/repository/snapshots" }
maven { url "https://maven.aliyun.com/repository/apache-snapshots" }
maven { url "https://maven.aliyun.com/repository/staging-alpha-group" }
}
dependencies {
// 本地依赖
implementation fileTree(dir: 'lib', includes: ['*.jar'])
// 注释包
compileOnly "jakarta.validation:jakarta.validation-api:+"
compileOnly "jakarta.annotation:jakarta.annotation-api:+"
// lombok
compileOnly 'org.projectlombok:lombok:+'
annotationProcessor 'org.projectlombok:lombok:+'
// 注释包
testCompileOnly "jakarta.validation:jakarta.validation-api:+"
testCompileOnly "jakarta.annotation:jakarta.annotation-api:+"
// lombok
testCompileOnly "org.projectlombok:lombok:+"
testAnnotationProcessor "org.projectlombok:lombok:+"
testRuntimeOnly "org.junit.jupiter:junit-jupiter:5.12.0+"
}
test {
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:5.12.0+"
}
useJUnitPlatform()
}
/** 清单文件内容 */
tasks.withType(Jar).configureEach {
destinationDirectory = file('jar')
manifest {
attributes('Manifest-Version': '1.0',
'Built-By': 'fybug/风雨bu改',
'Build-Jdk-Spec': 23,
'Bundle-Description': 'java并发控制工具',
'Bundle-Name': 'PDConcurrent',
// 'Bundle-DocURL': 'https://apidoc.gitee.com/fybug/PDConcurrent/',
'Bundle-Vendor': 'IntelliJ IDEA',
'Bundle-Version': version,
'Bundle-License': 'https://www.apache.org/licenses/LICENSE-2.0',
'Created-By': 'Gradle 8.10.2')
}
}
/** 编译包 */
tasks.register('PDConcurrent_bin', Jar) {
archiveFileName = 'PDConcurrent_bin.jar'
archiveClassifier = 'bin'
// 打包编译输出
from sourceSets.main.output
}
/** 源码包 */
tasks.register('PDConcurrent_sources', Jar) {
archiveFileName = 'PDConcurrent_sources.jar'
archiveClassifier = 'sources'
// 打包源码
from sourceSets.main.allSource
}
tasks.register('release') {
dependsOn PDConcurrent_bin
dependsOn PDConcurrent_sources
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/fybug/PDConcurrent.git
git@gitee.com:fybug/PDConcurrent.git
fybug
PDConcurrent
PDConcurrent
master

搜索帮助