-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:larsid/soft-iot-dlt-load-monitor …
…into refactor/log
- Loading branch information
Showing
3 changed files
with
156 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build Bundle | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Building the bundle | ||
run: mvn clean install | ||
|
||
- name: Automatic Releases | ||
uses: marvinpinto/[email protected] | ||
with: | ||
repo_token: "${{ secrets.BUILD_BUNDLE_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
target/*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish Maven to Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Build settings.xml file | ||
uses: whelk-io/maven-settings-xml-action@v20 | ||
with: | ||
servers: > | ||
[ | ||
{ | ||
"id": "ossrh", | ||
"username": "${{secrets.MVN_USERNAME}}", | ||
"password": "${{secrets.MVN_PASSWORD}}" | ||
} | ||
] | ||
- name: Deploy to Maven Repository | ||
run: mvn clean deploy --no-transfer-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,42 +3,85 @@ | |
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>br.uefs.larsid.dlt.iot.soft</groupId> | ||
<groupId>io.github.larsid</groupId> | ||
<artifactId>SOFT-IoT-DLT-Load-Monitor</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>bundle</packaging> | ||
|
||
<name>SOFT-IoT-DLT-Load-Monitor</name> | ||
<description>SOFT-IoT-DLT-Load-Monitor OSGi blueprint bundle project.</description> | ||
<description>SOFT-IoT-DLT-Load-Monitor OSGi blueprint bundle project.</description> | ||
<url>https://github.com/larsid/soft-iot-dlt-load-monitor</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>MIT License</name> | ||
<url>http://www.opensource.org/licenses/mit-license.php</url> | ||
</license> | ||
</licenses> | ||
|
||
<developers> | ||
<developer> | ||
<name>Uellington Damasceno</name> | ||
<email>[email protected]</email> | ||
<organization>LARSID</organization> | ||
<organizationUrl>https://github.com/larsid/</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Allan Capistrano de Santana Santos</name> | ||
<email>[email protected]</email> | ||
<organization>LARSID</organization> | ||
<organizationUrl>https://github.com/larsid/</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
<scm> | ||
<connection>scm:git:git://github.com/larsid/soft-iot-dlt-load-monitor.git</connection> | ||
<developerConnection>scm:git:ssh://github.com:larsid/soft-iot-dlt-load-monitor.git</developerConnection> | ||
<url>http://github.com/larsid/soft-iot-dlt-load-monitor/tree/master</url> | ||
</scm> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<repositories> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
<id>ossrh-snapshots</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>br.uefs.larsid.dlt.iot.soft</groupId> | ||
<dependency> | ||
<groupId>io.github.larsid</groupId> | ||
<artifactId>SOFT-IoT-DLT-Client-Tangle</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>br.uefs.larsid.dlt.iot.soft</groupId> | ||
<groupId>io.github.larsid</groupId> | ||
<artifactId>SOFT-IoT-DLT-ID-Manager</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>br.ufba.dcc.wiser.soft_iot</groupId> | ||
<groupId>io.github.larsid</groupId> | ||
<artifactId>soft-iot-mapping-devices</artifactId> | ||
<version>1.0.0</version> | ||
<version>1.0-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>br.uefs.larsid.dlt.iot.soft</groupId> | ||
<groupId>io.github.larsid</groupId> | ||
<artifactId>SOFT-IoT-DLT-Auth</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
|
@@ -71,6 +114,35 @@ | |
<maxmem>256M</maxmem> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.7</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.5</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
<configuration> | ||
<skip>true</skip> | ||
<keyname>${env.GPG_KEYNAME}</keyname> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |