Hola mundo en Gradle

/** *@author Fer Carraro *@date 16-10-2020 */ import java.time.LocalDateTime task hola_mundo { doLast{ println 'Hola, mundo en Gradle!!' } doFirst{ println 'Gradle como en primero!!' } } task ciao_australia(dependsOn: hola_mundo){ println 'Ciao, Australia desde Gradle!!' } task conteo{ 2.times{ println it } } class A{ def msg(){ "FERNANDO".length() } } task get_length{ println "Cantidad de letras: "+new A().msg() } task get_fecha_hora{ def fecha_hora = LocalDateTime.now() println "Fecha y hora: $fecha_hora" }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.