You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Coverage with jacoco, merged from both win and linux builds in [codecov.io](https://codecov.io/)
22
22
* Target jdk compatibility check with [animal sniffer](http://mojo.codehaus.org/animal-sniffer/) (you may use newer jdk to build, and keep compatibility with older jdk)
*[groovy](http://www.gradle.org/docs/current/userguide/groovy_plugin.html) to support spock tests
@@ -232,16 +259,14 @@ Used gradle plugins:
232
259
*[jacoco](http://www.gradle.org/docs/current/userguide/jacoco_plugin.html) to build coverage report for coveralls
233
260
*[pmd](http://www.gradle.org/docs/current/userguide/pmd_plugin.html) to check code quality with [PMD](http://pmd.sourceforge.net/) tool
234
261
*[checkstyle](http://www.gradle.org/docs/current/userguide/checkstyle_plugin.html) to check code style rules with [checkstyle](http://checkstyle.sourceforge.net/index.html)
235
-
*[findbugs](http://www.gradle.org/docs/current/userguide/findbugs_plugin.html) to find potential bugs with [findbugs](http://findbugs.sourceforge.net/)
*[spotbugs](https://github.com/spotbugs/spotbugs-gradle-plugin) to find potential bugs with [spotbugs](https://spotbugs.github.io/)
263
+
*[o.github.gradle-nexus.publish-plugin](https://github.com/gradle-nexus/publish-plugin)to simplify maven central publication
237
264
*[com.github.ben-manes.versions](https://github.com/ben-manes/gradle-versions-plugin) to check dependencies versions updates
238
265
*[net.researchgate.release](https://github.com/researchgate/gradle-release) for release (see [article](http://www.sosaywecode.com/gradle-release-plugin/) for additional plugin details)
239
266
*[ru.vyarus.pom](https://github.com/xvik/gradle-pom-plugin) for simpler pom generation
240
267
*[ru.vyarus.java-lib](https://github.com/xvik/gradle-java-lib-plugin) to prepare java artifacts setup
241
268
*[ru.vyarus.github-info](https://github.com/xvik/gradle-github-info-plugin) to fill in github specific data
242
269
*[ru.vyarus.quality](https://github.com/xvik/gradle-quality-plugin) to configure quality plugins and provide advanced reporting
243
-
*[ru.vyarus.animalsniffer](https://github.com/xvik/gradle-animalsniffer-plugin) to verify jdk backwards compatibility when building on newer jdk
244
-
*[io.spring.dependency-management](https://github.com/xvik/gradle-animalsniffer-plugin) to use maven BOMs (plugin used instead of gradle native BOM's support as more correct)
When no signatures defined, no check will be performed.
285
-
286
296
### Quality tools
287
297
288
298
Quality tools are configured by [ru.vyarus.quality plugin](https://github.com/xvik/gradle-quality-plugin).
@@ -312,20 +322,6 @@ $ gradlew install
312
322
313
323
And validate generated pom file and jars (in local maven repository ~/.m2/repository/..).
314
324
315
-
NOTE: Release plugin requires access to git repository without credentials, so it's
316
-
better to allow storing credentials when using git console.
317
-
Windows users with sysgit 1.8.1 and up could use:
318
-
319
-
```bash
320
-
$ git config --global credential.helper wincred
321
-
```
322
-
323
-
To [avoid problems](https://github.com/townsfolk/gradle-release/issues/81).
324
-
325
-
Bintray and maven central badges are commented in readme - uncomment them (remove maven badge if not going to publish there)
326
-
327
-
Automatic maven central publication is impossible on first release, because package is not yet in jcentral (we will enable it after).
328
-
329
325
#### General release process
330
326
331
327
Update `CHANGELOG.md`.
@@ -346,54 +342,6 @@ During release, plugin will create tag (new github release appear) and update ve
346
342
You may want to create github release: release will only create tag. To create release go to github releases, click on tag and press 'edit'.
347
343
I usually use text from changelog as release message, but you may expand it with other release specific notes.
348
344
349
-
#### After first release
350
-
351
-
Github repository name and changelog file will be [automatically configured](https://github.com/xvik/gradle-github-info-plugin#comjfrogbintray)
352
-
for bintray plugin. If you renamed changelog file from CHANGELOG.md then you will have to [specify it's name](https://github.com/xvik/gradle-github-info-plugin#available-properties)
353
-
(or configure it manually on bintray package edit page).
354
-
Go to your bintray package page, click on 'readme' tab and select 'github page'.
355
-
Do the same on 'release notes' tab (to show CHANGELOG.md file).
356
-
357
-
After actual release press 'add to jcenter' button to request jcenter linking (required for maven central publication
358
-
and even if you don't want to sync to maven central, linking to jcenter will simplify library usage for end users).
359
-
360
-
After acceptance in jcenter (approve takes less than 1 day) do manual maven central synchronization in bintray ui.
361
-
362
-
Now automatic maven central publication could be enabled in project config `build.gradle`:
363
-
364
-
```
365
-
bintray {
366
-
...
367
-
mavenCentralSync {
368
-
sync = true
369
-
```
370
-
371
-
Note that maven publication requires files signing option active too (if you not choose it during project generation):
372
-
373
-
```
374
-
gpg {
375
-
sign = true
376
-
```
377
-
378
-
All future releases will publish to maven central automatically.
379
-
380
-
#### If release failed
381
-
382
-
Nothing bad could happen.
383
-
384
-
If bintray upload failed, you can always upload one more time.
385
-
If you uploaded bad version and want to re-release it, simply remove version files on bintray package version page and re-do release.
386
-
387
-
If release failed, but plugin already commit new version - you can release again from this state (no need to revert).
388
-
389
-
Release plugin changes only version in `gradle.properties` and creates git tag.
390
-
Version could be reverted manually (by correcting file) and git tag could be also removed like this:
0 commit comments