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
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 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
*
* http://www.apache.org/licenses/LICENSE-2.0
@aalmiray
aalmiray / attach-artifacts.xml
Last active September 15, 2022 08:42
Running Gradle in Maven
<!-- attach copied JARs to build -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
.
├── project1
│   └── build.gradle
├── project2
│   └── build.gradle
└── project3
└── build.gradle
@aalmiray
aalmiray / build.gradle
Last active November 22, 2018 13:52
What if there was an XML based DSL for Gradle?
plugins {
id 'java'
id 'org.kordamp.gradle.project' version '0.8.0'
}
group = 'com.acme.gradle'
version = '1.0.0-SNAPSHOT'
config {
info {
@aalmiray
aalmiray / SuperpomPlugin.groovy
Last active February 14, 2022 09:37
Example project showcasing the Gradle SuperPOM concept
package com.acme.gradle
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.kordamp.gradle.plugin.project.ProjectPlugin
import org.kordamp.gradle.plugin.base.ProjectConfigurationExtension
class SuperpomPlugin implements Plugin<Project> {
void apply(Project project) {
project.plugins.apply(ProjectPlugin)
@aalmiray
aalmiray / keybase.md
Created December 29, 2016 18:18
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 5C7E 8280 F49D 75A7 23FD 88A4 F1F2 86FC 184B 6BDA

To claim this, I am signing this object:

@aalmiray
aalmiray / SampleTest.java
Last active February 1, 2016 11:26
Enabling TestFX on CI builds
private void _open_preferences_window() {
// given:
testfx.clickOn("#optionsMenu");
// when:
testfx.clickOn("#preferencesActionTarget");
// then:
assertThat(testfx.window(KEY_PREFERENCES_WINDOW), isShowing());
}
@aalmiray
aalmiray / DefaultGithub.java
Last active January 19, 2016 21:47
Paginated (#retrofit enabled) Observable (#rxjava) values
/*
* Copyright 2016 the original author or authors.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@aalmiray
aalmiray / AppControllerTest.java
Created January 19, 2016 21:44
A #griffon testcase showing the usage of Mockito with @bindto
/*
* Copyright 2016 the original author or authors.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@aalmiray
aalmiray / jsr377-cla.md
Created December 3, 2015 10:55
JSR377 CLA

JSR377 Individual Contributor License Agreement

Thank you for your interest in contributing to JSR377.

This contributor agreement (“Agreement”) documents the rights granted by contributors to JSR377. To make this document effective, please sign it and send it to the JSR377 Specification Lead by electronic submission. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by the JSR377 Specification lead.

  1. Definitions