Skip to content

Commit f883409

Browse files
committed
Modular JAR: Require at least Java 9 and add module-info module descriptor
Also remove no longer necessary `Automatic-Module-Name` header. Fixes #39.
1 parent 9817818 commit f883409

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

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

pom.xml

Lines changed: 2 additions & 14 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>

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)