Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit ebc5e25

Browse files
authored
Merge pull request #3 from k163377/fix_hosting
Fix hosting
2 parents cb0bdcd + 275b1fc commit ebc5e25

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

build.gradle.kts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
plugins {
2+
id("maven-publish")
23
id("java")
34
id("org.jetbrains.kotlin.jvm") version "1.3.61"
45
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
@@ -38,20 +39,22 @@ dependencies {
3839
testImplementation(group = "com.google.guava", name = "guava", version = "28.2-jre")
3940
}
4041

41-
tasks.compileKotlin {
42-
dependsOn("ktlintFormat")
43-
kotlinOptions {
44-
jvmTarget = "1.8"
45-
allWarningsAsErrors = true
42+
tasks {
43+
compileKotlin {
44+
dependsOn("ktlintFormat")
45+
kotlinOptions {
46+
jvmTarget = "1.8"
47+
allWarningsAsErrors = true
48+
}
4649
}
47-
}
4850

49-
tasks.compileTestKotlin {
50-
kotlinOptions {
51-
freeCompilerArgs = listOf("-Xjsr305=strict")
52-
jvmTarget = "1.8"
51+
compileTestKotlin {
52+
kotlinOptions {
53+
freeCompilerArgs = listOf("-Xjsr305=strict")
54+
jvmTarget = "1.8"
55+
}
56+
}
57+
test {
58+
useJUnitPlatform()
5359
}
54-
}
55-
tasks.test {
56-
useJUnitPlatform()
5760
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kotlin.code.style=official
1+
kotlin.code.style=official
2+
org.gradle.warning.mode=all

src/main/java/com/wrongwrong/mapk/core/EnumMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class EnumMapper {
88
* @param <T> enumClass
99
* @return Enum.valueOf
1010
*/
11-
@SuppressWarnings("unchecked")
11+
@SuppressWarnings({"unchecked", "rawtypes"})
1212
static <T> T getEnum(Class<T> clazz, String value) {
1313
if (value == null || value.isEmpty()) {
1414
return null;

0 commit comments

Comments
 (0)