Maven
This commit is contained in:
parent
b9b00a57f4
commit
07593bdaaa
29 changed files with 95 additions and 13 deletions
|
@ -1,16 +1,19 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="JAVA_MODULE" version="4">
|
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||||
<exclude-output />
|
<output url="file://$MODULE_DIR$/target/classes" />
|
||||||
|
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/out" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="gson-2.8.5" level="project" />
|
<orderEntry type="library" name="Maven: org.xerial:sqlite-jdbc:3.23.1" level="project" />
|
||||||
<orderEntry type="library" name="sqlite-jdbc-3.23.1" level="project" />
|
<orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.5" level="project" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
|
@ -39,5 +39,5 @@ Used libraries:
|
||||||
- [ ] Docker(+compose) package
|
- [ ] Docker(+compose) package
|
||||||
- [ ] Flood tracker
|
- [ ] Flood tracker
|
||||||
- [ ] Deep configuration files validation
|
- [ ] Deep configuration files validation
|
||||||
- [ ] Maven or Gradle build
|
- [x] Maven ~~or Gradle~~ build
|
||||||
- [ ] ncurses-like or/and GUI configuration files (server/chanel setting) editor
|
- [ ] ncurses-like or/and GUI configuration files (server/chanel setting) editor
|
71
pom.xml
Normal file
71
pom.xml
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>loper</groupId>
|
||||||
|
<artifactId>InnaIrcBot</artifactId>
|
||||||
|
<version>0.1-SNAPSHOT</version>
|
||||||
|
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>InnaIrcBot</name>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.xerial</groupId>
|
||||||
|
<artifactId>sqlite-jdbc</artifactId>
|
||||||
|
<version>3.23.1</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.code.gson</groupId>
|
||||||
|
<artifactId>gson</artifactId>
|
||||||
|
<version>2.8.5</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<build><plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.1</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.8</source>
|
||||||
|
<target>1.8</target>
|
||||||
|
<excludes>
|
||||||
|
<exclude>
|
||||||
|
**/Temporary/*
|
||||||
|
</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<version>2.5.3</version>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>
|
||||||
|
InnaIrcBot.BotStart
|
||||||
|
</mainClass>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
<descriptorRefs>
|
||||||
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
|
</descriptorRefs>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>make-assembly</id> <!-- this is used for inheritance merges -->
|
||||||
|
<phase>package</phase> <!-- bind to the packaging phase -->
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins></build>
|
||||||
|
|
||||||
|
</project>
|
Binary file not shown.
Binary file not shown.
|
@ -6,9 +6,7 @@
|
||||||
* */
|
* */
|
||||||
package InnaIrcBot;
|
package InnaIrcBot;
|
||||||
|
|
||||||
import InnaIrcBot.Config.StorageFile;
|
|
||||||
import InnaIrcBot.Config.StorageReader;
|
import InnaIrcBot.Config.StorageReader;
|
||||||
import InnaIrcBot.ProvidersConsumers.DataProvider;
|
|
||||||
|
|
||||||
public class BotStart {
|
public class BotStart {
|
||||||
//TODO: Steam link, flood control, kikbana
|
//TODO: Steam link, flood control, kikbana
|
||||||
|
@ -33,8 +31,8 @@ public class BotStart {
|
||||||
else {
|
else {
|
||||||
System.out.println("Usage:\n"
|
System.out.println("Usage:\n"
|
||||||
+" \t-c, --configuration <name.config> [<name1.config> ...]\tRead Config\n"
|
+" \t-c, --configuration <name.config> [<name1.config> ...]\tRead Config\n"
|
||||||
+"\t-g, --generate\t[name.config]\t\t\t\t\t\t\tGenerate Config\n"
|
+"\t-g, --generate\t[name.config]\t\t\t\tGenerate Config\n"
|
||||||
+"\t-v, --version\t\t\t\t\t\t\t\t\t\t\tGet application version");
|
+"\t-v, --version\t\t\t\t\t\tGet application version");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,3 +1,5 @@
|
||||||
|
package Temporary;
|
||||||
|
|
||||||
import InnaIrcBot.LogDriver.BotDriver;
|
import InnaIrcBot.LogDriver.BotDriver;
|
||||||
import InnaIrcBot.LogDriver.Worker;
|
import InnaIrcBot.LogDriver.Worker;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
package Temporary;
|
||||||
|
|
||||||
import InnaIrcBot.ReconnectControl;
|
import InnaIrcBot.ReconnectControl;
|
||||||
import com.sun.org.apache.regexp.internal.RE;
|
import com.sun.org.apache.regexp.internal.RE;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
package Temporary;
|
||||||
|
|
||||||
import InnaIrcBot.Config.StorageFile;
|
import InnaIrcBot.Config.StorageFile;
|
||||||
|
|
||||||
public class StorageFileTest {
|
public class StorageFileTest {
|
|
@ -1,3 +1,5 @@
|
||||||
|
package Temporary;
|
||||||
|
|
||||||
import InnaIrcBot.Config.StorageFile;
|
import InnaIrcBot.Config.StorageFile;
|
||||||
import InnaIrcBot.Config.StorageReader;
|
import InnaIrcBot.Config.StorageReader;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
package Temporary;
|
||||||
|
|
||||||
import InnaIrcBot.Commanders.JoinFloodHandler;
|
import InnaIrcBot.Commanders.JoinFloodHandler;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
Loading…
Reference in a new issue