Skip to content

Instantly share code, notes, and snippets.


Marcin Zajączkowski szpak

View GitHub Profile
szpak /
Created Feb 8, 2021
jcenter migration to Maven Central - issue template

JCenter will be shut down soon, migrate to Maven Cenral

This project seems to use JCenter to kept the binary artifacts. However, JCenter (with Bintray) is shuting down rather soon (1st May 2021, with read-only mode starting with 1st Feb), so it would be good to migrate releasing to Maven Central (and possibly synchronize old releases with it). Depending on dependencies in your own project can also be risky :-).

For sample project configuration see:

And for sync of the old versions:

View humanReadableResults1562425147999.txt
# JMH version: 1.21
# VM version: JDK 11.0.3, OpenJDK 64-Bit Server VM, 11.0.3+7
# VM invoker: /usr/lib/jvm/java-11-openjdk-
# VM options: <none>
# Warmup: 3 iterations, 10 s each
# Measurement: 5 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: reactor.blockhound.BlockHoundBlockingAllowedThreadBenchmark.baselineBlockingCall
szpak /
Last active Aug 27, 2021
Hyperbook NH5/Clevo NH55RCQ (post-)installation issues (and fixes) with Linux (Fedora 30)

Hyperbook NH5/Clevo NH55RCQ (post-)installation issues (and fixes) with Linux (Fedora 30+)


This document describes my attemt to get Linux (Fedora 30) up and running in a sensible way on Hyperbook NH5/Clevo NH55RCQ.

That laptop has (at the time of purchase - May 2019) really nice specification, but due to positioning it as a "gaming laptop" the Linux-friendliness doesn't have a high priority. Although, it is possible to run it directly from a LiveUSB with Fedora 30, I have spent (definitely too) much time trying to solve the problems I encountered down the line. In hindsight, I could choose something more Linux-supported, but anyway, I created that list for other desperados to be up and running in several minutes instead of several dozen hours :).


szpak / mockito-java8-java8u60-regression.txt
Created Nov 11, 2015
mockito-java8 java8u60 regression
View mockito-java8-java8u60-regression.txt
> shouldAllowToUseAssertionInLambdaWithPrimitiveAsArgument
at info.solidsoft.mockito.java8.AssertionMatcherTest.shouldAllowToUseAssertionInLambdaWithPrimitiveAsArgument(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
View mileston.json
szpak / gist:03c36a27ac24a896a557
Created May 14, 2014
NPE on missing dependency in Gradle 1.12
View gist:03c36a27ac24a896a557
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':testCompile'.
> Could not resolve junit:junit:4.111.
Required by:
> java.lang.NullPointerException (no error message)
* Try:
szpak /
Created Jun 10, 2012
PoC of ConditionFactory for FEST-Assert
package com.jayway.awaitility.core;
import com.jayway.awaitility.Duration;
import javassist.util.proxy.MethodFilter;
import javassist.util.proxy.MethodHandler;
import javassist.util.proxy.ProxyFactory;
import org.fest.assertions.api.BigDecimalAssert;
import org.fest.assertions.api.IntegerAssert;
import org.fest.assertions.api.ListAssert;
import org.fest.assertions.core.Assert;
szpak /
Created Jan 25, 2012
Not working with jbehave-maven-plugin SpringReportingAnnotatedEmbedderRunner
* Copyright (c) 2012 Alexander Lehmann
* All rights reserved.
* More info:
package runner;
import org.jbehave.core.junit.spring.SpringAnnotatedEmbedderRunner;
szpak / build.gradle
Created Dec 19, 2011
build.gradle with something similar to Maven's profiles
View build.gradle
apply plugin: 'java'
apply plugin: 'signing'
version = '0.5.3-SNAPSHOT'
isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = 1.5
//targetCompatibility has the same value as sourceCompatibility by default
//to enable fancy test reports with ReportNG
isReportNGEnabled = hasProperty("reports")