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 / CHANGELOG.md
Created November 28, 2021 22:00
gitmoji

Changelog

Added

  • f0f109a 👷 #6 Add release configuration and workflows
  • 84180af 👷‍♀️ #4 Adding GitHub Actions flow to template
  • bfadab2 👷‍♀️ Adding CI

Changed

  • 31ae0a3 ⚡️ Refactor post-generation Groovy script
  • 9f232b0 📦 Creating archetype
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<attach>false</attach>
<appendAssemblyId>false</appendAssemblyId>
<finalName>kcctl-${project.version}-${os.detected.classifier}</finalName>
<workDirectory>${project.build.directory}/assembly/work</workDirectory>
@aalmiray
aalmiray / output.txt
Last active June 6, 2021 13:27
Java version on Big Sur
Darwin
ProductName: macOS
ProductVersion: 11.4
BuildVersion: 20F71
Groovy Version: 3.0.8 JVM: 16.0.1 Vendor: Oracle Corporation OS: Mac OS X
Using java version 16.0.1.hs-adpt in this shell.
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)
@aalmiray
aalmiray / changelog-0.69.0.md
Last active May 17, 2021 20:25
JReleaser configuration for Jbang

Changelog

🚀 Features

  • d9a4fcd add mavenrepo export option (#769)
  • 0a39c96 add interactive mode for non-jshell (#802)

🐛 Fixes

  • b2b0662 be able to launch editors with space in name (#800)
  • c7b0b59 Fixed template init naming validation
@aalmiray
aalmiray / Application.java
Last active May 3, 2021 15:33
Oracle JDBC + SpringBoot 24.5
package com.acme.todo01;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
@aalmiray
aalmiray / jbang.txt
Created April 10, 2021 21:33
jbang export mavenrepo
$ jbang --version
0.70.0
$ jbang export mavenrepo --force -O target -Dgroup=com.acme -Dartifact=hello -Dversion=0.0.0 hello.java
[jbang] Writing target/com/acme/hello/0.0.0/hello-0.0.0.jar
[jbang] Writing target/com/acme/hello/0.0.0/hello-0.0.0.pom
[jbang] Exported to target
$ pomchecker check-maven-central --file target/com/acme/hello/0.0.0/hello-0.0.0.pom
PomChecker 1.1.0. Consider becoming a patron at https://www.patreon.com/aalmiray
@aalmiray
aalmiray / output
Created March 25, 2021 14:02
reproducible maven
$ cat pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.acme</groupId>
<artifactId>sample</artifactId>
<version>0.0.0-SNAPSHOT</version>
<dependencies>
<dependency>
@aalmiray
aalmiray / keybase.md
Created February 2, 2021 13:54
keybase.md

Keybase proof

I hereby claim:

  • I am aalmiray on github.
  • I am aalmiray (https://keybase.io/aalmiray) on keybase.
  • I have a public key whose fingerprint is 19E6 A9B8 0701 6704 8DF9 1E53 09FD 6FEB F899 F9FA

To claim this, I am signing this object:

@aalmiray
aalmiray / output
Last active February 1, 2021 14:41
Maven incremental build
$ gm --version
Using maven at '/tmp/sample/mvnw' to run buildFile '/tmp/sample/pom.xml':
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /Users/aalmiray/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3
Java version: 1.8.0_272, vendor: Amazon.com Inc., runtime: /Users/aalmiray/.sdkman/candidates/java/8.0.272-amzn/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.7", arch: "x86_64", family: "mac"
aalmiray2:sample aalmiray$ tree .
.
project:
name: app
version: 1.0.0-SNAPSHOT
description: Sample app
longDescription: Sample app
website: https://kordamp.org/app
authors:
- Andres Almiray
license: Apache-2
javaVersion: 8