Awesome Java

Published: 2019-08-04, Updated: 2020-07-03

Exemplos

Comunicação IPC

Bibliotecas

JVM exe launcher para windows

Fazer attach em JVM

Jmx Console

Injeção de dependencias

Api rest para testes

Links

Annotation Processor

Embedded Postgres para testes

testImplementation("io.zonky.test:embedded-postgres:1.2.5")
testRuntimeOnly enforcedPlatform("io.zonky.test.postgres:embedded-postgres-binaries-bom:12.2.0")

Ferramenta para fazer releases

Especificando a versao que sera feito o release

./gradlew release -Prelease.releaseVersion=2.7.0

Configurando o gradle

confirmReleaseVersion.doLast {

	println "> upgrading docker-compose version=${project.version}"

	updateVersion("${project.projectDir}/docker-compose.yml", "(image:.*:)(.*)", "\$1${project.version}")

	def sout = new StringBuilder()
	def proc = ['git', 'commit', '-a', "-m [Gradle Release Plugin] - releasing '${project.version}'."].execute()
	proc.consumeProcessOutput(sout, sout)
	proc.waitForOrKill(3000)
	println "> $sout"

}

void updateVersion(f, pattern, replace){

	f = file(f)
	println "> updating version in: ${f}"
	if(!f.exists()){
		println "file ${f} not found"
		System.exit(-1)
	}
	f.write(f.text.replaceAll(pattern, replace))

}

demos commands, demo commands, java commands, java examples, java bookmarks


Spark Commands Como Instalar Ubuntu e Windows sem quebrar o bootloader

Comments