Fix maven

This commit is contained in:
Jacek Wolniewicz
2023-08-18 00:50:32 +02:00
parent 1bbef3b0ee
commit 71e354affb
6 changed files with 21 additions and 27 deletions

View File

@@ -9,17 +9,15 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<packaging>jar</packaging>
<dependencies> <properties>
<dependency> <maven.compiler.source>16</maven.compiler.source>
<groupId>com.google.protobuf</groupId> <maven.compiler.target>16</maven.compiler.target>
<artifactId>protobuf-java</artifactId> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version>3.8.0</version> </properties>
</dependency>
</dependencies>
<build> <build>
<sourceDirectory>target/generated-sources</sourceDirectory>
<plugins> <plugins>
<plugin> <plugin>
<groupId>kr.motd.maven</groupId> <groupId>kr.motd.maven</groupId>
@@ -45,11 +43,7 @@
<goal>run</goal> <goal>run</goal>
</goals> </goals>
<configuration> <configuration>
<addProtoSources>all</addProtoSources>
<includeMavenTypes>direct</includeMavenTypes> <includeMavenTypes>direct</includeMavenTypes>
<includeDirectories>
<include>src/main</include>
</includeDirectories>
<inputDirectories> <inputDirectories>
<include>src/main/proto</include> <include>src/main/proto</include>
</inputDirectories> </inputDirectories>

View File

@@ -6,12 +6,10 @@
<artifactId>TikTokLiveJava</artifactId> <artifactId>TikTokLiveJava</artifactId>
<groupId>io.github.jwdeveloper.tiktok</groupId> <groupId>io.github.jwdeveloper.tiktok</groupId>
<version>1.0.0</version> <version>1.0.0</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>Client</artifactId> <artifactId>Client</artifactId>
<packaging>jar</packaging>
<dependencies> <dependencies>
@@ -25,7 +23,7 @@
<dependency> <dependency>
<groupId>io.github.jwdeveloper.tiktok</groupId> <groupId>io.github.jwdeveloper.tiktok</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>1.0.0</version> <version>${project.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@@ -82,7 +82,7 @@ public class TikTokApiService {
} }
} }
public WebcastResponse fetchClientData() public WebcastResponse fetchClientData()
{ {
logger.info("Fetch ClientData"); logger.info("Fetch ClientData");
try { try {

View File

@@ -11,22 +11,16 @@
<artifactId>TestApplication</artifactId> <artifactId>TestApplication</artifactId>
<dependencies> <dependencies>
<dependency>
<groupId>io.github.jwdeveloper.tiktok</groupId>
<artifactId>Client</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>io.github.jwdeveloper.tiktok</groupId> <groupId>io.github.jwdeveloper.tiktok</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>1.0.0</version> <version>${project.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.github.jwdeveloper.tiktok</groupId> <groupId>io.github.jwdeveloper.tiktok</groupId>
<artifactId>Client</artifactId> <artifactId>Client</artifactId>
<version>1.0.0</version> <version>${project.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@@ -30,13 +30,13 @@
<dependency> <dependency>
<groupId>io.github.jwdeveloper.tiktok</groupId> <groupId>io.github.jwdeveloper.tiktok</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>1.0-SNAPSHOT</version> <version>${project.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.github.jwdeveloper.tiktok</groupId> <groupId>io.github.jwdeveloper.tiktok</groupId>
<artifactId>Client</artifactId> <artifactId>Client</artifactId>
<version>1.0-SNAPSHOT</version> <version>${project.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@@ -65,6 +65,8 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
@@ -75,6 +77,12 @@
<version>1.18.22</version> <version>1.18.22</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.8.0</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>