@@ -31,99 +31,69 @@ git clone https://github.com/serverlessworkflow/sdk-java.git
31
31
mvn clean install
32
32
```
33
33
34
- Then to use it in your project pom.xml add :
34
+ To use it in your projects you can :
35
35
36
- * API dependency
36
+ #### Maven projects:
37
+
38
+ a) Add the following repository to your pom.xml ` repositories ` section:
39
+
40
+ ``` xml
41
+ <repository >
42
+ <id >oss.sonatype.org-snapshot</id >
43
+ <url >http://oss.sonatype.org/content/repositories/snapshots</url >
44
+ <releases >
45
+ <enabled >false</enabled >
46
+ </releases >
47
+ <snapshots >
48
+ <enabled >true</enabled >
49
+ </snapshots >
50
+ </repository >
51
+ ```
52
+
53
+ b) Add the following dependencies to your pom.xml ` dependencies ` section:
37
54
38
55
``` xml
39
56
<dependency >
40
57
<groupId >io.serverlessworkflow</groupId >
41
58
<artifactId >serverlessworkflow-api</artifactId >
42
59
<version >0.2-SNAPSHOT</version >
43
60
</dependency >
44
- ```
45
61
46
- * SPI dependency
47
-
48
- ``` xml
49
62
<dependency >
50
63
<groupId >io.serverlessworkflow</groupId >
51
64
<artifactId >serverlessworkflow-spi</artifactId >
52
65
<version >0.2-SNAPSHOT</version >
53
66
</dependency >
54
- ```
55
-
56
- * Validation dependency
57
67
58
- ``` xml
59
68
<dependency >
60
69
<groupId >io.serverlessworkflow</groupId >
61
70
<artifactId >serverlessworkflow-validation</artifactId >
62
71
<version >0.2-SNAPSHOT</version >
63
72
</dependency >
64
- ```
65
-
66
- * Diagram dependency
67
73
68
- ``` xml
69
74
<dependency >
70
75
<groupId >io.serverlessworkflow</groupId >
71
76
<artifactId >serverlessworkflow-diagram</artifactId >
72
77
<version >0.2-SNAPSHOT</version >
73
78
</dependency >
74
79
```
75
80
76
- #### Get dependencies from Nexus
81
+ #### Gradle projects:
77
82
78
- Our SNAPSHOT versions are published to the Sonatype repositories.
79
- Make sure you enable snapshots in your Maven settings.xml
80
- or you can specify in your pom.xml repositories section:
83
+ a) Add the following repositories to your build.gradle ` repositories ` section:
81
84
82
- ``` xml
83
- <repository >
84
- <id >oss.sonatype.org-snapshot</id >
85
- <url >http://oss.sonatype.org/content/repositories/snapshots</url >
86
- <releases >
87
- <enabled >false</enabled >
88
- </releases >
89
- <snapshots >
90
- <enabled >true</enabled >
91
- </snapshots >
92
- </repository >
93
- ```
94
-
95
- And use the dependencies:
96
-
97
- ``` xml
98
- <dependency >
99
- <groupId >io.serverlessworkflow</groupId >
100
- <artifactId >serverlessworkflow-api</artifactId >
101
- <version >0.2-SNAPSHOT</version >
102
- </dependency >
85
+ ``` text
86
+ maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
87
+ maven{ url "https://jitpack.io" }
103
88
```
104
89
105
- ``` xml
106
- <dependency >
107
- <groupId >io.serverlessworkflow</groupId >
108
- <artifactId >serverlessworkflow-spi</artifactId >
109
- <version >0.2-SNAPSHOT</version >
110
- </dependency >
111
- ```
90
+ b) Add the following dependencies to your build.gradle ` dependencies ` section:
112
91
113
- ``` xml
114
- <dependency >
115
- <groupId >io.serverlessworkflow</groupId >
116
- <artifactId >serverlessworkflow-validation</artifactId >
117
- <version >0.2-SNAPSHOT</version >
118
- </dependency >
119
- ```
120
-
121
- ``` xml
122
- <dependency >
123
- <groupId >io.serverlessworkflow</groupId >
124
- <artifactId >serverlessworkflow-diagram</artifactId >
125
- <version >0.2-SNAPSHOT</version >
126
- </dependency >
92
+ ``` text
93
+ implementation("io.serverlessworkflow:serverlessworkflow-api:0.2-SNAPSHOT")
94
+ implementation("io.serverlessworkflow:serverlessworkflow-spi:0.2-SNAPSHOT")
95
+ implementation("io.serverlessworkflow:serverlessworkflow-validation:0.2-SNAPSHOT")
96
+ implementation("io.serverlessworkflow:serverlessworkflow-diagram:0.2-SNAPSHOT")
127
97
```
128
98
129
99
### How to Use
0 commit comments