This file contains hidden or 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
class Person { | |
String name | |
Person parent | |
static belongsTo = [ supervisor: Person ] | |
static mappedBy = [ supervisor: "none", parent: "none" ] | |
static constraints = { supervisor nullable: true } | |
} |
This file contains hidden or 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
demonstration $ git clone [email protected]:solaechea/SampleMicronautClientApp.git | |
Cloning into 'SampleMicronautClientApp'... | |
remote: Enumerating objects: 109, done. | |
remote: Counting objects: 100% (109/109), done. | |
remote: Compressing objects: 100% (79/79), done. | |
remote: Total 109 (delta 13), reused 109 (delta 13), pack-reused 0 | |
Receiving objects: 100% (109/109), 800.58 KiB | 3.79 MiB/s, done. | |
Resolving deltas: 100% (13/13), done. | |
demonstration $ | |
demonstration $ cd SampleMicronautClientApp |
This file contains hidden or 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
def resp = execution.getVariable("jsonResponse") | |
if (!resp.success) { | |
logWarn("$resp.statusCode and error $resp.errorString") | |
} else { | |
def list = resp.content.clusterIds | |
logWarn("$list") | |
} | |
} finally { | |
execution.setVariable("clusterNames", clusterNames ) |
This file contains hidden or 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
~ $ git clone [email protected]:jeffbrown/bassouat.git | |
Cloning into 'bassouat'... | |
remote: Enumerating objects: 107, done. | |
remote: Counting objects: 100% (107/107), done. | |
remote: Compressing objects: 100% (87/87), done. | |
remote: Total 107 (delta 10), reused 107 (delta 10), pack-reused 0 | |
Receiving objects: 100% (107/107), 627.87 KiB | 2.24 MiB/s, done. | |
Resolving deltas: 100% (10/10), done. | |
~ $ | |
~ $ cd bassouat |
This file contains hidden or 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
~ $ cat demo.groovy | |
def arr = [[places:[[city:'New York', states:'Texas'], | |
[city:'Chicago', states:'Alaska']], | |
foods: [[drinks:'Soda', snack:'Fries'], | |
[drinks:'Milk', snack: 'Cereals']],foods: [[drinks:'Soda', snack:'Fries'], [drinks:'Milk', snack: 'Cereals']], | |
places:[[city:'New York', states:'Montana'], [city:'Austin', states:'Alaska']]]] | |
println arr[0]['places'] | |
println arr[0].places |
This file contains hidden or 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
~ $ groovy -v | |
Groovy Version: 3.0.8 JVM: 11.0.2 Vendor: Oracle Corporation OS: Mac OS X | |
~ $ groovy -e "println new Date().format('yyyy')" | |
2022 |
This file contains hidden or 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
I am not setup to validate this in Jenkins but instead of this: | |
def parameter_list = [ | |
choice(name: 'BAUDRATE', | |
choices: ['9600', '115200'], | |
description: 'Baud rate of the device.'), | |
] | |
return parameters(parameter_list) |
This file contains hidden or 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
String input = 'funnyplace' | |
String result = null | |
switch(input) { | |
case 'listed': | |
result = 'Not_listed' | |
break | |
case ~/fun.*place/: | |
result = 'FunPlace' |
This file contains hidden or 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
requestscope (master)$ cat src/main/java/requestscope/Helper.java | |
package requestscope; | |
import io.micronaut.runtime.http.scope.RequestScope; | |
@RequestScope | |
public class Helper { | |
public int getTheAnswer() { return 42; } | |
} |
This file contains hidden or 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
Grails Framework | |
Individual Contributor License Agreement | |
By signing below, you accept and agree to the following terms and conditions for Your present and future Contributions submitted to OCI in connection with the Grails project. In return, OCI shall not use Your Contributions in a way that is contrary to the public benefit or inconsistent with the Apache License v. 2.0. Except for the license granted herein to OCI and recipients of software distributed by OCI, You reserve all right, title, and interest in and to Your Contributions. | |
1. Definitions. "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with OCI. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of |