Skip to content

Commit

Permalink
Merge pull request #164 from jimklimov/pircbot-snapshot
Browse files Browse the repository at this point in the history
pom.xml: try pircbotx build "master-SNAPSHOT" not "master"…
  • Loading branch information
jimklimov authored May 23, 2023
2 parents b944426 + ecd0451 commit aac6397
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
* See the documentation for more options:
* https://github.com/jenkins-infra/pipeline-library/
*/
buildPlugin(useContainerAgent: true, configurations: [
buildPlugin(
useContainerAgent: true,
// Opt-in to the Artifact Caching Proxy? (maybe to be removed when it will be opt-out)
// See https://github.com/jenkins-infra/helpdesk/issues/2752 for more details and updates.
artifactCachingProxyEnabled: false,
configurations: [
// Test the common case (i.e., a recent LTS release) on both Linux and Windows.
[ platform: 'linux', jdk: '11', jenkins: '2.375.1' ],
[ platform: 'windows', jdk: '11', jenkins: '2.375.1' ],
Expand Down
54 changes: 52 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,17 @@
</exclusions>
</dependency>
<dependency>
<groupId>com.github.pircbotx</groupId>
<groupId>org.pircbotx</groupId>
<!-- groupId>com.github.pircbotx</groupId -->
<artifactId>pircbotx</artifactId>

<!-- SEE BELOW ABOUT VERSIONING WOES until release 2.4 -->
<!-- Finally cheated by uploading (Deploy button) the JAR from JitPack
to https://repo.jenkins-ci.org/ snapshots; metadata parsed and
name/version assigned automatically by it; note it also reassigned
the groupId back to "org.pircbotx"; see also maven enforcer hacks: -->
<version>2.4-20230523.142555-1</version>

<!-- https://jitpack.io/#pircbotx/pircbotx => Branches => master-SNAPSHOT
=> https://jitpack.io/com/github/pircbotx/pircbotx/-v2.3-gb1b48bf-9/build.log
Using recent previews until 2.4 which should fix packaging
Expand All @@ -87,7 +96,9 @@
<version>master-SNAPSHOT</version>
-->
<!-- <version>b1b48bfb64</version> -->
<version>master</version>
<!-- <version>master</version> -->
<!-- <version>master-v2.3-gb1b48bf-9</version> -->

<scope>compile</scope>
<exclusions>
<!-- provides an ancient version, junit plugin is pulling in a more recent one -->
Expand Down Expand Up @@ -133,6 +144,13 @@
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>jenkins-artifactory-snapshots</id>
<url>https://repo.jenkins-ci.org/artifactory/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
Expand Down Expand Up @@ -207,6 +225,38 @@
<compatibleSinceVersion>2.0</compatibleSinceVersion>
</configuration>
</plugin>

<!-- For the time being, until pircbotx-2.4 is officially released,
we are constrained to using snapshots, which is frowned upon.
See centralized config in
https://github.com/jenkinsci/plugin-pom/blob/ec78ae1af0b5365d8d17121f3d5be720acb87f13/pom.xml#L550-L570
-->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>no-snapshots-in-release</id>
<phase>validate</phase>
<goals>
<!-- goal>enforce</goal -->
<goal>display-info</goal>
</goals>
<configuration>
<rules>
<requireReleaseDeps>
<message>No SNAPSHOT versions are allowed for releases (except pircbotx)</message>
<excludes>
<exclude>org.pircbotx:pircbotx</exclude>
<exclude>com.github.pircbotx:pircbotx</exclude>
</excludes>
</requireReleaseDeps>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit aac6397

Please sign in to comment.