Skip to content

Commit fb18a5d

Browse files
authored
Merge pull request #40 from robinst/modular-jar
Modular JAR: Require at least Java 9 and add module-info module descriptor
2 parents 9817818 + 9c00d0b commit fb18a5d

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
java: [1.8, 11, 17]
12+
java: [9, 11, 17]
1313
steps:
1414
- name: Checkout sources
1515
uses: actions/checkout@v2
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up JDK
3232
uses: actions/setup-java@v1
3333
with:
34-
java-version: 11
34+
java-version: 17
3535

3636
- name: Build with coverage
3737
run: mvn -B -Pcoverage clean test jacoco:report

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [0.11.0] - 2023-02-27
9+
### Changed
10+
- Modular JAR: Require at least Java 9 and add a module descriptor (module-info),
11+
remove no longer necessary `Automatic-Module-Name` header
12+
813
## [0.10.1] - 2022-12-23
914
### Changed
1015
- Bump maven plugin versions
@@ -76,6 +81,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7681
- Initial release!
7782

7883

84+
[0.11.0]: https://github.com/robinst/autolink-java/compare/autolink-0.10.1...autolink-0.11.0
7985
[0.10.1]: https://github.com/robinst/autolink-java/compare/autolink-0.10.0...autolink-0.10.1
8086
[0.10.0]: https://github.com/robinst/autolink-java/compare/autolink-0.9.0...autolink-0.10.0
8187
[0.9.0]: https://github.com/robinst/autolink-java/compare/autolink-0.8.0...autolink-0.9.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Thanks to [Rinku](https://github.com/vmg/rinku) for the inspiration.
3232
Usage
3333
-----
3434

35-
This library is supported on Java 8 or later. It works on Android
35+
This library is supported on Java 9 or later. It works on Android
3636
(minimum API level 19). It has no external dependencies.
3737

3838
Maven coordinates

pom.xml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,8 @@
4040
<artifactId>maven-compiler-plugin</artifactId>
4141
<version>3.10.1</version>
4242
<configuration>
43-
<source>7</source>
44-
<target>7</target>
45-
</configuration>
46-
</plugin>
47-
<plugin>
48-
<groupId>org.apache.maven.plugins</groupId>
49-
<artifactId>maven-jar-plugin</artifactId>
50-
<version>3.3.0</version>
51-
<configuration>
52-
<archive>
53-
<manifestEntries>
54-
<Automatic-Module-Name>org.nibor.autolink</Automatic-Module-Name>
55-
</manifestEntries>
56-
</archive>
43+
<source>9</source>
44+
<target>9</target>
5745
</configuration>
5846
</plugin>
5947
<plugin>
@@ -140,7 +128,7 @@
140128
<plugin>
141129
<groupId>org.jacoco</groupId>
142130
<artifactId>jacoco-maven-plugin</artifactId>
143-
<version>0.8.2</version>
131+
<version>0.8.8</version>
144132
<executions>
145133
<execution>
146134
<id>prepare-agent</id>

src/main/java/module-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module org.nibor.autolink {
2+
exports org.nibor.autolink;
3+
}

0 commit comments

Comments
 (0)