Skip to content

Instantly share code, notes, and snippets.

import javax.mail.internet.*
logger.print(“This ends up in the log as well”);
String encodingOptions = “text/html; charset=UTF-8;“;
// msg.setContent(“please check!!!!“, encodingOptions);
String defaultSubject = msg.getSubject();
build.getLog(1000).each() { line ->
if (line.contains(“archive_name”)) {
matcher = (line =~ /archive_name: (.*)/);
@sturman
sturman / gradle-prepare-webdrivers
Last active November 7, 2017 09:24
Gradle tasks to prepare (download and unpack) Gecko and Chrome Driver for tests
// https://github.com/mozilla/geckodriver/releases
def geckoDriverVersion = '0.19.1'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'de.undercouch:gradle-download-task:3.2.0'
}