Skip to content

Commit 07e70b6

Browse files
authored
SWI-7141 Fix Deploy Workflow (#170)
* SWI-7141 Fix Deploy Workflow * remove artifactVersion
1 parent 5732b56 commit 07e70b6

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
release:
44
types:
55
- published
6+
7+
env:
8+
OPENAPI_GENERATOR_VERSION: 7.10.0
9+
610
jobs:
711
deploy_pre_release:
812
name: Deploy OpenAPI Generator Client Pre-Release to Maven
@@ -63,7 +67,7 @@ jobs:
6367
- name: Build SDK
6468
uses: Bandwidth/generate-sdk-action@v4.0.0
6569
with:
66-
openapi-generator-version: 7.10.0
70+
openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }}
6771
language: java
6872
additional-properties: --additional-properties=artifactVersion=$RELEASE_VERSION
6973

@@ -144,7 +148,7 @@ jobs:
144148
- name: Build SDK
145149
uses: Bandwidth/generate-sdk-action@v4.0.0
146150
with:
147-
openapi-generator-version: 7.9.0
151+
openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }}
148152
language: java
149153
additional-properties: --additional-properties=artifactVersion=$RELEASE_VERSION
150154

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>com.bandwidth.sdk</groupId>
4343
<artifactId>bandwidth-sdk</artifactId>
44-
<version>1.0.0-dev</version>
44+
<version>1.0.0</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "com.bandwidth.sdk:bandwidth-sdk:1.0.0-dev"
60+
implementation "com.bandwidth.sdk:bandwidth-sdk:1.0.0"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/bandwidth-sdk-1.0.0-dev.jar`
74+
* `target/bandwidth-sdk-1.0.0.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.bandwidth.sdk'
7-
version = '1.0.0-dev'
7+
version = '1.0.0'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.bandwidth.sdk",
44
name := "bandwidth-sdk",
5-
version := "1.0.0-dev",
5+
version := "1.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

openapi-config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
artifactId: bandwidth-sdk
2-
artifactVersion: 1.0.0-dev
32
artifactDescription: The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
43
artifactUrl: https://github.com/Bandwidth/java-sdk
54
developerName: Bandwidth Support

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>bandwidth-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>bandwidth-sdk</name>
8-
<version>1.0.0-dev</version>
8+
<version>1.0.0</version>
99
<url>https://github.com/Bandwidth/java-sdk</url>
1010
<description>The official client SDK for Bandwidth&#39;s Voice, Messaging, MFA, and WebRTC APIs</description>
1111
<scm>

src/main/java/com/bandwidth/sdk/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private void init() {
141141
json = new JSON();
142142

143143
// Set default User-Agent.
144-
setUserAgent("OpenAPI-Generator/1.0.0-dev/java");
144+
setUserAgent("OpenAPI-Generator/1.0.0/java");
145145

146146
authentications = new HashMap<String, Authentication>();
147147
}

src/main/java/com/bandwidth/sdk/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0")
1717
public class Configuration {
18-
public static final String VERSION = "1.0.0-dev";
18+
public static final String VERSION = "1.0.0";
1919

2020
private static ApiClient defaultApiClient = new ApiClient();
2121

0 commit comments

Comments
 (0)