Skip to content

Instantly share code, notes, and snippets.

View ktuukkan's full-sized avatar

Kimmo Tuukkanen ktuukkan

View GitHub Profile
@ktuukkan
ktuukkan / maven-settings.xml
Last active September 20, 2018 13:11
Maven config for snapshot dependencies / Sonatype Nexus
<settings>
...
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
...
<profiles>
<profile>
<id>nexus</id>
<repositories>
/*
* ChunkedUDPDataReader.java
* Copyright (C) 2014 Kimmo Tuukkanen
*
* This file is part of Java Marine API.
* <http://ktuukkan.github.io/marine-api/>
*
* Java Marine API is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
@ktuukkan
ktuukkan / JsonMarshallers.groovy
Last active December 29, 2021 05:05
Custom Grails JSON marshalling
package example
import example.Book
import example.Author
import grails.converters.JSON
/**
* Probably the cleanest way to define custom JSON marshalling in Grails.
*
* Imagine Book and Author are domain classes with some typical fields.
*