diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/build.gradle.kts | 2 | ||||
-rw-r--r-- | example/src/main/kotlin/test.kt | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/example/build.gradle.kts b/example/build.gradle.kts index 7732e0a..34be934 100644 --- a/example/build.gradle.kts +++ b/example/build.gradle.kts @@ -17,7 +17,7 @@ mcAutoTranslations { } mcAutoTranslations.collectTranslationsTaskFor(sourceSets.main.get()) { - this.baseTranslations.from(file("en_us.json")) + baseTranslations.from(file("en_us.json")) outputFileName("en_us.json") } tasks.processResources { diff --git a/example/src/main/kotlin/test.kt b/example/src/main/kotlin/test.kt index 7c0c88c..cb5ddfa 100644 --- a/example/src/main/kotlin/test.kt +++ b/example/src/main/kotlin/test.kt @@ -14,6 +14,7 @@ class Text(val key: String, val args: Array<out Any>) { } } +@Suppress("UNUSED") fun trResolved(key: String, vararg args: Any) = Text(key, args) fun tr(key: String, default: String): Text = error("Did not run compiler plugin") fun main() { |