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 org.apache.solr.common.* | |
| import org.apache.solr.client.solrj.* | |
| import org.apache.solr.client.solrj.impl.* | |
| import org.apache.solr.client.solrj.response.* | |
| basename = "apache-solr-3.5.0" | |
| baseurl = "http://ftp.jaist.ac.jp/pub/apache/lucene/solr/3.5.0" | |
| serverurl = "http://localhost:8983/solr" | |
| buildscript { |
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
| configurations { | |
| demo | |
| source | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { |
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 org.apache.solr.common.* | |
| import org.apache.solr.client.solrj.* | |
| import org.apache.solr.client.solrj.impl.* | |
| import org.apache.solr.client.solrj.response.* | |
| basename = "apache-solr-3.5.0" | |
| baseurl = "http://ftp.jaist.ac.jp/pub/apache/lucene/solr/3.5.0" | |
| serverurl = "http://localhost:8983/solr" | |
| buildscript { |
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 hoge(String... args) { | |
| args*.substring(args*.toList().transpose().findIndexOf{ it.unique().size() != 1 }) | |
| } | |
| hoge("12345", "67890", "12abc") |
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 fizzbuzz(from, to, list) { | |
| def i = 0 | |
| def dict = list.split{ i++ % 2 == 0 }.transpose() | |
| (from..to).each { | |
| n -> println "${n}: ${dict.inject(''){ s, v -> (n % v[0] == 0) ? s + v[1] : s }}" | |
| } | |
| } | |
| fizzbuzz(1, 100, [3, "Fizz", 5, "Buzz", 7, "Hoge"]) |
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
| configurations{ | |
| cobertura | |
| } | |
| dependencies { | |
| cobertura "net.sourceforge.cobertura:cobertura:1.9.4.1" | |
| } | |
| tmpDir = new File(buildDir, "tmp") |
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
| configurations { | |
| findbugs | |
| } | |
| dependencies { | |
| findbugs "com.google.code.findbugs:findbugs-ant:1.3.9" | |
| } | |
| findbugsOutputDirName = "findbugs" | |
| findbugsReportDir = new File(reportsDir, findbugsOutputDirName) |
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
| configurations { | |
| emma | |
| } | |
| dependencies { | |
| emma "emma:emma:2.1.5320" | |
| emma "emma:emma_ant:2.1.5320" | |
| } | |
| tmpDir = new File(buildDir, "tmp") |
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
| apply plugin: 'java' | |
| apply plugin: 'groovy' | |
| apply plugin: 'code-quality' | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| groovy 'org.codehaus.groovy:groovy:1.7.10' |
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 com.amazonaws.*; | |
| import com.amazonaws.auth.*; | |
| import com.amazonaws.services.ec2.*; | |
| import com.amazonaws.services.ec2.model.*; | |
| buildscript { | |
| repositories { mavenCentral() } | |
| dependencies { classpath 'com.amazonaws:aws-java-sdk:1.1.9' } | |
| } |
NewerOlder