-
Groovy 2.4.0 was released during the last episode of the the podcast.
- Android support built-in + a Gradle plugin
- Methods moved from
Collection
toIterable
+ some other methods added, such assize()
- groovysh getting some love
-
Gradle 2.3 RC2 was released yesterday
- Improved Gradle Build Comparison plugin
-
Better Eclipse WTP integration
This file contains 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
//--------------------------------------------------------------------------------------- | |
// FILE: XComDownloadableContentInfo_RevivalProtocolFixes.uc | |
// | |
// Use the X2DownloadableContentInfo class to specify unique mod behavior when the | |
// player creates a new campaign or loads a saved game. | |
// | |
//--------------------------------------------------------------------------------------- | |
// Copyright (c) 2016 Firaxis Games, Inc. All rights reserved. | |
//--------------------------------------------------------------------------------------- |
This file contains 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
/** | |
* A script that parses an HTML page at a given URL and checks that none of the | |
* links point to non-existent pages. | |
*/ | |
@Grab('org.jsoup:jsoup:1.11.3') | |
import org.jsoup.Jsoup | |
if (args.size() != 1) { | |
println "Incorrect number of arguments!" | |
println() |
This file contains 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
ratpack { | |
... | |
handlers { | |
get { | |
... | |
} | |
prefix("blog") { | |
handler { | |
redirect 303, "http://blog.cacoethes.co.uk/${get(PathBinding).pastBinding}" |
This file contains 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
dependencies { | |
build "org.apache.maven.wagon:wagon-http:2.4" | |
} | |
plugins { | |
build ":release:2.2.0", ":rest-client-builder:1.0.3", { | |
export = false | |
exclude "wagon-http-lightweight" | |
} | |
} |
This file contains 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 2.0.4 | |
grails.project.dependency.resolution = { | |
// inherit Grails' default dependencies | |
inherits("global") { | |
// uncomment to disable ehcache | |
// excludes 'ehcache' | |
} | |
log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' | |
checksums true // Whether to verify checksums on resolve |
This file contains 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.project.class.dir = "target/classes" | |
grails.project.test.class.dir = "target/test-classes" | |
grails.project.test.reports.dir = "target/test-reports" | |
//grails.project.war.file = "target/${appName}-${appVersion}.war" | |
grails.project.dependency.resolution = { | |
// inherit Grails' default dependencies | |
inherits("global") { | |
// uncomment to disable ehcache | |
// excludes 'ehcache' | |
} |
This file contains 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
package org.example.config; | |
import org.springframework.cache.concurrent.ConcurrentMapCacheManager | |
@Configuration | |
public class ApplicationConfig { | |
@Bean public ConcurrentMapCacheManager cacheManager() { | |
return new ConcurrentMapCacheManager(); | |
} | |
} |
This file contains 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
package todosample | |
import grails.events.Listener | |
class DebugService { | |
@Listener | |
def packageWarStart() { | |
println "[DebugService] Packaging started" | |
} |
This file contains 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
// ... rest of Config.groovy content goes above this line to ensure that | |
// the JSON overrides existing settings. | |
ConfigLoader.addEntries(loadJson(fetchJson()), this) | |
def fetchJson() { return System.getenv("GRAILS_APP_CONFIG") } | |
def loadJson(content) { return content ? grails.converters.JSON.parse(content) : [:] } |
NewerOlder