Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bbobcik committed Oct 30, 2016
1 parent e541c02 commit 7b509e1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# auderis-gradle-tools
Small additions for Gradle build system
Small but useful additions for Gradle build system

## Changelog

### 1.0.0 Initial release
* Test support plugin introduced

## Test Support Plugin
The main idea is that a library-type project should have 3 parts:

* the library with production code (`src/main`)
* a module that facilitates unit testing of the project's objects in a client environment,
e.g. Hamcrest matchers (`src/test-support`)
* normal unit test code (`src/test`)

Of these 3 parts, the library itself and the test support module would be published as artifacts.
The test support is distinguished by having artifact filename "appendix" set to `test_support`.
For example, the produced artifacts of a "FooBar" project would be:

* Production: `foobar-1.0.0.jar`
* Test support: `foobar-test_support-1.0.0.jar`

Plugin usage

// build.gradle
buildscript {
// Define where to find the plugin module
}
apply plugin: 'cz.auderis.TestSupport'

dependencies {
...
testSupportCompile 'org.hamcrest:hamcrest-all:1.3'
...
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'groovy'
apply plugin: 'idea'

group 'cz.auderis'
version '1.0.0-SNAPSHOT'
version '1.0.0'

sourceCompatibility = '1.7'
targetCompatibility = '1.7'
Expand Down

0 comments on commit 7b509e1

Please sign in to comment.