Skip to content

Commit 46223b0

Browse files
committed
Add pom and workflows for mvn deployment.
1 parent bde6cd8 commit 46223b0

4 files changed

Lines changed: 116 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release on demand
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
releaseVersion:
10+
description: "Version to release"
11+
required: true
12+
snapshotVersion:
13+
description: "Snapshot version after release"
14+
required: true
15+
16+
jobs:
17+
call-release:
18+
uses: clojure/build.ci/.github/workflows/release.yml@master
19+
with:
20+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
21+
snapshotVersion: ${{ github.event.inputs.snapshotVersion }}
22+
centralDeployServer: "s01"
23+
secrets: inherit

‎.github/workflows/snapshot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Snapshot on demand
2+
3+
permissions:
4+
contents: read
5+
6+
on: [workflow_dispatch]
7+
8+
jobs:
9+
call-snapshot:
10+
uses: clojure/build.ci/.github/workflows/snapshot.yml@master
11+
secrets: inherit

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.cpcache
22
.DS_Store
3+
target/

‎pom.xml‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>io.github.clojure</groupId>
5+
<artifactId>java.doc</artifactId>
6+
<version>0.1.5-SNAPSHOT</version>
7+
<name>java.doc</name>
8+
<description>A Clojure library for accessing Javadocs in your REPL.</description>
9+
10+
<parent>
11+
<groupId>org.clojure</groupId>
12+
<artifactId>pom.contrib</artifactId>
13+
<version>1.4.3</version>
14+
</parent>
15+
16+
<developers>
17+
<developer>
18+
<name>Jarrod Taylor</name>
19+
</developer>
20+
</developers>
21+
22+
<properties>
23+
<clojure.version>1.12.3</clojure.version>
24+
<clojure.warnOnReflection>true</clojure.warnOnReflection>
25+
<clojure.source.dir>src</clojure.source.dir>
26+
<clojure.testSource.dir>test</clojure.testSource.dir>
27+
</properties>
28+
29+
<dependencies>
30+
<dependency>
31+
<groupId>org.clojure</groupId>
32+
<artifactId>clojure</artifactId>
33+
<version>${clojure.version}</version>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.clojure</groupId>
37+
<artifactId>tools.deps</artifactId>
38+
<version>0.31.1642</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>com.vladsch.flexmark</groupId>
42+
<artifactId>flexmark-html2md-converter</artifactId>
43+
<version>0.64.8</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>org.jsoup</groupId>
47+
<artifactId>jsoup</artifactId>
48+
<version>1.18.1</version>
49+
</dependency>
50+
</dependencies>
51+
52+
<distributionManagement>
53+
<snapshotRepository>
54+
<id>sonatype-nexus-staging</id>
55+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
56+
</snapshotRepository>
57+
</distributionManagement>
58+
59+
<build>
60+
<plugins>
61+
<plugin>
62+
<groupId>org.sonatype.plugins</groupId>
63+
<artifactId>nexus-staging-maven-plugin</artifactId>
64+
<version>1.7.0</version>
65+
<extensions>true</extensions>
66+
<configuration>
67+
<serverId>sonatype-nexus-staging</serverId>
68+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
69+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
70+
</configuration>
71+
</plugin>
72+
</plugins>
73+
</build>
74+
75+
<scm>
76+
<connection>scm:git:git@github.com:clojure/java.doc.git</connection>
77+
<developerConnection>scm:git:git@github.com:clojure/java.doc.git</developerConnection>
78+
<url>git@github.com:clojure/java.doc.git</url>
79+
<tag>HEAD</tag>
80+
</scm>
81+
</project>

0 commit comments

Comments
 (0)