Skip to content

Commit 68ea2fe

Browse files
authored
Merge pull request #21 from messente/travis
Release 4.4.0
2 parents 43a59c9 + 9b2df2b commit 68ea2fe

File tree

18 files changed

+518
-94
lines changed

18 files changed

+518
-94
lines changed

.github/workflows/maven.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
push:
4+
tags:
5+
- *
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Java
12+
uses: actions/setup-java@v4
13+
with:
14+
java-version: '11'
15+
distribution: 'temurin'
16+
17+
- name: Publish Artifacts
18+
env:
19+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
20+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
21+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.PGP_SECRET }}
22+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.PGP_PASSPHRASE }}
23+
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-configuration-cache --no-daemon

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ docs/WhatsAppLanguage.md
7373
docs/WhatsAppMedia.md
7474
docs/WhatsAppParameter.md
7575
docs/WhatsAppTemplate.md
76+
docs/WhatsAppText.md
7677
git_push.sh
7778
gradle.properties
7879
gradle/wrapper/gradle-wrapper.jar
@@ -163,6 +164,7 @@ src/main/java/com/messente/api/WhatsAppLanguage.java
163164
src/main/java/com/messente/api/WhatsAppMedia.java
164165
src/main/java/com/messente/api/WhatsAppParameter.java
165166
src/main/java/com/messente/api/WhatsAppTemplate.java
167+
src/main/java/com/messente/api/WhatsAppText.java
166168
src/main/java/com/messente/auth/ApiKeyAuth.java
167169
src/main/java/com/messente/auth/Authentication.java
168170
src/main/java/com/messente/auth/HttpBasicAuth.java

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- Java artifact version: 4.3.0
4+
- Java artifact version: 4.4.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

@@ -13,7 +13,7 @@ Install Messente API library via Maven, Gradle, Ivy or manual build.
1313

1414
```groovy
1515
dependencies {
16-
implementation 'com.messente.api:messente-api:4.3.0'
16+
implementation 'com.messente.api:messente-api:4.4.0'
1717
}
1818
```
1919

@@ -23,14 +23,14 @@ dependencies {
2323
<dependency>
2424
<groupId>com.messente.api</groupId>
2525
<artifactId>messente-api</artifactId>
26-
<version>4.3.0</version>
26+
<version>4.4.0</version>
2727
</dependency>
2828
```
2929

3030
### Ivy
3131

3232
```xml
33-
<dependency org='com.messente.api' name='messente-api' rev='4.3.0'/>
33+
<dependency org='com.messente.api' name='messente-api' rev='4.4.0'/>
3434
```
3535

3636
### Manual Build
@@ -43,7 +43,7 @@ mvn clean package
4343

4444
Install
4545

46-
- `target/messente-api-4.3.0.jar`
46+
- `target/messente-api-4.4.0.jar`
4747
- `target/lib/*.jar`
4848

4949
## Features

api/openapi.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,6 +2218,8 @@ components:
22182218
type: integer
22192219
template:
22202220
$ref: '#/components/schemas/WhatsAppTemplate'
2221+
text:
2222+
$ref: '#/components/schemas/WhatsAppText'
22212223
channel:
22222224
default: whatsapp
22232225
description: The channel used to deliver the message
@@ -2418,9 +2420,29 @@ components:
24182420
$ref: '#/components/schemas/WhatsAppMedia'
24192421
video:
24202422
$ref: '#/components/schemas/WhatsAppMedia'
2423+
coupon_code:
2424+
description: A coupon code.
2425+
type: string
2426+
payload:
2427+
description: A payload.
2428+
type: string
24212429
required:
24222430
- type
24232431
type: object
2432+
WhatsAppText:
2433+
description: A text
2434+
properties:
2435+
preview_url:
2436+
default: true
2437+
description: Whether to display link preview if the message contains a hyperlink
2438+
type: boolean
2439+
body:
2440+
description: "Plaintext content for WhatsApp, can contain URLs, emojis and\
2441+
\ formatting"
2442+
type: string
2443+
required:
2444+
- body
2445+
type: object
24242446
ErrorCodeOmnichannel:
24252447
description: |-
24262448
Matches the following error title.

build.gradle

Lines changed: 30 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ buildscript {
1111

1212
plugins {
1313
id "java-library"
14-
id "maven-publish"
15-
id "signing"
16-
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
14+
id "com.vanniktech.maven.publish" version "0.30.0"
15+
1716
}
1817

1918
apply plugin: 'idea'
@@ -22,7 +21,7 @@ apply plugin: 'java'
2221
apply plugin: 'com.diffplug.spotless'
2322

2423
group = 'com.messente.api'
25-
version = '4.3.0'
24+
version = '4.4.0'
2625

2726
ext {
2827
jakarta_annotation_version = "1.3.5"
@@ -45,58 +44,38 @@ dependencies {
4544
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
4645
}
4746

48-
publishing {
49-
publications {
50-
mavenJava(MavenPublication) {
51-
from components.java
52-
artifactId = 'messente-api'
53-
54-
pom {
55-
name = "messente-api"
56-
description = "Messente API - Connecting Services to People"
57-
url = "https://github.com/messente/messente-api-java"
58-
inceptionYear = "2019"
59-
licenses {
60-
license {
61-
name = "The Apache Software License, Version 2.0"
62-
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
63-
distribution = "repo"
64-
}
65-
}
66-
developers {
67-
developer {
68-
id = "messente"
69-
name = "Messente Communications OU"
70-
71-
}
72-
}
73-
scm {
74-
connection = "scm:https://github.com/messente/messente-api-java.git"
75-
developerConnection = "scm:[email protected]:messente/messente-api-java.git"
76-
url = "https://github.com/messente/messente-api-java"
77-
}
47+
import com.vanniktech.maven.publish.SonatypeHost
48+
mavenPublishing {
49+
publishToMavenCentral(SonatypeHost.DEFAULT)
50+
signAllPublications()
51+
52+
pom {
53+
name = "messente-api"
54+
description = "Messente API - Connecting Services to People"
55+
url = "https://github.com/messente/messente-api-java"
56+
inceptionYear = "2019"
57+
licenses {
58+
license {
59+
name = "The Apache Software License, Version 2.0"
60+
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
61+
distribution = "repo"
7862
}
7963
}
80-
}
81-
repositories {
82-
mavenCentral()
83-
}
84-
}
85-
86-
nexusPublishing {
87-
repositories {
88-
sonatype()
64+
developers {
65+
developer {
66+
id = "messente"
67+
name = "Messente Communications OU"
68+
69+
}
70+
}
71+
scm {
72+
connection = "scm:https://github.com/messente/messente-api-java.git"
73+
developerConnection = "scm:[email protected]:messente/messente-api-java.git"
74+
url = "https://github.com/messente/messente-api-java"
75+
}
8976
}
9077
}
9178

92-
def skipSigning = project.hasProperty('skipSigning')
93-
94-
// Configure signing only if skipSigning property is not set
95-
if (!skipSigning) {
96-
signing {
97-
sign publishing.publications.mavenJava
98-
}
99-
}
10079

10180
repositories {
10281
mavenCentral()
@@ -109,7 +88,6 @@ sourceSets {
10988
java {
11089
sourceCompatibility = JavaVersion.VERSION_1_8
11190
targetCompatibility = JavaVersion.VERSION_1_8
112-
withJavadocJar()
11391
withSourcesJar()
11492
}
11593

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.messente.api",
44
name := "messente-api",
5-
version := "4.3.0",
5+
version := "4.4.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/WhatsApp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ WhatsApp message content. Only one of \"text\", \"image\", \"document\" or \"a
1212
|**validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] |
1313
|**ttl** | **Integer** | After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \&quot;ttl\&quot; and \&quot;validity\&quot; can be used. | [optional] |
1414
|**template** | [**WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional] |
15+
|**text** | [**WhatsAppText**](WhatsAppText.md) | | [optional] |
1516
|**channel** | [**ChannelEnum**](#ChannelEnum) | The channel used to deliver the message | [optional] |
1617

1718

docs/WhatsAppParameter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Whatsapp component parameter.
1515
|**image** | [**WhatsAppMedia**](WhatsAppMedia.md) | | [optional] |
1616
|**document** | [**WhatsAppMedia**](WhatsAppMedia.md) | | [optional] |
1717
|**video** | [**WhatsAppMedia**](WhatsAppMedia.md) | | [optional] |
18+
|**couponCode** | **String** | A coupon code. | [optional] |
19+
|**payload** | **String** | A payload. | [optional] |
1820

1921

2022

docs/WhatsAppText.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# WhatsAppText
4+
5+
A text
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**previewUrl** | **Boolean** | Whether to display link preview if the message contains a hyperlink | [optional] |
12+
|**body** | **String** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting | |
13+
14+
15+

0 commit comments

Comments
 (0)