Skip to content

Commit

Permalink
Merge branch 'master' of github.com:larsid/soft-iot-dlt-load-monitor …
Browse files Browse the repository at this point in the history
…into refactor/log
  • Loading branch information
AllanCapistrano committed Jul 17, 2023
2 parents b947600 + b5ee212 commit f7c142d
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 11 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-bundle.yml
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
37 changes: 37 additions & 0 deletions .github/workflows/maven-publish.yml
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
94 changes: 83 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>

0 comments on commit f7c142d

Please sign in to comment.