-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial script for maven publishing
Needs proper versioning and actual maven urls
- Loading branch information
1 parent
6c580af
commit 45047a2
Showing
4 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
build/ | ||
.vscode/ | ||
.idea/ | ||
.idea/ | ||
server.pom | ||
client.pom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env sh | ||
rm -f client*.pom server*.pom | ||
pom_version=$(git rev-parse HEAD) | ||
cp template-mappings.pom client-$pom_version.pom | ||
cp template-mappings.pom server-$pom_version.pom | ||
sed -i 's/template_pom/client/' client-$pom_version.pom | ||
sed -i 's/template_pom/server/' server-$pom_version.pom | ||
sed -i 's/>git</>'$(git rev-parse HEAD)'</' server-$pom_version.pom | ||
sed -i 's/>git</>'$(git rev-parse HEAD)'</' client-$pom_version.pom | ||
mvn gpg:sign-and-deploy-file -Durl=$1 -DrepositoryId=$2 -DpomFile=client-$pom_version.pom -Dfile=build/client-$pom_version.jar | ||
mvn gpg:sign-and-deploy-file -Durl=$1 -DrepositoryId=$2 -DpomFile=server-$pom_version.pom -Dfile=build/server-$pom_version.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.duvetmc</groupId> | ||
<artifactId>template_pom</artifactId> | ||
<version>git</version> | ||
<description>POM was created from install:install-file</description> | ||
<licenses> | ||
<license> | ||
<name>CC0-1.0 License</name> | ||
<url>https://creativecommons.org/publicdomain/zero/1.0/legalcode</url> | ||
<license> | ||
</licenses> | ||
<developers> | ||
<developer> | ||
<organization>DuvetMC</organization> | ||
<organizationUrl>https://github.com/duvetmc</organizationUrl> | ||
</developer> | ||
</developers> | ||
<scm> | ||
<connection>scm:git:git+https://github.com/DuvetMC/ChaosMappings.git</connection> | ||
<developerConnection>scm:git:ssh://github.com:DuvetMC/ChaosMappings.git</developerConnection> | ||
<url>https://github.com/DuvetMC/ChaosMappings</url> | ||
</scm> | ||
</project> |