This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var flakyTests = emptyList<String>() | |
if (project.file("flaky-tests.txt").exists()) { | |
flakyTests = project.file("flaky-tests.txt").readLines(Charset.defaultCharset()) | |
} | |
tasks.test { | |
filter { | |
flakyTests.forEach(::excludeTestsMatching) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="exampleblock testable-sample multi-language-sample"> | |
<div class="title">build.gradle</div> | |
<div class="content"> | |
<pre class="prettyprint highlight"><code class="language-groovy" data-lang="groovy">logging.captureStandardOutput LogLevel.INFO | |
println 'A message which is logged at INFO level'</code></pre> | |
</div> | |
</div> | |
<div class="exampleblock testable-sample multi-language-sample"> | |
<div class="title">build.gradle.kts</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootProject { | |
def errorFile = file("${rootProject.buildDir}/errors.log") | |
def errorListener = new ErrorCapture(errorFile) | |
allprojects { | |
logging.addStandardErrorListener(errorListener) | |
tasks.all { | |
logging.addStandardErrorListener(errorListener) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Syntax highlighting definition for Kotlin | |
xslthl - XSLT Syntax Highlighting | |
http://sourceforge.net/projects/xslthl/ | |
Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks | |
This software is provided 'as-is', without any express or implied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Syntax highlighting definition for Groovy | |
xslthl - XSLT Syntax Highlighting | |
http://sourceforge.net/projects/xslthl/ | |
Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks | |
This software is provided 'as-is', without any express or implied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
OAUTH_HEADER="Authorization: token ${GITHUB_OAUTH_TOKEN}" | |
GITHUB_API_URL="https://api.github.com" | |
# List Repos that have a .kts file containing 'kotlin("jvm")' | |
AFFECTED_REPOS=$(curl -H "${OAUTH_HEADER}" "${GITHUB_API_URL}/search/code?q=kotlin%28jvm%29+extension%3Akts" | jq '.items[].repository.full_name' | sed -e 's/"//g' | sort | uniq) | |
typeset -A version_hash | |
version_hash=(4.3 1.1.51 4.2.1 1.1.4-3 4.2 1.1.4-3 4.1 1.1.3-2 4.0 1.1.0 3.5 1.1.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
class, | |
COUNT(*) count | |
FROM ( | |
SELECT | |
REGEXP_REPLACE(line, r'import |;', '') AS class, | |
c.id | |
FROM ( | |
SELECT | |
SPLIT(c.content, '\n') line, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "a:bug", | |
"color": "d93f0b" | |
}, { | |
"name": "a:chore", | |
"color": "1d76db" | |
}, { | |
"name": "a:feature", | |
"color": "0e8a16" | |
}, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include 'org/gradle/*' | |
include 'org/gradle/api/**' | |
include 'org/gradle/authentication/**' | |
include 'org/gradle/buildinit/**' | |
include 'org/gradle/caching/**' | |
include 'org/gradle/external/javadoc/**' | |
include 'org/gradle/ide/**' | |
include 'org/gradle/ivy/**' | |
include 'org/gradle/jvm/**' | |
include 'org/gradle/language/**' |
NewerOlder