Skip to content

Commit

Permalink
remove ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonButov committed Nov 17, 2024
1 parent 520e937 commit 4433221
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 32 deletions.
8 changes: 2 additions & 6 deletions bridge/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
plugins {
kotlin("jvm") version "2.0.20"
kotlin("jvm")
}

group = "com.code.factory"
group = "com.bridge"
version = "1.0-SNAPSHOT"

repositories {
mavenCentral()
}

dependencies {
testImplementation(kotlin("test"))
}
Expand Down
15 changes: 0 additions & 15 deletions build.gradle

This file was deleted.

11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
kotlin("jvm") version "2.0.20" apply false

}
allprojects {

repositories {
mavenCentral()
google()
}
}
6 changes: 1 addition & 5 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "2.0.20" // todo do same
kotlin("jvm")
`java-gradle-plugin`
}

Expand All @@ -15,10 +15,6 @@ gradlePlugin {
}
}

repositories {
mavenCentral()
}

dependencies {
testImplementation(kotlin("test"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import java.io.File
class CodeFactoryPlugin : Plugin<Project> {
override fun apply(project: Project) {
project.tasks.register("codeFactoryTask") {

it.description = "code factory task"
it.doLast {
println("Generating file...")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.tschuchort.compiletesting.KotlinCompilation.Result as JvmCompilationR
class FileCompileChecker {

fun isFileCompile(code: String): Boolean {
val result = compile(code)
val result = compile(code)
return result.exitCode == KotlinCompilation.ExitCode.OK
}

Expand All @@ -19,4 +19,4 @@ class FileCompileChecker {
inheritClassPath = true
}.compile()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ package com.gradle.plugin
class FileSaver {

fun saveFile(name: String, content: () -> String) {

}
}
2 changes: 1 addition & 1 deletion gradle-plugin/src/main/kotlin/com/gradle/plugin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ class Main {
fun main() {
println("Hello World!")
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.gradle.plugin

import kotlin.test.*
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertTrue

class CheckCompilerTest {
Expand Down

0 comments on commit 4433221

Please sign in to comment.