Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
}

dependencies {
implementation project(":utils")
implementation "com.squareup.okhttp3:okhttp:${rootProject.ext.okhttpVersion}"
testImplementation "com.squareup.okhttp3:mockwebserver:${rootProject.ext.okhttpVersion}"
implementation "com.google.code.gson:gson:${rootProject.ext.gsonVersion}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import com.google.gson.JsonParser;
import lombok.NonNull;
import okhttp3.*;
import org.jetbrains.annotations.Nullable;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import ru.funpay4j.utils.FunPayUserUtil;
import ru.funpay4j.client.FunPayParser;
import ru.funpay4j.core.exceptions.FunPayApiException;
import ru.funpay4j.core.exceptions.offer.OfferNotFoundException;
Expand All @@ -34,7 +34,6 @@
import ru.funpay4j.core.objects.offer.Offer;
import ru.funpay4j.core.objects.offer.PreviewOffer;
import ru.funpay4j.core.objects.user.*;
import ru.funpay4j.util.FunPayUserUtil;

import java.io.IOException;
import java.text.ParseException;
Expand Down
2 changes: 1 addition & 1 deletion examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

dependencies {
implementation project(":funpay4j-core")
implementation project(":core")
}

java {
Expand Down
8 changes: 6 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_8)) {
}

include 'core'
project(":core").name = 'funpay4j-core'
project(":core").name = 'core'

include 'examples'
project(":examples").name = 'funpay4j-examples'
project(":examples").name = 'examples'

include 'utils'
project(":utils").name = 'utils'

35 changes: 35 additions & 0 deletions utils/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
plugins {
id 'java'
}

dependencies {
annotationProcessor "org.projectlombok:lombok:${rootProject.ext.lombokVersion}"
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}

tasks.withType(Javadoc).configureEach {
failOnError = true
options.addStringOption('Xdoclint:all', '-quiet')
options.addBooleanOption('Xwerror', true)
}

tasks.named("build") {
dependsOn(javadoc)
}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* limitations under the License.
*/

package ru.funpay4j.util;
package ru.funpay4j.utils;

import lombok.NonNull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* limitations under the License.
*/

package ru.funpay4j.util;
package ru.funpay4j.utils;

import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* limitations under the License.
*/

package ru.funpay4j.util;
package ru.funpay4j.utils;

import org.junit.jupiter.api.Test;

Expand Down