Skip to content

Commit

Permalink
Merge pull request #161 from gregmedd/bugfix/proto-import-paths
Browse files Browse the repository at this point in the history
Fixing import paths so generated headers work
  • Loading branch information
gregmedd authored May 24, 2024
2 parents 39d5934 + 5e6172e commit aef810b
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-github-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
settings-path: ${{ github.workspace }}

- name: Build with Maven
run: mvn -B package --file up-core-api/pom.xml
run: mvn -B package

- name: Publish maven package to GitHub Packages
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file up-core-api/pom.xml
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
# GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.PKG_PUSH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build and Test with Maven
run: mvn -B package --file up-core-api/pom.xml
run: mvn -B package
2 changes: 1 addition & 1 deletion .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
gpg-passphrase: GPG_PASSPHRASE

- name: Build and Publish to Apache Maven Central
run: mvn clean deploy --file up-core-api/pom.xml
run: mvn clean deploy
env:
OSSRH_USER: ${{ secrets.ORG_OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Stage to Nexus and Release to Maven central
run: |
mvn -B release:clean release:prepare -P release release:perform --file up-core-api/pom.xml
mvn -B release:clean release:prepare -P release release:perform
env:
OSSRH_USER: ${{ secrets.ORG_OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
Expand All @@ -44,7 +44,7 @@ jobs:

- if: cancelled() || failure()
run: |
mvn -B release:rollback --file up-core-api/pom.xml
mvn -B release:rollback
env:
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/uprotocol-spec.iml
/up-spec.iml
/up-core-api/target/
/target/
8 changes: 4 additions & 4 deletions up-core-api/pom.xml → pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<description>This project contains the built artifacts for core uProtocol services (uSubscription, uDiscovery, uTwin, etc..). Artifacts include language specific messages and client/server stubs</description>
<version>1.5.8-SNAPSHOT</version>
<packaging>jar</packaging>
<url>https://github.com/eclipse-uprotocol/uprotocol-core-api/</url>
<url>https://github.com/eclipse-uprotocol/up-spec/</url>


<licenses>
Expand Down Expand Up @@ -55,7 +55,7 @@
<scm>
<connection>scm:git:${project.scm.url}</connection>
<developerConnection>scm:git:${project.scm.url}</developerConnection>
<url>https://github.com/eclipse-uprotocol/uprotocol-core-api.git</url>
<url>https://github.com/eclipse-uprotocol/up-spec.git</url>
<tag>HEAD</tag>
</scm>

Expand Down Expand Up @@ -100,7 +100,7 @@
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<protoSourceRoot>${project.basedir}/uprotocol</protoSourceRoot>
<protoSourceRoot>${project.basedir}/up-core-api</protoSourceRoot>
</configuration>
</plugin>

Expand Down Expand Up @@ -277,4 +277,4 @@
</profile>
</profiles>

</project>
</project>
6 changes: 3 additions & 3 deletions up-core-api/uprotocol/core/udiscovery/v3/udiscovery.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ syntax = "proto3";

package uprotocol.core.udiscovery.v3;
import "google/protobuf/timestamp.proto";
import "uoptions.proto";
import "v1/uri.proto";
import "v1/ustatus.proto";
import "uprotocol/uoptions.proto";
import "uprotocol/v1/uri.proto";
import "uprotocol/v1/ustatus.proto";

option java_package = "org.eclipse.uprotocol.core.udiscovery.v3";
option java_outer_classname = "UDiscoveryProto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package uprotocol.core.usubscription.v3;

import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
import "v1/ustatus.proto";
import "v1/uri.proto";
import "uoptions.proto";
import "uprotocol/v1/ustatus.proto";
import "uprotocol/v1/uri.proto";
import "uprotocol/uoptions.proto";

option java_package = "org.eclipse.uprotocol.core.usubscription.v3";
option java_outer_classname = "USubscriptionProto";
Expand Down
8 changes: 4 additions & 4 deletions up-core-api/uprotocol/core/utwin/v2/utwin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ syntax = "proto3";

package uprotocol.core.utwin.v2;

import "uoptions.proto";
import "v1/ustatus.proto";
import "v1/uri.proto";
import "v1/umessage.proto";
import "uprotocol/uoptions.proto";
import "uprotocol/v1/ustatus.proto";
import "uprotocol/v1/uri.proto";
import "uprotocol/v1/umessage.proto";

option java_package = "org.eclipse.uprotocol.core.utwin.v2";
option java_outer_classname = "UTwinProto";
Expand Down
8 changes: 4 additions & 4 deletions up-core-api/uprotocol/v1/uattributes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ syntax = "proto3";

package uprotocol.v1;

import "v1/uri.proto";
import "v1/uuid.proto";
import "v1/ustatus.proto";
import "uoptions.proto";
import "uprotocol/v1/uri.proto";
import "uprotocol/v1/uuid.proto";
import "uprotocol/v1/ustatus.proto";
import "uprotocol/uoptions.proto";

option java_package = "org.eclipse.uprotocol.v1";
option java_outer_classname = "UAttributesProto";
Expand Down
2 changes: 1 addition & 1 deletion up-core-api/uprotocol/v1/umessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ syntax = "proto3";

package uprotocol.v1;

import "v1/uattributes.proto";
import "uprotocol/v1/uattributes.proto";

option java_package = "org.eclipse.uprotocol.v1";
option java_outer_classname = "UMessageProto";
Expand Down

0 comments on commit aef810b

Please sign in to comment.