Skip to content

Commit

Permalink
Preparation for demo with commented code.
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav8494 committed Sep 21, 2015
1 parent 98d7827 commit d4993ce
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Declare files that will always have LF line endings on checkout.
*.java text eol=lf
*.scala text eol=lf
*.groovy text eol=lf
*.py text eol=lf
*.sh text eol=lf
*.bat text eol=crlf
*.prefs text eol=crlf
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gradle/
/bin/
/build/
.classpath
.project
.settings/
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
description = "Sample project to itnroduce Git, Gradle and CircleCI"
description = "Sample project to introduce Git, Gradle and CircleCI"

task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}

apply plugin: 'java'
//apply plugin: 'java'
//apply plugin: 'eclipse'

//repositories { mavenCentral() }

//dependencies {
// compile([
// 'commons-collections:commons-collections:3.2',
// 'joda-time:joda-time:2.6'
// ])
//
// testCompile([ 'junit:junit:4.+'])
//}
16 changes: 16 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Customize the test machine
#machine:
# java:
# version: oraclejdk7

## Customize dependencies
#dependencies:
# override:
# - ./gradlew compileTestJava

# we automatically cache and restore many dependencies between
# builds. If you need to, you can add custom paths to cache:
# cache_directories:
# - "~/.gradle"
# - "build"

11 changes: 11 additions & 0 deletions src/main/java/hello/Greeter.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
package hello;

//import org.joda.time.DateTime;

public class Greeter {

// private DateTime currentTime = new DateTime();

public String sayHello() {

return "Hello world!";
}

/*
public DateTime getGreeterTime() {
return this.currentTime;
}
*/
}

0 comments on commit d4993ce

Please sign in to comment.