Skip to content

Commit

Permalink
README now in Markdown; new gmaven project
Browse files Browse the repository at this point in the history
  • Loading branch information
kousen committed May 31, 2012
1 parent 98b213f commit 3c82855
Show file tree
Hide file tree
Showing 8 changed files with 146 additions and 16 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Source code for [Making Java Groovy](http://manning.com/kousen) by Ken Kousen

Repo is organized into individual chapters. Each chapter
contains one or more projects, each with its own gradle
build file. Most have their own README files to describe
how to build and test, normally using Gradle.

As additional chapters are completed, their code will be
added here.

Please send any questions or comments to:

Ken Kousen ([email]([email protected]))
[Kousen IT, Inc.](http://www.kousenit.com)
[@kenkousen](http://twitter.com/kenkousen)
16 changes: 0 additions & 16 deletions README.txt

This file was deleted.

13 changes: 13 additions & 0 deletions ch04/gmaven-project/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Gradle
.gradle
.gradletasknamecache
build

# Maven
target

# Eclipse
.project
.classpath
.settings
bin
51 changes: 51 additions & 0 deletions ch04/gmaven-project/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated from archetype; please customize. -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>mjg</groupId>
<artifactId>gmaven-project</artifactId>
<name>gmaven-project project</name>
<version>1.0-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>org.codehaus.gmaven.runtime</groupId>
<artifactId>gmaven-runtime-1.8</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.4</version>
<configuration>
<providerSelection>1.8</providerSelection>
</configuration>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
15 changes: 15 additions & 0 deletions ch04/gmaven-project/src/main/groovy/mjg/gmaven/Example.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Generated from archetype; please customize.
//

package mjg.gmaven

/**
* Example Groovy class.
*/
class Example
{
def show() {
println 'Hello World'
}
}
15 changes: 15 additions & 0 deletions ch04/gmaven-project/src/main/groovy/mjg/gmaven/Helper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Generated from archetype; please customize.
//

package mjg.gmaven;

/**
* Example Java class.
*/
public class Helper
{
public void help(final Example example) {
example.show();
}
}
18 changes: 18 additions & 0 deletions ch04/gmaven-project/src/test/groovy/mjg/gmaven/ExampleTest.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// Generated from archetype; please customize.
//

package mjg.gmaven

import mjg.gmaven.Example

/**
* Tests for the {@link Example} class.
*/
class ExampleTest
extends GroovyTestCase
{
void testShow() {
new Example().show()
}
}
19 changes: 19 additions & 0 deletions ch04/gmaven-project/src/test/groovy/mjg/gmaven/HelperTest.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Generated from archetype; please customize.
//

package mjg.gmaven

import mjg.gmaven.Helper
import mjg.gmaven.Example

/**
* Tests for the {@link Helper} class.
*/
class HelperTest
extends GroovyTestCase
{
void testHelp() {
new Helper().help(new Example())
}
}

0 comments on commit 3c82855

Please sign in to comment.