Skip to content

Commit

Permalink
[ upgrade ] Cannot continue due to JetBrains/intellij-platform-gradle…
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Oct 17, 2021
1 parent 8dea5fd commit 8d60c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ kotlin {

repositories {
mavenCentral()
jcenter()
}

dependencies {
Expand Down Expand Up @@ -185,7 +184,7 @@ utilities("OwO")
tasks.withType<KotlinCompile>().configureEach {
dependsOn(generateCode)
kotlinOptions {
jvmTarget = "1.11"
jvmTarget = "11"
languageVersion = "1.5"
apiVersion = "1.5"
freeCompilerArgs = listOf("-Xjvm-default=enable")
Expand Down
2 changes: 1 addition & 1 deletion src/org/ice1000/tt/action/create-file.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import javax.swing.Icon
fun createProperties(project: Project, className: String): Properties {
val properties = FileTemplateManager.getInstance(project).defaultProperties
properties += "NAME" to className
val snakeCase = className.toLowerCase().replace(Regex("[ \\r\\t\\-()!@#~]+"), "_")
val snakeCase = className.lowercase(Locale.getDefault()).replace(Regex("[ \\r\\t\\-()!@#~]+"), "_")
properties += "NAME_SNAKE" to snakeCase
properties += "NAME_CAMEL" to CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, snakeCase)
return properties
Expand Down

0 comments on commit 8d60c96

Please sign in to comment.