@@ -22,38 +22,47 @@ From the [Ruby Pact website](https://github.com/realestate-com-au/pact):
22
22
* Twitter: [ @pact_up] ( https://twitter.com/pact_up )
23
23
* Google users group: https://groups.google.com/forum/#!forum/pact-support
24
24
25
- ## I Use Scala and Specs 2
25
+ ## Service Consumers
26
+
27
+ Pact-JVM has a number of ways you can write your service consumer tests.
28
+
29
+ ### I Use Scala and Specs 2
26
30
27
31
You want to look at: [ pact-jvm-consumer-specs2] ( pact-jvm-consumer-specs2 )
28
32
29
- ## I Use Java
33
+ ### I Use Java
30
34
31
35
You want to look at: [ pact-jvm-consumer-junit] ( pact-jvm-consumer-junit )
32
36
33
- ## I Use Groovy or Grails
37
+ ### I Use Groovy or Grails
34
38
35
39
You want to look at: [ pact-jvm-consumer-groovy] ( pact-jvm-consumer-groovy ) or [ pact-jvm-consumer-junit] ( pact-jvm-consumer-junit )
36
40
37
- ## I Use some other jvm language or test framework (clojure etc)
41
+ ### I Use some other jvm language or test framework (clojure etc)
38
42
39
43
You want to look at: [ Pact Consumer] ( pact-jvm-consumer )
40
44
41
- ## I am writing a provider and want to run pacts
45
+ ## Service Providers
46
+
47
+ Once you have run your consumer tests, you will have generated some Pact files. You can then verify your service providers
48
+ with these files.
49
+
50
+ ### I am writing a provider and want to verify pacts
42
51
43
52
You want to look at: [ pact sbt plugin] ( pact-jvm-provider-sbt )
44
53
45
- ## I want to run pacts but don't want to use sbt
54
+ ### I want to run pacts but don't want to use sbt
46
55
47
56
You want to look at: [ pact-jvm-provider] ( pact-jvm-provider )
48
57
49
- ## I Use Ruby
58
+ ### I Use Ruby
50
59
The pact-jvm libraries are pure jvm technologies and do not have any native dependencies.
51
60
52
61
However if you have a ruby provider, the json produced by this library is compatible with the ruby pact library.
53
62
54
63
You'll want to look at: [ pact] ( https://github.com/realestate-com-au/pact )
55
64
56
- ## I Use something completely different
65
+ ### I Use something completely different
57
66
58
67
There's a limit to how much we can help, however check out [ pact-jvm-server] ( pact-jvm-server )
59
68
@@ -62,7 +71,7 @@ There's a limit to how much we can help, however check out [pact-jvm-server](pac
62
71
You want to look at:
63
72
[ Pact Broker] ( https://github.com/bethesque/pact_broker )
64
73
65
- Which is a project that aims at providing tooling to coordinate pact generation and delivery between projects
74
+ Which is a project that aims at providing tooling to coordinate pact generation and delivery between projects.
66
75
67
76
## I want to contribute
68
77
@@ -72,16 +81,32 @@ Which is a project that aims at providing tooling to coordinate pact generation
72
81
4 . Push to the branch (` git push origin my-new-feature ` )
73
82
5 . Create new Pull Request
74
83
75
- You can publish pacts locally using:
84
+ ## Building the library
85
+
86
+ Most of pact-jvm is written in Scala. You can build it using SBT (the old way). We are moving the build to Gradle,
87
+ so you can build it with that too.
88
+
89
+ To build the libraries:
90
+
91
+ $ sbt clean test install
76
92
77
- ```
78
- sbt clean test publishLocal
79
- ```
93
+ or
94
+
95
+ $ ./gradlew clean build
96
+
97
+ You can publish pacts to your local maven repo using:
98
+
99
+ $ sbt clean test publishLocal
100
+
101
+ or
102
+
103
+ $ ~/.gradlew clean install
80
104
81
105
To publish to a nexus repo, change the url in project/Build.scala then run:
82
106
83
- ```
84
- sbt clean test publish
85
- ```
107
+ $ sbt clean test publish
108
+
109
+ or
110
+ $ ./gradlew clean check uploadArchives
86
111
87
112
You will need to be added to the nexus project to be able to do this.
0 commit comments