Skip to content

Commit ac6e182

Browse files
authored
Merge pull request #41 from spdx/changedeploy
Update POM file for deployment to Maven
2 parents b9b0405 + e572d47 commit ac6e182

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
19+
- name: Set up JDK 11
2020
uses: actions/setup-java@v1
2121
with:
22-
java-version: 1.8
22+
java-version: 11
2323
- name: Build with Maven
2424
run: mvn -B package --file pom.xml

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ Most common use of the library would de-serialize an existing SPDX document usi
1212
The methods enterCriticalSection and leaveCritialSection are available to support multi-threaded applications. These methods serialize access to the model store for the specific SPDX document used for the SPDX model object.
1313

1414
## Getting Started
15+
The library is available in [Maven Central org.spdx:java-spdx-library](https://search.maven.org/artifact/org.spdx/java-spdx-library).
16+
17+
If you are using Maven, you can add the following dependency in your POM file:
18+
```
19+
<dependency>
20+
<groupId>org.spdx</groupId>
21+
<artifactId>java-spdx-library</artifactId>
22+
<version>(,1.0]</version>
23+
</dependency>
24+
```
25+
1526
There are a couple of static classes that help common usage scenarios:
1627

1728
- org.spdx.library.SPDXModelFactory supports the creation of specific model objects
@@ -26,4 +37,4 @@ To update Spdx-Java-Library, the following is a very brief checklist:
2637
4. Update unit tests
2738

2839
## Development Status
29-
Note: This library is in development and likely contains defects. Reviews, suggestions are welcome. Please enter an issue with any suggestions.
40+
Note: This library is mostly stable, but and contains some defects. Reviews, suggestions are welcome. Please enter an issue with any suggestions.

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
</organization>
3232
<scm>
3333
<url>https://github.com/spdx/Spdx-Java-Library</url>
34-
<connection>https://github.com/spdx/Spdx-Java-Library.git</connection>
35-
<developerConnection>https://github.com/spdx/Spdx-Java-Library.git</developerConnection>
34+
<connection>scm:git:git://github.com/spdx/Spdx-Java-Library.git</connection>
35+
<developerConnection>scm:git:git@github.com:/spdx/Spdx-Java-Library.git</developerConnection>
3636
</scm>
3737
<distributionManagement>
3838
<repository>
39-
<id>bintray-spdx-spdx-tools</id>
39+
<id>ossrh</id>
4040
<name>spdx-spdx-tools</name>
41-
<url>https://api.bintray.com/maven/spdx/spdx-tools/java-spdx-library/;publish=1</url>
41+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
4242
</repository>
4343
</distributionManagement>
4444
<properties>

0 commit comments

Comments
 (0)