Skip to content

Commit

Permalink
Specify JDK 17, use OSGi annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed May 7, 2024
1 parent 2e5fe34 commit a3fd6dc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 40 deletions.
47 changes: 12 additions & 35 deletions com.io7m.jxe.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,49 +25,26 @@
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.bundle</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.versioning</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.io7m.immutables.style</groupId>
<artifactId>com.io7m.immutables.style</artifactId>
<groupId>com.io7m.immutables-style</groupId>
<artifactId>com.io7m.immutables-style</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Check style -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>

<!-- Analyze semantic versioning -->
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-baseline-maven-plugin</artifactId>
</plugin>

<!-- Spot bugs -->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>

<!-- Produce OSGi manifest -->
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<configuration>
<bnd><![CDATA[
Export-Package: com.io7m.jxe.core
]]></bnd>
</configuration>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@
* Core types and functions.
*/

@Export
@Version("1.0.3")
package com.io7m.jxe.core;

import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
4 changes: 3 additions & 1 deletion com.io7m.jxe.core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
{
requires transitive java.xml;

requires static org.immutables.value;
requires static com.io7m.immutables.style;
requires static org.immutables.value;
requires static org.osgi.annotation.bundle;
requires static org.osgi.annotation.versioning;

requires org.slf4j;

Expand Down
20 changes: 16 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<properties>
<!-- Configuration. -->
<io7m.api.previousVersion>1.0.2</io7m.api.previousVersion>
<io7m.java.targetJavaVersion>21</io7m.java.targetJavaVersion>
<io7m.java.targetJavaVersion>17</io7m.java.targetJavaVersion>

<!-- Third-party dependencies. -->
<com.io7m.jxe.immutables.version>2.10.1</com.io7m.jxe.immutables.version>
Expand Down Expand Up @@ -105,16 +105,28 @@
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>com.io7m.immutables.style</groupId>
<artifactId>com.io7m.immutables.style</artifactId>
<version>0.0.1</version>
<groupId>com.io7m.immutables-style</groupId>
<artifactId>com.io7m.immutables-style</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.io7m.primogenitor</groupId>
<artifactId>com.io7m.primogenitor.support</artifactId>
<version>8.2.0</version>
</dependency>

<!-- Build metadata. -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.versioning</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.bundle</artifactId>
<version>2.0.0</version>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
Expand Down

0 comments on commit a3fd6dc

Please sign in to comment.