|
1 | 1 | import aQute.bnd.gradle.Bundle |
2 | | -import org.gradle.internal.os.OperatingSystem |
3 | 2 |
|
4 | 3 | plugins { |
5 | 4 | id("java") |
@@ -27,18 +26,21 @@ java { |
27 | 26 | } |
28 | 27 |
|
29 | 28 | repositories { |
| 29 | + mavenLocal() |
30 | 30 | mavenCentral() |
31 | 31 | maven { url="https://repo1.maven.org/maven2/" } |
32 | 32 | maven { url="https://central.sonatype.com/repository/maven-snapshots/" } |
33 | 33 | } |
34 | 34 |
|
35 | 35 | dependencies { |
36 | | - implementation 'org.bouncycastle:bcprov-lts8on:2.73.8' |
| 36 | + implementation 'org.bouncycastle:bcprov-lts8on:2.73.9' |
37 | 37 | implementation 'org.jspecify:jspecify:1.0.0' |
38 | 38 |
|
39 | | - testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0' |
| 39 | + testImplementation 'org.junit.jupiter:junit-jupiter:5.14.1' |
40 | 40 | testImplementation 'io.nats:jnats-server-runner:3.0.1' |
41 | | - testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.12.3' |
| 41 | + testImplementation 'nl.jqno.equalsverifier:equalsverifier:4.2.1' |
| 42 | + |
| 43 | + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
42 | 44 | } |
43 | 45 |
|
44 | 46 | sourceSets { |
@@ -82,35 +84,24 @@ test { |
82 | 84 | maxFailures = 4 |
83 | 85 | maxRetries = 4 |
84 | 86 | } |
85 | | - maxParallelForks = Runtime.runtime.availableProcessors() |
| 87 | +// maxParallelForks = Runtime.runtime.availableProcessors() |
| 88 | + maxParallelForks = 2 |
86 | 89 | systemProperty 'junit.jupiter.execution.timeout.default', '3m' |
87 | 90 | } |
88 | 91 |
|
89 | 92 | javadoc { |
90 | 93 | options.overview = 'src/main/javadoc/overview.html' // relative to source root |
| 94 | + options.memberLevel = JavadocMemberLevel.PUBLIC |
91 | 95 | source = sourceSets.main.allJava |
92 | 96 | title = "NATS.IO Java API" |
93 | | - excludes = ['io/nats/client/impl', |
94 | | - 'io/nats/examples', |
95 | | - "io/nats/client/api/ConsumerCreateRequest.java", |
96 | | - "io/nats/client/api/MessageGetRequest.java" |
| 97 | + excludes = [ |
| 98 | + "io/nats/client/impl", |
| 99 | + "io/nats/examples", |
| 100 | + "io/nats/client/api/ConsumerCreateRequest.java", |
| 101 | + "io/nats/client/api/MessageGetRequest.java", |
| 102 | + "**/Debug**" |
97 | 103 | ] |
98 | 104 | classpath = sourceSets.main.runtimeClasspath |
99 | | - doLast { |
100 | | - if (!OperatingSystem.current().isWindows()) { |
101 | | - exec { |
102 | | - println "Updating favicon on all html files" |
103 | | - workingDir 'build/docs/javadoc' |
104 | | - // Only on linux, mac at this point |
105 | | - commandLine 'find', '.', '-name', '*.html', '-exec', 'sed', '-i', '-e', 's#<head>#<head><link rel="icon" type="image/ico" href="favicon.ico">#', '{}', ';' |
106 | | - } |
107 | | - copy { |
108 | | - println "Copying images to javadoc folder" |
109 | | - from 'src/main/javadoc/images' |
110 | | - into 'build/docs/javadoc' |
111 | | - } |
112 | | - } |
113 | | - } |
114 | 105 | } |
115 | 106 |
|
116 | 107 | tasks.register('examplesJar', Jar) { |
|
0 commit comments