diff --git a/build.gradle b/build.gradle index ae44c28a95ccb7797d17eba8b613efc42e95e1da..c0a688bde4e8a9bcf1a5ba7893e9cd6a64f72748 100644 --- a/build.gradle +++ b/build.gradle @@ -40,10 +40,66 @@ repositories { dependencies { implementation fileTree(dir: 'lib', includes: ['*.jar']) - compile "org.jetbrains:annotations:17.0.0" + compileOnly "org.jetbrains:annotations:17.0.0" + compileOnly "org.projectlombok:lombok:1.18.10" annotationProcessor "org.projectlombok:lombok:1.18.10" + + testCompile "junit:junit:4.12" + testCompileOnly "org.jetbrains:annotations:17.0.0" + testCompileOnly "org.projectlombok:lombok:1.18.10" +} + +task PDConcurrent(type: Jar) { + destinationDirectory = file('jar') + manifest { + attributes( + 'Manifest-Version': '1.0', + 'Built-By': 'fybug/风雨bu改', + 'Created-By': 'IntelliJ IDEA' + ) + } + archiveFileName = 'PDConcurrent.jar' + // 打包编译输出 + from sourceSets.main.output +} + +task PDConcurrent_all(type: Jar) { + destinationDirectory = file('jar') + manifest { + attributes( + 'Manifest-Version': '1.0', + 'Built-By': 'fybug/风雨bu改', + 'Created-By': 'IntelliJ IDEA' + ) + } + archiveFileName = 'PDConcurrent_all.jar' + // 打包编译输出 + from sourceSets.main.output + // 打包源码 + from sourceSets.main.allSource + from { + // implementation 相关的引入解压并打包入新的jar中 + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } +} + +task PDConcurrent_sources(type: Jar) { + destinationDirectory = file('jar') + manifest { + attributes( + 'Manifest-Version': '1.0', + 'Built-By': 'fybug/风雨bu改', + 'Created-By': 'IntelliJ IDEA' + ) + } + archiveFileName = 'PDConcurrent_sources.jar' + // 打包源码 + from sourceSets.main.allSource } -test { - useJUnitPlatform() +task release { + dependsOn clean + dependsOn PDConcurrent_all + dependsOn PDConcurrent + dependsOn PDConcurrent_sources } diff --git a/jar/PDConcurrent.jar b/jar/PDConcurrent.jar index 7d00e001604771a2b25a99a2374ea0c2a47ea155..8ec6fad1d7a5d6088a2f411adaa0c4f4b28a6827 100644 Binary files a/jar/PDConcurrent.jar and b/jar/PDConcurrent.jar differ diff --git a/jar/PDConcurrent_all.jar b/jar/PDConcurrent_all.jar index 1090f2e9f4df597658377d950d9a7daaf25b2f55..ed9e7863610ec3b9360c8e6126ade0885b35b8db 100644 Binary files a/jar/PDConcurrent_all.jar and b/jar/PDConcurrent_all.jar differ diff --git a/jar/PDConcurrent_sources.jar b/jar/PDConcurrent_sources.jar index 4f5016ff96b3d5fc27208a418d27be93259d869f..bd9b5d8344b9bb4cf57a91fae0a48d0e4344be80 100644 Binary files a/jar/PDConcurrent_sources.jar and b/jar/PDConcurrent_sources.jar differ