Skip to content

Commit b110dcf

Browse files
修正项目架构,trylock现在是尝试获取而不是抛出异常
1 parent 226469d commit b110dcf

21 files changed

Lines changed: 1444 additions & 929 deletions

build.gradle

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ dependencies {
5353
// lombok
5454
testCompileOnly "org.projectlombok:lombok:+"
5555
testAnnotationProcessor "org.projectlombok:lombok:+"
56-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
56+
testRuntimeOnly "org.junit.jupiter:junit-jupiter:5.12.0+"
5757
}
5858

5959
test {
6060
dependencies {
61-
testImplementation "org.junit.platform:junit-platform-launcher"
61+
testImplementation "org.junit.jupiter:junit-jupiter:5.12.0+"
6262
}
6363
useJUnitPlatform()
6464
}
@@ -83,7 +83,7 @@ tasks.withType(Jar).configureEach {
8383
/** 编译包 */
8484
tasks.register('PDConcurrent_bin', Jar) {
8585
archiveFileName = 'PDConcurrent_bin.jar'
86-
archiveClassifier = ''
86+
archiveClassifier = 'bin'
8787
// 打包编译输出
8888
from sourceSets.main.output
8989
}
@@ -96,17 +96,6 @@ tasks.register('PDConcurrent_sources', Jar) {
9696
from sourceSets.main.allSource
9797
}
9898

99-
//tasks.register('PDConcurrent_all', Jar) {
100-
// archiveFileName = 'PDConcurrent_all.jar'
101-
// archiveClassifier = 'all'
102-
// // 打包编译输出
103-
// from sourceSets.main.output
104-
// from {
105-
// // implementation 相关的引入解压并打包入新的jar中
106-
// configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
107-
// }
108-
//}
109-
11099
tasks.register('release') {
111100
dependsOn PDConcurrent_bin
112101
dependsOn PDConcurrent_sources

jar/PDConcurrent_bin.jar

5.95 KB
Binary file not shown.

jar/PDConcurrent_sources.jar

6.53 KB
Binary file not shown.

src/main/java/fybug/nulll/pdconcurrent/RWLock.java

Lines changed: 0 additions & 317 deletions
This file was deleted.

0 commit comments

Comments
 (0)