Skip to content

Commit

Permalink
fix: javadoc / sources generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ktor committed Jun 11, 2024
1 parent a3dd30d commit 2accd93
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
16 changes: 16 additions & 0 deletions maven-central-publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

# Deploy maven artefact in current directory into Maven central repository
# using maven-release-plugin goals

read -p "Really publish to maven cetral repository (yes/no)? "

if ( [ "$REPLY" == "yes" ] ) then
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
ssh-add -l
mvn deploy -e
ssh-add -D
else
echo 'Exit without deploy'
fi
27 changes: 20 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand Down Expand Up @@ -92,12 +104,6 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
Expand Down Expand Up @@ -134,12 +140,19 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<failOnWarnings>false</failOnWarnings>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down

0 comments on commit 2accd93

Please sign in to comment.