Skip to content

Instantly share code, notes, and snippets.

Avatar

Andres Almiray aalmiray

View GitHub Profile
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
View gist:e17662a1ffae53006b2f633a35bfec02
e: /Users/aalmiray/dev/github/griffon/subprojects/griffon-javafx-kotlin/src/main/kotlin/griffon/javafx/kotlin/collections/reduce/ReducingBindingsExtension.kt: (59, 29): None of the following functions can be called with the arguments supplied:
public open fun <T : Any!> reduceThenMapToBoolean(p0: ObservableList<TypeVariable(T)!>!, p1: TypeVariable(T)!, p2: BinaryOperator<TypeVariable(T)!>!, p3: Function<in TypeVariable(T)!, Boolean!>!): BooleanBinding! defined in griffon.javafx.beans.binding.ReducingBindings
public open fun <T : Any!> reduceThenMapToBoolean(p0: ObservableList<TypeVariable(T)!>!, p1: TypeVariable(T)!, p2: ObservableValue<BinaryOperator<TypeVariable(T)!>!>!, p3: ObservableValue<Function<in TypeVariable(T)!, Boolean!>!>!): BooleanBinding! defined in griffon.javafx.beans.binding.ReducingBindings
public open fun <T : Any!> reduceThenMapToBoolean(p0: ObservableList<TypeVariable(T)!>!, p1: Supplier<TypeVariable(T)!>!, p2: BinaryOperator<TypeVariable(T)!>!, p3: Function<in TypeVariable(T)!, Boolean!
@aalmiray
aalmiray / raw data
Created Oct 16, 2020
mvn clean install
View raw data
Guava 6 modules
661384d0fa41aa4e00aeca720bdf2ca3be52769e
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (Zulu 8.48.0.53-CA-macosx) (build 1.8.0_265-b11)
OpenJDK 64-Bit Server VM (Zulu 8.48.0.53-CA-macosx) (build 25.265-b11, mixed mode)
mvn clean 0.598 s
mvn verify -DskipTests 01:32 min
mvn verify -DskipTests 47.088 s
@aalmiray
aalmiray / DataSourceFactory.java
Last active Oct 13, 2020
Oracle Aunonomous Database + MyBatis
View DataSourceFactory.java
package com.acme.todo;
import oracle.ucp.jdbc.PoolDataSource;
import oracle.ucp.jdbc.PoolDataSourceFactory;
import javax.sql.DataSource;
import java.util.Properties;
public class DataSourceFactory {
public static DataSource createDataSource(String datasourceConfigFile) throws Exception {
@aalmiray
aalmiray / DataSourceFactory.java
Last active Oct 8, 2020
Oracle Aunonomous Database + JDBI
View DataSourceFactory.java
package com.acme.todo;
import oracle.ucp.jdbc.PoolDataSource;
import oracle.ucp.jdbc.PoolDataSourceFactory;
import javax.sql.DataSource;
import java.util.Properties;
public class DataSourceFactory {
public static DataSource createDataSource(String datasourceConfigFile) throws Exception {
View EchoTask.groovy
import groovy.transform.CompileStatic
import org.gradle.api.DefaultTask
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.options.Option
import org.kordamp.gradle.property.SimpleStringState
@aalmiray
aalmiray / consumer1-pom-enforced.xml
Last active Aug 13, 2020
Maven Enforcer plugin examples
View consumer1-pom-enforced.xml
<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>consumer1</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
@aalmiray
aalmiray / db.groovy
Last active Aug 10, 2020
Groovy/JBang
View db.groovy
@Grab('com.oracle.database.jdbc:ojdbc8:19.7.0.0')
@Grab('com.oracle.database.jdbc:ucp:19.7.0.0')
import java.sql.Connection
import java.sql.SQLException
import java.sql.Statement
import java.sql.ResultSet
import oracle.ucp.jdbc.PoolDataSourceFactory
import oracle.ucp.jdbc.PoolDataSource
PoolDataSource pds = PoolDataSourceFactory.poolDataSource.with(true) {
View Application.java
package com.acme.sample;
public class Application {
static {
System.setProperty("oracle.net.tns_admin",
System.getProperty("user.dir") + File.separator + "wallet");
}
public static void main(String[] args) {
// ...
You can’t perform that action at this time.