Java modules
This commit is contained in:
parent
b97248058d
commit
a8a00430e6
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
13
telegrambots-abilities/src/main/java/module-info.java
Normal file
13
telegrambots-abilities/src/main/java/module-info.java
Normal 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;
|
||||
}
|
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -0,0 +1,5 @@
|
||||
module telegrambots.chat.session.bot {
|
||||
requires shiro.core;
|
||||
requires telegrambots;
|
||||
requires telegrambots.meta;
|
||||
}
|
@ -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>
|
||||
|
4
telegrambots-extensions/src/main/java/module-info.java
Normal file
4
telegrambots-extensions/src/main/java/module-info.java
Normal file
@ -0,0 +1,4 @@
|
||||
module telegrambotsextensions {
|
||||
requires telegrambots.meta;
|
||||
requires telegrambots;
|
||||
}
|
@ -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>
|
||||
|
40
telegrambots-meta/src/main/java/module-info.java
Normal file
40
telegrambots-meta/src/main/java/module-info.java
Normal 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;
|
||||
}
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
@ -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>
|
||||
|
26
telegrambots/src/main/java/module-info.java
Normal file
26
telegrambots/src/main/java/module-info.java
Normal 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;
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user