Skip to content

Commit 7a58565

Browse files
committed
[-] Remove kotlin and kotlin dependencies
1 parent ffc64a1 commit 7a58565

File tree

4 files changed

+12
-32
lines changed

4 files changed

+12
-32
lines changed

src/main/kotlin/CreateTeam.kt renamed to backups/kotlin/CreateTeam.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ data class GithubStats(
226226
// val percentile: Double,
227227
val stars: Int,
228228
val commits: Int,
229-
val prs: Int,
230-
val issues: Int,
229+
val prs: Int, val issues: Int,
231230
val contrib: Int
232231
)
233232

build.gradle

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,27 @@
11
plugins {
2-
id 'org.jetbrains.kotlin.jvm' version '1.7.10'
32
id 'java'
43
}
54

65
group 'org.hydev.csc207'
7-
version '1.0-SNAPSHOT'
6+
version '0.1.0.51'
87

98
repositories {
109
mavenCentral()
11-
mavenCentral()
1210
}
1311

1412
java {
1513
toolchain {
16-
languageVersion.set(JavaLanguageVersion.of(18))
14+
languageVersion.set(JavaLanguageVersion.of(19))
1715
}
1816
}
1917

2018

2119
dependencies {
22-
implementation "org.jetbrains.kotlin:kotlin-stdlib"
23-
2420
// Apache HTTP Client
2521
// https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5-fluent
2622
implementation 'org.apache.httpcomponents.client5:httpclient5-fluent:5.2-beta1'
2723

28-
// OKHTTP HTTP Client
29-
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
30-
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
31-
32-
// Ktor HTTP Client
33-
implementation "io.ktor:ktor-client-core:2.1.1"
34-
implementation "io.ktor:ktor-client-cio:2.1.1"
35-
36-
// Github API Client
37-
// https://mvnrepository.com/artifact/org.kohsuke/github-api
38-
implementation 'org.kohsuke:github-api:1.308'
39-
40-
// Json parser
24+
// Json parser: Jackson
4125
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
4226
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.0-rc1'
4327

@@ -47,15 +31,13 @@ dependencies {
4731
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
4832
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0-rc1'
4933

50-
// https://mvnrepository.com/artifact/com.google.code.gson/gson
51-
implementation 'com.google.code.gson:gson:2.9.1'
52-
5334
// YAML parser
5435
// https://mvnrepository.com/artifact/org.yaml/snakeyaml
5536
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.33'
5637

57-
// Kotlin Coroutines
58-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
38+
// IDE annotations
39+
// https://mvnrepository.com/artifact/org.jetbrains/annotations
40+
implementation 'org.jetbrains:annotations:16.0.1'
5941

6042
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
6143
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'

src/main/java/org/hydev/mcpm/server/crawlers/SpigetCrawler.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.hydev.mcpm.server.crawlers;
22

33
import com.fasterxml.jackson.databind.JsonNode;
4-
import com.fasterxml.jackson.databind.ObjectMapper;
54
import com.fasterxml.jackson.databind.node.ArrayNode;
65
import org.apache.hc.client5.http.HttpResponseException;
76
import org.apache.hc.client5.http.fluent.Request;
@@ -14,16 +13,16 @@
1413
import java.io.File;
1514
import java.io.IOException;
1615
import java.nio.file.Files;
17-
import java.util.*;
16+
import java.util.ArrayList;
17+
import java.util.Arrays;
18+
import java.util.Collection;
19+
import java.util.List;
1820
import java.util.stream.LongStream;
1921
import java.util.stream.StreamSupport;
2022

21-
import static com.fasterxml.jackson.databind.DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES;
22-
import static com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT;
2323
import static java.lang.String.format;
2424
import static org.hydev.mcpm.Constants.JACKSON;
2525
import static org.hydev.mcpm.utils.GeneralUtils.makeUrl;
26-
import static org.hydev.mcpm.utils.GeneralUtils.safeSleep;
2726

2827
/**
2928
* TODO: Write a description for this class!

src/test/java/org/hydev/mcpm/utils/GeneralUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void safeSleep()
2525
long time = System.currentTimeMillis();
2626
GeneralUtils.safeSleep(50);
2727
long elapsed = System.currentTimeMillis() - time;
28-
assert (45 <= elapsed) && (elapsed <= 55);
28+
assert (40 <= elapsed) && (elapsed <= 60);
2929
}
3030

3131
@Test

0 commit comments

Comments
 (0)