diff --git a/foxogram-api/build.gradle b/foxogram-api/build.gradle index 8321dd7..b6766d1 100644 --- a/foxogram-api/build.gradle +++ b/foxogram-api/build.gradle @@ -17,11 +17,13 @@ repositories { dependencies { implementation project(path: ':foxogram-common') + implementation 'org.jetbrains:annotations:26.0.1' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-mail' implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-validation' + implementation 'com.bucket4j:bucket4j_jdk17-core:8.14.0' implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0' compileOnly 'org.projectlombok:lombok:1.18.36' annotationProcessor 'org.projectlombok:lombok:1.18.36' diff --git a/foxogram-common/src/main/java/su/foxogram/configs/OpenAPIConfig.java b/foxogram-api/src/main/java/su/foxogram/configs/OpenAPIConfig.java similarity index 100% rename from foxogram-common/src/main/java/su/foxogram/configs/OpenAPIConfig.java rename to foxogram-api/src/main/java/su/foxogram/configs/OpenAPIConfig.java diff --git a/foxogram-common/src/main/java/su/foxogram/configs/WebConfig.java b/foxogram-api/src/main/java/su/foxogram/configs/WebConfig.java similarity index 100% rename from foxogram-common/src/main/java/su/foxogram/configs/WebConfig.java rename to foxogram-api/src/main/java/su/foxogram/configs/WebConfig.java diff --git a/foxogram-common/src/main/java/su/foxogram/interceptors/AuthenticationInterceptor.java b/foxogram-api/src/main/java/su/foxogram/interceptors/AuthenticationInterceptor.java similarity index 100% rename from foxogram-common/src/main/java/su/foxogram/interceptors/AuthenticationInterceptor.java rename to foxogram-api/src/main/java/su/foxogram/interceptors/AuthenticationInterceptor.java diff --git a/foxogram-common/src/main/java/su/foxogram/interceptors/ChannelInterceptor.java b/foxogram-api/src/main/java/su/foxogram/interceptors/ChannelInterceptor.java similarity index 100% rename from foxogram-common/src/main/java/su/foxogram/interceptors/ChannelInterceptor.java rename to foxogram-api/src/main/java/su/foxogram/interceptors/ChannelInterceptor.java diff --git a/foxogram-common/src/main/java/su/foxogram/interceptors/MemberInterceptor.java b/foxogram-api/src/main/java/su/foxogram/interceptors/MemberInterceptor.java similarity index 100% rename from foxogram-common/src/main/java/su/foxogram/interceptors/MemberInterceptor.java rename to foxogram-api/src/main/java/su/foxogram/interceptors/MemberInterceptor.java diff --git a/foxogram-common/src/main/java/su/foxogram/interceptors/RateLimitInterceptor.java b/foxogram-api/src/main/java/su/foxogram/interceptors/RateLimitInterceptor.java similarity index 100% rename from foxogram-common/src/main/java/su/foxogram/interceptors/RateLimitInterceptor.java rename to foxogram-api/src/main/java/su/foxogram/interceptors/RateLimitInterceptor.java diff --git a/foxogram-common/src/main/java/su/foxogram/util/PenaltyBucket.java b/foxogram-api/src/main/java/su/foxogram/util/PenaltyBucket.java similarity index 100% rename from foxogram-common/src/main/java/su/foxogram/util/PenaltyBucket.java rename to foxogram-api/src/main/java/su/foxogram/util/PenaltyBucket.java diff --git a/foxogram-common/build.gradle b/foxogram-common/build.gradle index c434dbe..c9ea1d0 100644 --- a/foxogram-common/build.gradle +++ b/foxogram-common/build.gradle @@ -27,7 +27,6 @@ dependencies { implementation 'io.jsonwebtoken:jjwt-api:0.11.5' // v0.12.6 has no parserBuilder() runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5' runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5' - implementation 'com.bucket4j:bucket4j_jdk17-core:8.14.0' implementation 'org.apache.commons:commons-imaging:1.0.0-alpha5' implementation 'io.minio:minio:8.5.14' implementation 'org.springframework.boot:spring-boot-starter-websocket'