Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b0b209

Browse files
committed
Added packagecloud.io as repository for maven packages.
Updated readme to include information about packaging. Removed conditional copy of `settings.xml` to .m2 folder - we now copy it always. Added Slack notifications on builds.
1 parent 8add8b1 commit 2b0b209

5 files changed

Lines changed: 63 additions & 10 deletions

File tree

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,15 @@ install:
4242

4343
script:
4444
- mvn test -B
45+
46+
deploy:
47+
provider: script
48+
script: mvn deploy -DskipTests
49+
skip_cleanup: true
50+
on:
51+
tags: true
52+
# when building from a release tag, use only first job "#xxx.1" to publish artifacts
53+
condition: "${TRAVIS_JOB_NUMBER} =~ \\.1$"
54+
55+
notifications:
56+
slack: $SLACK_API_TOKEN

.travis/maven_cfg.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,4 @@ else
1313
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
1414
fi
1515

16-
# Create the settings file with oracle server config.
17-
# If file already exists, Oracle dependencies were cached on previous build.
18-
if [ ! -f $MAVEN_CFG/.cached ]; then
19-
cp settings.xml $MAVEN_CFG/settings.xml
20-
touch $MAVEN_CFG/.cached
21-
else
22-
echo "Using cached maven settings..."
23-
fi
16+
cp settings.xml $MAVEN_CFG/settings.xml

.travis/settings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ under the License.
4646
</httpConfiguration>
4747
</configuration>
4848
</server>
49+
<server>
50+
<id>packagecloud-utPLSQL</id>
51+
<password>${env.PACKAGECLOUD_TOKEN}</password>
52+
</server>
4953
</servers>
5054

5155
</settings>

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,36 @@ This is a collection of classes, that makes easy to access the [utPLSQL v3](http
88
* Can gather results asynchronously from multiple reporters.
99

1010
## Downloading
11-
This is a Maven Library project, you can add on your Java project as a dependency. At the moment, it's not available in any public Maven repository, but you can clone it and install as a local dependency (follow the Contributing session).
11+
This is a Maven Library project, you can add on your Java project as a dependency.
1212

13+
The library is hosted on ![[packagecloud](https://packagecloud.io/utPLSQL/utPLSQL-java-api)](https://packagecloud.io/images/packagecloud-badge.png)
14+
15+
16+
You install this Maven repository by adding it to the <repositories> section of your pom.xml. No special plugins or extensions are required.
17+
18+
```xml
19+
<repositories>
20+
<repository>
21+
<id>utplsql-java-api</id>
22+
<url>
23+
https://packagecloud.io/utplsql/utplsql-java-api/maven2
24+
</url>
25+
<releases>
26+
<enabled>true</enabled>
27+
</releases>
28+
<snapshots>
29+
<enabled>true</enabled>
30+
</snapshots>
31+
</repository>
32+
</repositories>
33+
```
34+
35+
To use the java-api library, add this to the `<dependencies>` section of your `pom.xml`.
1336
```xml
1437
<dependency>
1538
<groupId>org.utplsql</groupId>
1639
<artifactId>java-api</artifactId>
17-
<version>3.0.4-SNAPSHOT</version>
40+
<version>3.0.4</version>
1841
<scope>compile</scope>
1942
</dependency>
2043
```

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,25 @@
5858
</pluginRepository>
5959
</pluginRepositories>
6060

61+
<build>
62+
<extensions>
63+
<extension>
64+
<groupId>io.packagecloud.maven.wagon</groupId>
65+
<artifactId>maven-packagecloud-wagon</artifactId>
66+
<version>0.0.6</version>
67+
</extension>
68+
</extensions>
69+
</build>
70+
71+
<distributionManagement>
72+
<repository>
73+
<id>packagecloud-utPLSQL</id>
74+
<url>packagecloud+https://packagecloud.io/utPLSQL/utPLSQL-java-api</url>
75+
</repository>
76+
<snapshotRepository>
77+
<id>packagecloud-utPLSQL</id>
78+
<url>packagecloud+https://packagecloud.io/utPLSQL/utPLSQL-java-api</url>
79+
</snapshotRepository>
80+
</distributionManagement>
81+
6182
</project>

0 commit comments

Comments
 (0)