Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🧰 building cool stuff

Andres Almiray aalmiray

💭
🧰 building cool stuff
View GitHub Profile
View assembly-pom.xml
<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 Jun 6, 2021
Java version on Big Sur
View output.txt
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
JReleaser configuration for Jbang
View changelog-0.69.0.md

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
Oracle JDBC + SpringBoot 24.5
View Application.java
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 Apr 10, 2021
jbang export mavenrepo
View jbang.txt
$ 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 Mar 25, 2021
reproducible maven
View output
$ 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>
View 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 Feb 1, 2021
Maven incremental build
View output
$ 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 .
.
View jreleaser.yml
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
@aalmiray
aalmiray / error
Created Nov 8, 2020
Javadoc error (JPMS)
View error
y$ gm clean build
Using gradle at '/Users/aalmiray/dev/github/bootstrapfx/gradlew' to run buildFile '/Users/aalmiray/dev/github/bootstrapfx/build.gradle':
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
> Task :clean UP-TO-DATE
> Task :bootstrapfx-core:clean
> Task :sampler:clean UP-TO-DATE
> Task :sampler-jpro:clean UP-TO-DATE
> Task :assemble UP-TO-DATE
> Task :check UP-TO-DATE
> Task :build UP-TO-DATE