Skip to content

Commit 1d1cacb

Browse files
committed
build: publish release using travis
1 parent b69eae1 commit 1d1cacb

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

.travis.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ jdk:
55
- openjdk11
66

77
deploy:
8-
provider: pages
9-
skip_cleanup: true
10-
local_dir: build/docs
11-
github_token: $GITHUB_API_KEY
12-
on:
13-
branch: master
14-
jdk: openjdk8
8+
- provider: releases
9+
token: "$GITHUB_API_KEY"
10+
file: "build/libs/*.jar"
11+
edge: true
12+
on:
13+
branch: master
14+
tags: true
15+
jdk: openjdk11
16+
- provider: pages
17+
skip_cleanup: true
18+
local_dir: build/docs
19+
github_token: "$GITHUB_API_KEY"
20+
on:
21+
branch: master
22+
jdk: openjdk8

README.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Spring Legacy [![CI status](https://travis-ci.org/aburmeis/spring-legacy.svg)](https://travis-ci.org/aburmeis/spring-legacy/)
1+
Spring Legacy [![CI status](https://travis-ci.org/diergo/spring-legacy.svg)](https://travis-ci.org/aburmeis/spring-legacy/)
22
=============
33

44
When migrating a legacy project to dependency injection based on Spring you often need dependencies to be injected
@@ -28,25 +28,12 @@ Have a look into the [example](src/test/java/example/spring/SpringBeanInjectedLe
2828
[integration test](src/test/java/example/IntegrationTest.java).
2929

3030

31-
Dependency
31+
Dependency [![Release](https://jitpack.io/v/de.diergo/spring-legacy.svg)](https://jitpack.io/#de.diergo/spring-legacy)
3232
----------
3333

34-
To integrate the library in your project, use the following dependency:
35-
36-
**gradle:**
37-
38-
```gradle
39-
compile 'diergo:spring-legacy:1.0.0'
40-
```
41-
42-
**maven:**
43-
```xml
44-
<dependency>
45-
<groupId>diergo</groupId>
46-
<artifactId>spring-legacy</artifactId>
47-
<version>1.0.0</version>
48-
</dependency>
49-
```
34+
To integrate the library in your project, add the artifact `spring-legacy` of group `de.diergo` to your Java dependency
35+
management. At [JitPack](https://jitpack.io/#de.diergo/spring-legacy) you can find examples for Gradle and Maven.
36+
The library has no external dependencies.
5037

5138
The library has no external dependencies except [Spring Framework 5](https://spring.io/projects/spring-framework) (spring-context 5.1.0.RELEASE).
5239
For the release notes, have a look at the [change log](CHANGELOG.md).

jitpack.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jdk:
2+
- openjdk11
3+
install:
4+
- ./gradlew clean assemble publishToMavenLocal

0 commit comments

Comments
 (0)