Java modules

This commit is contained in:
Andrea Cavalli 2022-04-09 02:42:41 +02:00
parent b97248058d
commit a8a00430e6
14 changed files with 146 additions and 7 deletions

View File

@ -65,7 +65,7 @@
<properties>
<java.version>11</java.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>

View File

@ -71,7 +71,7 @@
<properties>
<java.version>11</java.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
@ -249,6 +249,13 @@
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,13 @@
module telegrambots.abilities {
requires telegrambots;
requires telegrambots.meta;
requires com.google.common;
requires org.slf4j;
requires com.fasterxml.jackson.core;
requires com.fasterxml.jackson.databind;
requires mapdb;
requires org.apache.commons.lang3;
requires annotations;
requires org.apache.commons.io;
requires org.json;
}

View File

@ -13,6 +13,7 @@ import java.util.ResourceBundle;
import java.util.StringJoiner;
import java.util.function.Consumer;
import java.util.function.Predicate;
import org.telegram.telegrambots.meta.api.objects.payments.PreCheckoutQuery;
import static java.util.ResourceBundle.Control.FORMAT_PROPERTIES;
import static java.util.ResourceBundle.Control.getNoFallbackControl;

View File

@ -71,7 +71,7 @@
<properties>
<java.version>11</java.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
@ -240,6 +240,13 @@
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,5 @@
module telegrambots.chat.session.bot {
requires shiro.core;
requires telegrambots;
requires telegrambots.meta;
}

View File

@ -65,7 +65,7 @@
<properties>
<java.version>11</java.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
@ -224,6 +224,13 @@
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,4 @@
module telegrambotsextensions {
requires telegrambots.meta;
requires telegrambots;
}

View File

@ -65,7 +65,7 @@
<properties>
<java.version>11</java.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
@ -247,6 +247,13 @@
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,40 @@
module telegrambots.meta {
exports org.telegram.telegrambots.meta.api.objects;
exports org.telegram.telegrambots.meta;
exports org.telegram.telegrambots.meta.generics;
exports org.telegram.telegrambots.meta.exceptions;
exports org.telegram.telegrambots.meta.api.methods;
exports org.telegram.telegrambots.meta.api.methods.groupadministration;
exports org.telegram.telegrambots.meta.api.methods.send;
exports org.telegram.telegrambots.meta.api.methods.stickers;
exports org.telegram.telegrambots.meta.api.objects.media;
exports org.telegram.telegrambots.meta.api.methods.updatingmessages;
exports org.telegram.telegrambots.meta.api.methods.commands;
exports org.telegram.telegrambots.meta.api.methods.games;
exports org.telegram.telegrambots.meta.api.methods.polls;
exports org.telegram.telegrambots.meta.bots;
exports org.telegram.telegrambots.meta.updateshandlers;
exports org.telegram.telegrambots.meta.api.methods.updates;
exports org.telegram.telegrambots.meta.api.objects.chatmember;
exports org.telegram.telegrambots.meta.api.objects.replykeyboard;
exports org.telegram.telegrambots.meta.api.objects.payments;
exports org.telegram.telegrambots.meta.api.objects.extra;
exports org.telegram.telegrambots.meta.api.objects.commands;
exports org.telegram.telegrambots.meta.api.objects.games;
exports org.telegram.telegrambots.meta.api.objects.inlinequery;
exports org.telegram.telegrambots.meta.api.objects.passport;
exports org.telegram.telegrambots.meta.api.objects.polls;
exports org.telegram.telegrambots.meta.api.objects.stickers;
exports org.telegram.telegrambots.meta.api.objects.voicechat;
exports org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons;
exports org.telegram.telegrambots.meta.api.interfaces;
exports org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent;
exports org.telegram.telegrambots.meta.api.objects.inlinequery.result;
requires com.google.common;
requires lombok;
requires com.fasterxml.jackson.annotation;
requires com.fasterxml.jackson.core;
requires com.fasterxml.jackson.databind;
requires org.json;
requires org.slf4j;
}

View File

@ -65,7 +65,7 @@
<properties>
<java.version>11</java.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
@ -258,6 +258,13 @@
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,8 @@
module telegrambots.spring.boot.starter {
requires telegrambots.meta;
requires telegrambots;
requires org.slf4j;
requires spring.beans;
requires spring.boot.autoconfigure;
requires spring.context;
}

View File

@ -65,7 +65,7 @@
<properties>
<java.version>11</java.version>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
@ -340,6 +340,13 @@
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>

View File

@ -0,0 +1,26 @@
module telegrambots {
exports org.telegram.telegrambots.bots;
exports org.telegram.telegrambots.updatesreceivers;
exports org.telegram.telegrambots.util;
requires org.apache.httpcomponents.httpclient;
requires org.apache.httpcomponents.httpcore;
requires telegrambots.meta;
requires com.fasterxml.jackson.core;
requires com.fasterxml.jackson.databind;
requires lombok;
requires org.apache.httpcomponents.httpmime;
requires org.apache.commons.io;
requires org.slf4j;
requires org.json;
requires java.ws.rs;
requires grizzly.http.server;
requires grizzly.framework;
requires jersey.container.grizzly2.http;
requires jersey.media.json.jackson;
requires jersey.server;
requires org.apache.commons.compress;
requires jersey.common;
requires java.annotation;
requires com.google.common;
}