代码拉取完成,页面将自动刷新
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。