Skip to content

Commit

Permalink
Add automatic module name for Gradle compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
namannigam committed Mar 12, 2024
1 parent 505efe7 commit 5e5491a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ If you run into trouble with local tests, use:
mvn package -Dmaven.test.skip=true
```

When required within a modular Java application, use the directive:

```java
requires twilio;
```

### Test your installation

Try sending yourself an SMS message, like this:
Expand Down
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,17 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>twilio</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
Expand Down

0 comments on commit 5e5491a

Please sign in to comment.