Skip to content

Instantly share code, notes, and snippets.

@cdsap
cdsap / pom.xml
Created July 21, 2022 00:03
License-maven-plugin
<pluginManagement>
<plugins>
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<configuration>
<gradleEnterprise>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.3.72"
repositories {
google()
jcenter()
maven {
url = "http://oss.jfrog.org/artifactory/oss-snapshot-local"
}
}
@cdsap
cdsap / InfluxDb Plugin
Created August 22, 2020 01:01
InfluxDb Talaiot Plugin
buildscript {
ext.kotlin_version = "1.3.72"
repositories {
google()
jcenter()
maven {
url = "http://oss.jfrog.org/artifactory/oss-snapshot-local"
}
}
@cdsap
cdsap / settings.gradle
Created April 15, 2020 01:33
settings.gradle
buildscript {
repositories {
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.net.idlestate:gradle-redis-build-cache:1.2.1'
@cdsap
cdsap / K8s
Last active March 24, 2020 18:18
Remote Cache with Redis and K8s
kubectl apply -f https://k8s.io/examples/application/guestbook/redis-master-deployment.yaml
kubectl apply -f https://k8s.io/examples/application/guestbook/redis-master-service.yaml
kubectl apply -f https://k8s.io/examples/application/guestbook/redis-slave-deployment.yaml
kubectl apply -f https://k8s.io/examples/application/guestbook/redis-slave-service.yaml
kubectl expose deployment redis-master --type=LoadBalancer --name=my-service
@cdsap
cdsap / hybrid.kt
Last active August 20, 2019 09:12
Hybrid
hybridPublisher {
taskPublisher = ElasticSearchPublisherConfiguration().apply {
url = "http://localhost:9200"
taskIndexName = "task"
}
buildPublisher = InfluxDbPublisherConfiguration().apply {
dbName = "tracking"
url = "http://localhost:8086"
buildMetricName = "build"
}
@cdsap
cdsap / Filtering.kt
Created August 17, 2019 10:01
Filtering
filter {
tasks {
excludes = arrayOf("preDebugBuild", "processDebugResources")
}
modules {
excludes = arrayOf(":app")
}
threshold {
minExecutionTime = 10
}
@cdsap
cdsap / Publisher.kt
Created August 17, 2019 09:51
Publisher
interface Publisher {
fun publish(report: ExecutionReport)
}
@cdsap
cdsap / switches.csv
Last active August 20, 2019 09:25
Swtiches
Switches
buildCache configurationOnDemand
parallel continueOnFailure
offline rerunTasks
buildScan daemon
refreshDependencies dryRun
@cdsap
cdsap / fields.csv
Last active August 17, 2019 09:39
Fields
Properties
cpuCount osVersion maxWorkers
javaRuntime javaVmName javaXmsBytes
javaXmxBytes javaMaxPermSize totalRamAvailableBytes
locale username publicIp
gradleVersion cacheMode cachePushEnabled
cacheUrl cacheHit cacheMiss
cacheStore gitBranch gitUser