-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README now in Markdown; new gmaven project
- Loading branch information
Showing
8 changed files
with
146 additions
and
16 deletions.
There are no files selected for viewing
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
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) |
This file was deleted.
Oops, something went wrong.
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
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 |
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
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
15
ch04/gmaven-project/src/main/groovy/mjg/gmaven/Example.groovy
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
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
15
ch04/gmaven-project/src/main/groovy/mjg/gmaven/Helper.java
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
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
18
ch04/gmaven-project/src/test/groovy/mjg/gmaven/ExampleTest.groovy
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
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
19
ch04/gmaven-project/src/test/groovy/mjg/gmaven/HelperTest.groovy
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
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()) | ||
} | ||
} |