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
Feature: Hello World | |
Scenario: Say hello | |
Given I have a hello app with "Howdy" | |
When I ask it to say hi | |
Then it should answer with "Howdy World" |
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
apply plugin: 'groovy' | |
apply plugin: 'eclipse' | |
import java.util.Properties; | |
import com.googlecode.flyway.commandline.Main | |
import com.googlecode.flyway.core.Flyway | |
import com.googlecode.flyway.core.util.PropertiesUtils | |
repositories{ mavenCentral() } |
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 db.migration; | |
import com.googlecode.flyway.core.api.migration.jdbc.JdbcMigration; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
/** | |
* Example of a Groovy-based migration. | |
*/ | |
public class V1_0__Create_person_table implements JdbcMigration { | |
public void migrate(Connection connection) throws Exception { |
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
apply plugin: 'groovy' | |
apply plugin: 'eclipse' | |
repositories { | |
flatDir(dirs: file("lib")) | |
} | |
dependencies { | |
groovy localGroovy() | |
compile ":kyotocabinet:@jar" |
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
import kyotocabinet.*; | |
// create the object | |
DB db = new DB(); | |
// open the database | |
if (!db.open("casket.kch", DB.OWRITER | DB.OCREATE)){ | |
System.err.println("open error: " + db.error()); | |
} |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
"font_size": 18.0, | |
"highlight_modified_tabs": true, | |
"scroll_past_end": true | |
} |
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
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
sourceSets { | |
main { | |
java { srcDir 'src' } | |
resources { srcDir 'src' } | |
} | |
} |
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
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
repositories { | |
flatDir(dirs: file("lib")) | |
} | |
dependencies { | |
compile ":commons-lang:2.6" | |
} |
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
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
dependencies { | |
compile fileTree(dir: 'lib', include: '*.jar') | |
} |
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
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
eclipse { | |
pathVariables 'GRADLE_USER_HOME': gradle.gradleUserHomeDir | |
} | |
repositories { | |
mavenCentral() | |
} |