Skip to content

Instantly share code, notes, and snippets.

View aalmiray's full-sized avatar
💭
🧰 building cool stuff

Andres Almiray aalmiray

💭
🧰 building cool stuff
View GitHub Profile
@aalmiray
aalmiray / pom.xml
Created February 19, 2023 16:16
Piranha Embedded JLink application
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-License-Identifier: Apache-2.0
Copyright 2023 Andres Almiray.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@aalmiray
aalmiray / mastodon.java
Last active February 3, 2023 17:38
Post to Mastodon
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 11+
//REPOS jitpack
//REPOS mavencentral
//DEPS com.github.jreleaser.jreleaser:jreleaser-mastodon-java-sdk:main-a330172c0d-1
//DEPS org.slf4j:slf4j-simple:2.0.6
import org.jreleaser.sdk.mastodon.MastodonSdk;
import org.jreleaser.logging.SimpleJReleaserLoggerAdapter;
import java.util.List;
import static org.jreleaser.util.StringUtils.requireNonBlank;
@aalmiray
aalmiray / instructions.md
Last active September 13, 2022 22:50
JReleaser Workshop

Install

  1. The preferred choice is via sdkman: sdk install jreleaser
  2. Other choices available explained at https://github.com/jreleaser/jreleaser
  3. Depending of your choice you may need Java preinstalled (Java 8+)
  4. Verify the installation by invoking jreleaser -V. It should be version 1.2.0
  5. Also install 1.1.0 by invoking sdk install jreleaser 1.1.0.

GitHub setup

$ gm clean build
Using gradle at '/Users/aalmiray/dev/github/discocli/gradlew' to run buildFile '/Users/aalmiray/dev/github/discocli/build.gradle':
Downloading https://services.gradle.org/distributions/gradle-7.4.1-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%
Welcome to Gradle 7.4.1!
Here are the highlights of this release:
- Aggregated test and JaCoCo reports
- Marking additional test source directories as tests in IntelliJ
@aalmiray
aalmiray / dependencies
Created February 25, 2022 11:05
jfxcentral
$ ls -l target/libs/
total 155440
-rw-r--r-- 1 aalmiray staff 4243007 Feb 1 17:12 FXTrayIcon-3.1.2.jar
-rw-r--r-- 1 aalmiray staff 13349 Feb 1 17:12 JMemoryBuddy-0.5.1.jar
-rw-r--r-- 1 aalmiray staff 166895 Feb 1 17:12 JavaEWAH-1.1.13.jar
-rw-r--r-- 1 aalmiray staff 18614 Feb 1 17:12 annotations-15.0.jar
-rw-r--r-- 1 aalmiray staff 2388 Feb 1 17:12 audio-4.0.11.jar
-rw-r--r-- 1 aalmiray staff 2080 Feb 1 17:12 browser-4.0.11.jar
-rw-r--r-- 1 aalmiray staff 246918 Oct 5 2020 commons-beanutils-1.9.4.jar
-rw-r--r-- 1 aalmiray staff 588337 Apr 10 2019 commons-collections-3.2.2.jar
@aalmiray
aalmiray / kordamp_CLA
Last active February 9, 2022 17:12
kordamp_CLA
= Individual Contributor License Agreement
In order to clarify the intellectual property license granted with Contributions from any person or entity, Kordamp ("Kordamp")
must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement
to the license terms below. This license is for your protection as a Contributor as well as the protection of Kordamp;
it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Kordamp.
Except for the license granted herein to Kordamp and recipients of software distributed by Kordamp, You reserve all right,
title, and interest in and to Your Contributions.
@aalmiray
aalmiray / cloc
Last active January 14, 2022 09:41
JReleaser stats @ f0948230
2256 text files.
1344 unique files.
1205 files ignored.
github.com/AlDanial/cloc v 1.88 T=1.34 s (788.9 files/s, 84136.3 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Java 679 10888 15697 51347
Groovy 172 2102 3786 9638
/Users/aalmiray/Downloads/graalvm-ce-java11-22.1.0-dev/Contents/Home/bin/native-image -H:DefaultLocale=en -H:IncludeLocales=en,ca,de,es,fr,hi,it,ja,nl,pt_BR,zh_TW,ru -H:Optimize=2 -H:+RemoveUnusedSymbols -jar /Users/aalmiray/dev
│ /github/jreleaser/apps/jreleaser/build/libs/jreleaser-1.0.0-SNAPSHOT.jar -cp ../../../../../apps/jreleaser/build/libs/jreleaser-1.0.0-SNAPSHOT.jar:../../../../../apps/jreleaser/build/dependencies/flat/twitter-java-sdk-1.0.0-SNAPSHOT.jar:../../../../../a
│ pps/jreleaser/build/dependencies/flat/gitlab-java-sdk-1.0.0-SNAPSHOT.jar:../../../../../apps/jreleaser/build/dependencies/flat/codeberg-java-sdk-1.0.0-SNAPSHOT.jar:../../../../../apps/jreleaser/build/dependencies/flat/aws-java-sdk-s3-1.12.131.jar:../../
│ ../../../apps/jreleaser/build/dependencies/flat/jreleaser-model-1.0.0-SNAPSHOT.jar:../../../../../apps/jreleaser/build/dependencies/flat/github-api-1.129.jar:../../../../../apps/jreleaser/build/dependencies/flat/bcprov-jdk15on-1.68.jar:../../../../../ap
$ git remote -vv
origin https://github.com/MorphiaOrg/morphia.git (fetch)
origin https://github.com/MorphiaOrg/morphia.git (push)
$ mvn org.kordamp.maven:pomchecker-maven-plugin:1.2.0:check-maven-central -Dchecker.release=false
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Morphia [pom]
Name: jbang
Version: 0.83.1.11
Release: 1%{?dist}
Summary: Unleash the power of Java
License: MIT
URL: https://jbang.dev
Source0: https://github.com/aalmiray/jbang/releases/download/v0.83.1.11/jbang-0.83.1.11.tar
BuildArch: noarch