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
This demonstrates the SdkMan capability that I mentioned. I only recently | |
discovered it, and I like it. sdkman_auto_env=true is required in ~/.sdkman/etc/config | |
in order for this to work. | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % | |
brownj@Jeff-Brown-Unity meta % cat java11project/.sdkmanrc | |
java=11.0.24-librca | |
grails=5.3.6 | |
brownj@Jeff-Brown-Unity meta % |
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
falling $ sdk use java 21-zulu | |
Using java version 21-zulu in this shell. | |
falling $ | |
falling $ sdk use grails 5.3.6 | |
Using grails version 5.3.6 in this shell. | |
falling $ | |
falling $ grails -version | |
| Grails Version: 5.3.6 |
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
brownj@Jeff-Brown-Unity Downloads % unzip -p grails-plugin-sitemesh3-7.0.0-M1.jar META-INF/grails-plugin.xml | |
<plugin name='sitemesh3' version='7.0.0-SNAPSHOT' grailsVersion='7.0.0-SNAPSHOT > *'> | |
<type>org.sitemesh.grails.plugins.sitemesh3.Sitemesh3GrailsPlugin</type> | |
<authorEmail></authorEmail> | |
<developers>[[name:Scott Murphy]]</developers> | |
<author>Scott Murphy</author> | |
<documentation>https://github.com/codeconsole/grails-sitemesh3</documentation> | |
<profiles>[web]</profiles> | |
<description>Configures Grails to use SiteMesh 3 instead of SiteMesh 2</description> | |
<title>SiteMesh 3</title> |
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
$ [] sdk install grails 6.2.2 | |
We periodically need to update the local cache. Please run: | |
$ sdk update | |
Downloading: grails 6.2.2 | |
In progress... |
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
brownj@Jeff-Brown-Unity ~ % sdk use java 11.0.22-zulu | |
Using java version 11.0.22-zulu in this shell. | |
brownj@Jeff-Brown-Unity ~ % | |
brownj@Jeff-Brown-Unity ~ % sdk use grails 6.2.1 | |
Using grails version 6.2.1 in this shell. | |
brownj@Jeff-Brown-Unity ~ % | |
brownj@Jeff-Brown-Unity ~ % grails create-app --jdk=11 g621app | |
| Application created at /Users/brownj/g621app |
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
plugins { | |
id "groovy" | |
id "org.grails.grails-web" | |
id "org.grails.grails-gsp" | |
id "war" | |
id "idea" | |
id "com.bertramlabs.asset-pipeline" | |
id "application" | |
id "eclipse" | |
} |
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]:osscontributor/issue13506.git | |
Cloning into 'issue13506'... | |
remote: Enumerating objects: 119, done. | |
remote: Counting objects: 100% (119/119), done. | |
remote: Compressing objects: 100% (90/90), done. | |
remote: Total 119 (delta 17), reused 119 (delta 17), pack-reused 0 | |
Receiving objects: 100% (119/119), 803.60 KiB | 4.81 MiB/s, done. | |
Resolving deltas: 100% (17/17), done. | |
~ % | |
~ % |
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
brownj@dhcp5 ~ % git clone [email protected]:jeffbrown/demoforpuneet.git | |
Cloning into 'demoforpuneet'... | |
remote: Enumerating objects: 110, done. | |
remote: Counting objects: 100% (110/110), done. | |
remote: Compressing objects: 100% (84/84), done. | |
remote: Total 110 (delta 15), reused 110 (delta 15), pack-reused 0 | |
Receiving objects: 100% (110/110), 803.40 KiB | 3.42 MiB/s, done. | |
Resolving deltas: 100% (15/15), done. | |
brownj@dhcp5 ~ % | |
brownj@dhcp5 ~ % |
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 operation = env.operation | |
String components = env.components | |
String cmd = operation == 'Add' ? '--add_components' : '--remove_components' | |
sh """ | |
set +x | |
apt update | |
apt install -y python2 | |
apt install -y curl | |
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py |
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
import java.time.* | |
import static java.time.DayOfWeek.* | |
public class BusinessOperations { | |
List<DayOfWeek> weekendDays = [SUNDAY, SATURDAY] | |
LocalDate lastBusinessDay( LocalDate dateInMonth ) { | |
LocalDate lastDayOfMonth = dateInMonth.withDayOfMonth(dateInMonth.month.length(dateInMonth.leapYear)) | |
((lastDayOfMonth)..(lastDayOfMonth - 2)).find { |
NewerOlder