Skip to content

Instantly share code, notes, and snippets.

Avatar

Caio Faustino caiofaustino

View GitHub Profile
View pom_template.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.adyen.checkout</groupId>
%%%ARTIFACT%%%
%%%VERSION%%%
<packaging>aar</packaging>
%%%NAME%%%
%%%DESCRIPTION%%%
<url>https://github.com/Adyen/adyen-android</url>
View refactor_pom.sh
#!/bin/bash
echo "Starting POM script"
root_path="/path/to/your/modules"
pom_template="/path/to/your/pom_template.xml"
# Script assumes root path being the one where the artifact/modules folders are
if [ -d "$root_path" ]; then
echo "Path exists!"
@caiofaustino
caiofaustino / upload_artifacts.sh
Created Apr 15, 2021
Script to upload artifacts to Maven
View upload_artifacts.sh
#!/bin/bash
echo "Starting upload script"
sonatype_user="<your_user>"
sonatype_password="<your_password>"
# Path where the files are located
path=$1
# Path inside the repo if not root path, (com/package/group)
repo_path_base=$2
@caiofaustino
caiofaustino / sign.sh
Created Mar 16, 2021
Sign all files in folder recursively
View sign.sh
#!/bin/bash
echo "Starting sign script"
script_path="/your/script/path/sign.sh"
if [ -d "$1" ]; then
echo "Path exists!"
for f in $1/*; do
if [[ $f == *"."[a-z][a-z][a-z] ]]; then
filename=$(basename "$f")
@caiofaustino
caiofaustino / get_repo.sh
Created Mar 16, 2021
Download Maven repository files recursively
View get_repo.sh
#!/bin/bash
echo "Starting curl script"
echo ""
download_path=$1
echo "download_path: $download_path"
local_path=$2
echo "local_path: $local_path"
script_path="/your/script/path/get_repo.sh"
View gist:376bb55744479a9ec6a3918298b05165
### Keybase proof
I hereby claim:
* I am galvanize on github.
* I am caiovmf (https://keybase.io/caiovmf) on keybase.
* I have a public key ASD58IJnXpjjcOa_DXOCmxav2oiIqLVw0HV-bxVzH6DImAo
To claim this, I am signing this object: