Skip to content

Instantly share code, notes, and snippets.

Avatar

Joshua Davis joshuadavis

  • New York City
View GitHub Profile
@ethankhall
ethankhall / ivyConverter.groovy
Created Nov 8, 2013
Ivy to Gradle dependency converter
View ivyConverter.groovy
println("dependencies {")
def ivyModule = new XmlParser().parse(new File('ivy.xml'))
ivyModule.dependencies.dependency.each {
def scope = it.@conf?.contains("test") ? "testCompile" : "compile"
println("\t$scope '${it.@org}:${it.@name}:${it.@rev}'")
}
println("}")
@chilicat
chilicat / disable-findbugs.gradle
Last active Jan 18, 2018
Gradle Findbugs: This gradle script will disable findbugs until "findbugs" task is in the task graph. This allows to skip the findbugs verification for cases it is not needed.
View disable-findbugs.gradle
allprojects {
// Marker Task to enable findbugs.
task findbugs(
group: "Verification",
description: """Marker task to enabled findbugs. Findbugs is by default
disabled. E.g. ( ./gradlew findbugs build )"""
)
}
subprojects {
@mojavelinux
mojavelinux / StartupBean.java
Created Oct 20, 2010
A sample CDI extension for eagerly instantiating @ApplicationScoped beans annotated @startup
View StartupBean.java
@ApplicationScoped
@Startup
public class StartupBean
{
@PostConstruct
public void onStartup()
{
System.out.println("Application starting up.");
}
}
You can’t perform that action at this time.