Skip to content

Commit

Permalink
#240 config for Github Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Mar 29, 2020
1 parent cb93bfe commit b1fdbb2
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 49 deletions.
72 changes: 41 additions & 31 deletions pom.xml
Expand Up @@ -83,6 +83,27 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<finalName>eo-yaml-${project.version}</finalName>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down Expand Up @@ -231,27 +252,6 @@
<id>releaseToMavenCentral</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<finalName>eo-yaml-${project.version}</finalName>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand All @@ -275,16 +275,26 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<id>releaseToGithubPackages</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub decorators-squad Apache Maven Packages</name>
<url>https://maven.pkg.github.com/decorators-squad/eo-yaml</url>
</repository>
</distributionManagement>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>oss.sonatype.org</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</project>
35 changes: 18 additions & 17 deletions rcfg/settings.xml.asc
@@ -1,20 +1,21 @@
-----BEGIN PGP MESSAGE-----

hQEMA5qETcGag5w6AQf/YHSWXPHSlHGKafpguTki+fkrAiJ15LxbrIVAcssN07rL
k9URYL7LAD/JireAhgRqe+qFCksR5PUn+kSIDo+Ooi6ysYmVmCSBCZHK++5bbFBA
jyTZg+v7gCKdnSoJC6+4aV/vpUIHKmvh3q7RnFmuQhvywFaBbW4yo8Eusp7/WZfK
1yni1XNfOxwFv+Qp3zYAFrAjAKxU/bkQ4+h932eGygrXZ5yBpVUEpQYSQG0MFRGX
uLqdL69L5RXCbLdeTUkaBkB+mAulmfjuCA1Se4m80tKdOqzexfQjhtXvSfp7Zxh1
/N3CBLjwmSg7sCgcmdwTV+5xQZokvEkgcFePSAcZddLBFAE5sHAmFYxft2lj+7TZ
3ozLAmzejQbpJCId0uVAZXx3zIBpN4ad6KqU/LFYbWKV3xaTt69JQGpREZTHC2F2
FiN0i8lLfjlOvpXCNaIDCe9TrJpRpsBCfEIco/JxdHKtqNtgrTKjEV3VVb/qK08p
kzphwMUhHcP1ffjKRSGW4PR+c3OOn6zZdQNQ2sTP5Qb1FU5bhdFltUFs/zUMqgKQ
QJKNTViKRTGT4wDVSNsSxZ5eZKXcsxjvDXjfPCVIVFq3K8khSL60OzDAU8iHlpie
5G4mOD0W961xRfLH74nzLt4d2mWHbNSnoYxvR0oTxNJyDDDbCKVVxZF4VQKwjr7U
RL0c0FXN1ihTxzc46GEZMzVQbfliTpfPhimC2oDOjTPdIaPTZcjpDVn8rl8zsrcN
GiFT0Z/Q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N5ZwKaDYRG9KUXwYSE9xxmLiz0eWf15aFVra1YCkiKoPQKlv7rjvpjjJQ+uNk
LnyXfydKwY2bkrfWMuPeB4bxsi/tnrr8Yy2hwJLLhq3gHRUbsYjJfVwtTjMGKUlj
G5LKI4BkdgWw3nEv06JBGkaIAJGrUye5czm95iDpoMvTxawITGQcQOZR7lrC1nAr
qpBm4c/6H+fLA8+HaiA8
=k41J
-----END PGP MESSAGE-----
2 changes: 1 addition & 1 deletion rrv.sh
Expand Up @@ -35,7 +35,7 @@ echo $NEXT_VERSION
#If the flag comment wouldn't be there, we'd have to write a more complicated regex to catch the artifactif from a row up.
#This is because only a regex for version tag would change all the matching version tags in the file.
sed -i "s/<version>${CURRENT_VERSION}<\/version><\!--rrv-sed-flag-->/<version>${tag}<\/version><\!--rrv-sed-flag-->/" pom.xml
mvn clean deploy --PgenDocs,signArtifactsGpg,releaseToMavenCentral --settings /home/r/settings.xml
mvn clean deploy -PgenDocs,signArtifactsGpg,releaseToMavenCentral,releaseToGithubPackages --settings /home/r/settings.xml
sed -i "s/<version>${tag}<\/version><\!--rrv-sed-flag-->/<version>${NEXT_VERSION}<\/version><\!--rrv-sed-flag-->/" pom.xml
sed -i "s/<version>.*<\/version>/<version>${tag}<\/version>/" README.md
sed -i "s/<a.*>fat<\/a>/<a href=\"https:\/\/oss\.sonatype\.org\/service\/local\/repositories\/releases\/content\/com\/amihaiemil\/web\/eo-yaml\/${tag}\/eo-yaml-${tag}-jar-with-dependencies\.jar\">fat<\/a>/" README.md
Expand Down

0 comments on commit b1fdbb2

Please sign in to comment.