|
2 | 2 | <modelVersion>4.0.0</modelVersion> |
3 | 3 | <groupId>org.kohsuke</groupId> |
4 | 4 | <artifactId>github-api</artifactId> |
5 | | - <version>1.326-SNAPSHOT</version> |
| 5 | + <version>2.0.0-alpha-1-SNAPSHOT</version> |
6 | 6 | <name>GitHub API for Java</name> |
7 | 7 | <url>https://github-api.kohsuke.org/</url> |
8 | 8 | <description>GitHub API for Java</description> |
|
63 | 63 | <artifactId>maven-scm-manager-plexus</artifactId> |
64 | 64 | <version>2.1.0</version> |
65 | 65 | </extension> |
66 | | - <!-- Doing site publishing manually for now --> |
67 | | -<!-- |
68 | | - <extension> |
69 | | - <groupId>org.kohsuke</groupId> |
70 | | - <artifactId>wagon-gitsite</artifactId> |
71 | | - <version>0.3.5</version> |
72 | | - </extension> |
73 | | ---> |
74 | 66 | </extensions> |
75 | 67 | <testResources> |
76 | 68 | <testResource> |
|
117 | 109 | <configuration> |
118 | 110 | <!-- no need to get data about external code. It dramatically reduces performance of JaCoCo for nothing --> |
119 | 111 | <excludes> |
120 | | - <exclude>/org/kohsuke/github/extras/HttpClient*</exclude> |
121 | 112 | <exclude>/org/kohsuke/github/example/*</exclude> |
122 | | - <exclude>/org/kohsuke/github/extras/OkHttpConnector*</exclude> |
123 | | - <exclude>/org/kohsuke/github/extras/OkHttp3Connector*</exclude> |
124 | | - <exclude>/org/kohsuke/github/extras/okhttp3/ObsoleteUrlFactory*</exclude> |
125 | 113 | </excludes> |
126 | 114 | </configuration> |
127 | 115 | <executions> |
|
172 | 160 | </limit> |
173 | 161 | </limits> |
174 | 162 | <excludes> |
175 | | - <!-- Java 11 multi-release overlay problems --> |
176 | | - <exclude>org.kohsuke.github.extras.HttpClientGitHubConnector.**</exclude> |
177 | | - <exclude>org.kohsuke.github.extras.HttpClientGitHubConnector</exclude> |
178 | | - |
179 | | - <!-- Code implemented externally --> |
180 | | - <exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory.**</exclude> |
181 | | - <exclude>org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory</exclude> |
| 163 | + <!-- V2.x changes --> |
| 164 | + <exclude>org.kohsuke.github.GHRepositorySearchBuilder.Fork</exclude> |
182 | 165 |
|
183 | 166 | <!-- Sample only --> |
184 | 167 | <exclude>org.kohsuke.github.example.*</exclude> |
185 | 168 |
|
186 | | - <!-- Deprecated --> |
187 | | - <exclude>org.kohsuke.github.extras.OkHttpConnector</exclude> |
188 | | - <exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude> |
189 | | - <exclude>org.kohsuke.github.EnforcementLevel</exclude> |
190 | | - <exclude>org.kohsuke.github.GHPerson.1</exclude> |
191 | | - <exclude>org.kohsuke.github.GHCompare.User</exclude> |
| 169 | + <!-- Unbridged test changes --> |
| 170 | + <exclude>org.kohsuke.github.GHCommit.GHAuthor</exclude> |
192 | 171 |
|
193 | 172 | <!-- TODO: Some coverage, but more needed --> |
194 | 173 | <exclude>org.kohsuke.github.GHIssue.PullRequest</exclude> |
|
225 | 204 | <artifactId>maven-javadoc-plugin</artifactId> |
226 | 205 | <version>3.8.0</version> |
227 | 206 | <configuration> |
228 | | - <release>8</release> |
| 207 | + <release>11</release> |
229 | 208 | <failOnWarnings>true</failOnWarnings> |
230 | 209 | <doclint>all</doclint> |
231 | 210 | </configuration> |
|
298 | 277 | <artifactId>maven-compiler-plugin</artifactId> |
299 | 278 | <version>3.13.0</version> |
300 | 279 | <configuration> |
301 | | - <source>1.8</source> |
302 | | - <target>1.8</target> |
| 280 | + <source>11</source> |
| 281 | + <target>11</target> |
303 | 282 | <annotationProcessorPaths> |
304 | 283 | <annotationProcessorPath> |
305 | 284 | <groupId>org.jenkins-ci</groupId> |
306 | 285 | <artifactId>annotation-indexer</artifactId> |
307 | | - <version>1.12</version> |
| 286 | + <version>1.17</version> |
308 | 287 | </annotationProcessorPath> |
309 | 288 | </annotationProcessorPaths> |
310 | 289 | </configuration> |
311 | | - <executions> |
312 | | - <execution> |
313 | | - <id>compile-java-11</id> |
314 | | - <phase>compile</phase> |
315 | | - <goals> |
316 | | - <goal>compile</goal> |
317 | | - </goals> |
318 | | - <configuration> |
319 | | - <release>11</release> |
320 | | - <source>11</source> |
321 | | - <target>11</target> |
322 | | - <compileSourceRoots> |
323 | | - <compileSourceRoot>${project.basedir}/src/main/java11</compileSourceRoot> |
324 | | - </compileSourceRoots> |
325 | | - <multiReleaseOutput>true</multiReleaseOutput> |
326 | | - </configuration> |
327 | | - </execution> |
328 | | - </executions> |
329 | 290 | </plugin> |
330 | 291 | <plugin> |
331 | 292 | <artifactId>maven-surefire-plugin</artifactId> |
|
349 | 310 | <archive> |
350 | 311 | <manifestEntries> |
351 | 312 | <Automatic-Module-Name>org.kohsuke.github.api</Automatic-Module-Name> |
352 | | - <Multi-Release>true</Multi-Release> |
353 | 313 | </manifestEntries> |
354 | 314 | </archive> |
355 | 315 | </configuration> |
356 | 316 | </plugin> |
357 | | - <plugin> |
358 | | - <groupId>org.codehaus.mojo</groupId> |
359 | | - <artifactId>animal-sniffer-maven-plugin</artifactId> |
360 | | - </plugin> |
361 | | - <plugin> |
362 | | - <groupId>com.infradna.tool</groupId> |
363 | | - <artifactId>bridge-method-injector</artifactId> |
364 | | - <version>1.29</version> |
365 | | - <executions> |
366 | | - <execution> |
367 | | - <goals> |
368 | | - <goal>process</goal> |
369 | | - </goals> |
370 | | - </execution> |
371 | | - </executions> |
372 | | - </plugin> |
373 | 317 | <plugin> |
374 | 318 | <groupId>com.diffplug.spotless</groupId> |
375 | 319 | <artifactId>spotless-maven-plugin</artifactId> |
|
388 | 332 | <java> |
389 | 333 | <includes> |
390 | 334 | <include>src/main/java/**/*.java</include> |
391 | | - <include>src/main/java11/**/*.java</include> |
392 | 335 | <include>src/test/java/**/*.java</include> |
393 | 336 | </includes> |
394 | 337 |
|
|
436 | 379 | <plugin> |
437 | 380 | <groupId>com.github.siom79.japicmp</groupId> |
438 | 381 | <artifactId>japicmp-maven-plugin</artifactId> |
439 | | - <version>0.17.2</version> |
| 382 | + <version>0.21.2</version> |
440 | 383 | <configuration> |
441 | 384 | <parameter> |
442 | | - <breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications> |
| 385 | + <!-- <breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications> --> |
| 386 | + <!-- <breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning> --> |
443 | 387 | <onlyModified>true</onlyModified> |
444 | 388 | <includeSynthetic>true</includeSynthetic> |
445 | 389 | <excludes> |
446 | 390 | <!-- Classes in internal are public but are considered private for API stability purposes --> |
447 | 391 | <exclude>org.kohsuke.github.internal</exclude> |
448 | | - <!-- TODO: started failing in CI recently. This is part of the multi-release structure. --> |
449 | | - <exclude>org.kohsuke.github.extras.HttpClientGitHubConnector#HttpClientGitHubConnector(java.net.http.HttpClient)</exclude> |
450 | 392 | </excludes> |
451 | 393 | </parameter> |
452 | 394 | </configuration> |
|
555 | 497 | <version>1.29</version> |
556 | 498 | <optional>true</optional> |
557 | 499 | </dependency> |
558 | | - <!-- for stapler-jetty --> |
559 | 500 | <dependency> |
560 | | - <groupId>commons-fileupload</groupId> |
561 | | - <artifactId>commons-fileupload</artifactId> |
562 | | - <version>1.5</version> |
563 | | - <scope>test</scope> |
564 | | - </dependency> |
565 | | - <!-- for stapler-jetty --> |
566 | | - <dependency> |
567 | | - <groupId>commons-discovery</groupId> |
568 | | - <artifactId>commons-discovery</artifactId> |
569 | | - <version>0.5</version> |
570 | | - <scope>test</scope> |
571 | | - </dependency> |
572 | | - <!-- for stapler-jetty --> |
573 | | - <dependency> |
574 | | - <groupId>org.kohsuke.stapler</groupId> |
575 | | - <artifactId>stapler</artifactId> |
576 | | - <version>1.263</version> |
577 | | - <scope>test</scope> |
578 | | - </dependency> |
579 | | - <dependency> |
580 | | - <groupId>org.kohsuke.stapler</groupId> |
581 | | - <artifactId>stapler-jetty</artifactId> |
582 | | - <version>1.1</version> |
583 | | - <scope>test</scope> |
584 | | - </dependency> |
585 | | - <dependency> |
586 | | - <groupId>org.eclipse.jgit</groupId> |
587 | | - <artifactId>org.eclipse.jgit</artifactId> |
588 | | - <version>6.7.0.202309050840-r</version> |
| 501 | + <groupId>com.google.guava</groupId> |
| 502 | + <artifactId>guava</artifactId> |
| 503 | + <version>33.1.0-jre</version> |
589 | 504 | <scope>test</scope> |
590 | 505 | </dependency> |
591 | 506 | <dependency> |
|
618 | 533 | <version>${okhttp3.version}</version> |
619 | 534 | <optional>true</optional> |
620 | 535 | </dependency> |
621 | | - <!-- This is the last version of okhttp3 that support UrlConnection --> |
622 | | - <!-- The class using this has been deprecated, this dependency can be remove when that class is. --> |
623 | | - <dependency> |
624 | | - <groupId>com.squareup.okhttp3</groupId> |
625 | | - <artifactId>okhttp-urlconnection</artifactId> |
626 | | - <version>3.12.3</version> |
627 | | - <optional>true</optional> |
628 | | - </dependency> |
629 | | - <dependency> |
630 | | - <groupId>com.squareup.okhttp</groupId> |
631 | | - <artifactId>okhttp-urlconnection</artifactId> |
632 | | - <version>2.7.5</version> |
633 | | - <optional>true</optional> |
634 | | - </dependency> |
635 | 536 | <dependency> |
636 | 537 | <groupId>org.kohsuke</groupId> |
637 | 538 | <artifactId>wordnet-random-name</artifactId> |
|
684 | 585 | <profiles> |
685 | 586 | <!-- only enable slow-or-flaky-test if -Dtest= is not present --> |
686 | 587 | <profile> |
687 | | - <id>test-jwt-slow-multireleasejar-flaky</id> |
| 588 | + <id>test-jwt-slow-flaky</id> |
688 | 589 | <activation> |
689 | 590 | <property> |
690 | 591 | <name>!test</name> |
|
708 | 609 | </configuration> |
709 | 610 | </execution> |
710 | 611 | <execution> |
711 | | - <id>java11-test</id> |
| 612 | + <id>httpclient-test</id> |
712 | 613 | <phase>integration-test</phase> |
713 | 614 | <goals> |
714 | 615 | <goal>test</goal> |
|
724 | 625 | </systemPropertyVariables> |
725 | 626 | </configuration> |
726 | 627 | </execution> |
727 | | - <execution> |
728 | | - <id>java11-urlconnection-test</id> |
729 | | - <phase>integration-test</phase> |
730 | | - <goals> |
731 | | - <goal>test</goal> |
732 | | - </goals> |
733 | | - <configuration> |
734 | | - <classesDirectory>${project.basedir}/target/${project.artifactId}-${project.version}.jar</classesDirectory> |
735 | | - <useSystemClassLoader>false</useSystemClassLoader> |
736 | | - <excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile> |
737 | | - <argLine>@{jacoco.surefire.argLine} ${surefire.argLine} -Dtest.github.connector=urlconnection</argLine> |
738 | | - <!-- Run some test passes with trace logging turned on --> |
739 | | - <systemPropertyVariables> |
740 | | - <java.util.logging.config.file>src/test/resources/test-trace-logging.properties</java.util.logging.config.file> |
741 | | - </systemPropertyVariables> |
742 | | - </configuration> |
743 | | - </execution> |
744 | 628 | <execution> |
745 | 629 | <id>slow-or-flaky-test</id> |
746 | 630 | <phase>integration-test</phase> |
|
0 commit comments