Skip to content

Instantly share code, notes, and snippets.

@ericglau
ericglau / README.md
Last active August 26, 2024 17:54
Publishing Upgrades Plugins

0x109bcee7249c43cbbfd118d3627bb679862b90149a7fd6549105971375ab1e18

@ericglau
ericglau / keybase.md
Last active December 6, 2021 17:23
keybase.md

Keybase proof

I hereby claim:

  • I am ericglau on github.
  • I am ericglau (https://keybase.io/ericglau) on keybase.
  • I have a public key whose fingerprint is 606B 2448 E18B 69FA AC65 83AF BE64 0430 2DB0 4CEC

To claim this, I am signing this object:

@ericglau
ericglau / gist:8ded8e2c93964c104bb4b5cee1edfbdc
Last active December 3, 2021 16:38
Generate Maven repo for Open Liberty features from source
@ericglau
ericglau / pom.xml
Created December 4, 2020 22:13
Use Open Liberty beta
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.3.2</version>
<configuration>
<runtimeArtifact>
<groupId>io.openliberty.beta</groupId>
<artifactId>openliberty-runtime</artifactId>
<version>21.0.0.1-beta</version>
<type>zip</type>
@ericglau
ericglau / gist:f0ddde84810c9f968959439cdf743e19
Last active December 3, 2021 16:39
Clone specific branch of ci.common for ci.maven or ci.gradle tests
.travis.yml - Original:
git clone https://github.com/OpenLiberty/ci.common.git ./ci.common
.travis.yml - Personal fork/branch:
git clone -b mybranch https://github.com/MyUsername/ci.common.git ./ci.common
appveyor.yml - Original:
git clone https://github.com/OpenLiberty/ci.common.git ci.common
@ericglau
ericglau / pom.xml
Last active December 3, 2021 16:39
Use specific Open Liberty version with Liberty Maven Plugin
<properties>
<liberty.runtime.version>21.0.0.5</liberty.runtime.version>
</properties>
or
<build>
<plugins>
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
Gradle:
libertyRuntime 'com.ibm.websphere.appserver.runtime:wlp-kernel:21.0.0.2'
Maven:
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<configuration>
<runtimeArtifact>
<groupId>com.ibm.websphere.appserver.runtime</groupId>
@ericglau
ericglau / gist:4a81e6da02fe28fa6223676491713487
Created June 10, 2020 21:09
Set Maven/Gradle java compiler parameters
Maven:
<maven.compiler.debuglevel>source,lines,vars</maven.compiler.debuglevel>
<maven.compiler.compilerArgument>-parameters</maven.compiler.compilerArgument>
Gradle:
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters"
}
}
@ericglau
ericglau / gist:cc0fe2937792207092c4518cc2295545
Last active December 3, 2021 16:40
Run dev mode tests on ci.maven and ci.gradle
ci.maven (remove dev-it from exclusions in liberty-maven-plugin/pom.xml, then run the following from liberty-maven-plugin dir):
mvn install verify -Ponline-its -Dinvoker.streamLogs=true -Druntime=ol -DruntimeVersion=21.0.0.5 -Dinvoker.test=dev-it
ci.gradle (run specific tests with -Ptest.include):
./gradlew clean install check -Ptest.include="**/*DevTest*" -Druntime=ol -DruntimeVersion=21.0.0.5 --stacktrace --info --no-daemon