-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switching to Unirest 4 * WIP * JiraInstanceManagerRestSpec.groovy * Fixed minor bug * Use java.nio instead groovy internal classes to resolve paths * Create gh actions ci * Working on solving shading and pom issues * Merged Jonis licence/pom changes * Buggfixes * Updated README.md Split up github action so that the two jars are build as separate steps for clarity --------- Co-authored-by: Joni Lahtinen <[email protected]>
- Loading branch information
1 parent
14af34b
commit 76d8699
Showing
20 changed files
with
319 additions
and
301 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
/** | ||
* Creates a new pom-standalone.xml based on pom.xml but with new artifact (jirainstancemanager-standalone) name and | ||
* additional build steps for shading based on shadingConf.xml | ||
*/ | ||
String projectBasePath = project.basedir | ||
File origPom = new File(projectBasePath + "/pom.xml") | ||
File shadingConf = new File(projectBasePath + "/.github/buildResources/shadingConf.xml") | ||
|
||
String newPomBody = origPom.text.replace("<plugins>", "<plugins>\n" + shadingConf.text) | ||
|
||
newPomBody = newPomBody.replaceFirst("<artifactId>jirainstancemanager<\\/artifactId>", "<artifactId>jirainstancemanager-standalone<\\/artifactId>") | ||
|
||
File standalonePom = new File(projectBasePath + "/pom-standalone.xml") | ||
standalonePom.createNewFile() | ||
standalonePom.text = newPomBody |
14 changes: 14 additions & 0 deletions
14
.github/buildResources/secret_licenses/decrypt_licenses.sh
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,14 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
|
||
|
||
mkdir -p $HOME/.licenses/jira | ||
# --batch to prevent interactive command | ||
# --yes to assume "yes" for questions | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LICENSE_PASSWORD" \ | ||
--output $HOME/.licenses/jira/jsm.license $DIR/jsm.license.gpg | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LICENSE_PASSWORD" \ | ||
--output $HOME/.licenses/jira/sr.license $DIR/sr.license.gpg |
Binary file not shown.
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,77 @@ | ||
<plugin> | ||
<!-- Configured in pluginManagement instead of plugins, because we do not want a shaded parent POM --> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>3.5.1</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<transformers> | ||
<transformer implementation="org.apache.maven.plugins.shade.resource.GroovyResourceTransformer"> | ||
<extModuleName>the-aggregated-module</extModuleName> | ||
<extModuleVersion>1.0.0</extModuleVersion> | ||
</transformer> | ||
</transformers> | ||
<!-- Will output 2 jars: the original, and the shaded one --> | ||
<shadedArtifactAttached>false</shadedArtifactAttached> | ||
|
||
<!-- final name of the shaded jar will be ${project.artifactId}-standalone --> | ||
<!--shadedClassifierName>standalone</shadedClassifierName--> | ||
|
||
<filters> | ||
|
||
<filter> | ||
<artifact>*:*</artifact> | ||
<excludes> | ||
<exclude>META-INF/*.SF</exclude> | ||
<exclude>META-INF/*.DSA</exclude> | ||
<exclude>META-INF/*.RSA</exclude> | ||
<!--exclude>META-INF/groovy/*</exclude--> | ||
|
||
</excludes> | ||
</filter> | ||
</filters> | ||
|
||
<artifactSet> | ||
<!--excludes> | ||
<exclude>org.codehaus.groovy:groovy</exclude> | ||
</excludes--> | ||
<excludes> | ||
<exclude>org.junit.jupiter:*</exclude> | ||
<exclude>org.codehaus.groovy:*</exclude> | ||
<exclude>org.junit:*</exclude> | ||
<exclude>junit:*</exclude> | ||
</excludes> | ||
|
||
</artifactSet> | ||
<relocations> | ||
<relocation> | ||
<pattern>unirest</pattern> | ||
<shadedPattern>com.eficode.shaded.unirest</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>kong</pattern> | ||
<shadedPattern>com.eficode.shaded.kong</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>org.apache.commons</pattern> | ||
<shadedPattern>com.eficode.shaded.org.apache.commons</shadedPattern> | ||
</relocation> | ||
</relocations> | ||
|
||
<!-- NOTE: Any dependencies of the project will not show up in the standalone pom. | ||
This means that if those dependencies are not properly relocated and there is a class-loading conflict, | ||
user would not be able to figure out where the conflicting dependency is. --> | ||
<createDependencyReducedPom>true</createDependencyReducedPom> | ||
|
||
<createSourcesJar>true</createSourcesJar> | ||
|
||
|
||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> |
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
Oops, something went wrong.