Skip to content

Commit c584135

Browse files
committed
Revert "feat: ir ic (JetBrains#604)"
This reverts commit dc4983e
1 parent 407b6dd commit c584135

File tree

13 files changed

+44
-280
lines changed

13 files changed

+44
-280
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ FROM openjdk:11.0.16-jdk as build
22

33
ENV KOTLIN_LIB=1.8.20-RC
44
ENV KOTLIN_LIB_JS=1.8.20-RC-js
5-
ENV KOTLIN_CACHES_JS=1.8.20-RC-js-caches
65

76
RUN mkdir -p /kotlin-compiler-server
87
WORKDIR /kotlin-compiler-server
@@ -21,7 +20,6 @@ COPY --from=build /build/libs/META-INF /kotlin-compiler-server/META-INF
2120
COPY --from=build /build/libs/BOOT-INF/classes /kotlin-compiler-server
2221
COPY --from=build /kotlin-compiler-server/${KOTLIN_LIB} /kotlin-compiler-server/${KOTLIN_LIB}
2322
COPY --from=build /kotlin-compiler-server/${KOTLIN_LIB_JS} /kotlin-compiler-server/${KOTLIN_LIB_JS}
24-
COPY --from=build /kotlin-compiler-server/${KOTLIN_CACHES_JS} /kotlin-compiler-server/${KOTLIN_CACHES_JS}
2523
COPY --from=build /kotlin-compiler-server/executor.policy /kotlin-compiler-server/
2624
COPY --from=build /kotlin-compiler-server/indexes.json /kotlin-compiler-server/
2725

build.gradle.kts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,7 @@ val kotlinJsDependency: Configuration by configurations.creating {
2929
)
3030
}
3131
}
32-
33-
val kotlinJsIcCache: Configuration by configurations.creating {
34-
isTransitive = false
35-
attributes {
36-
attribute(
37-
KotlinPlatformType.attribute,
38-
KotlinPlatformType.js
39-
)
40-
attribute(
41-
KotlinJsCompilerAttribute.jsCompilerAttribute,
42-
KotlinJsCompilerAttribute.ir
43-
)
44-
attribute(
45-
LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE,
46-
objects.named(LibraryElements::class.java, "js-ir-cache")
47-
)
48-
}
49-
}
50-
5132
val libJSFolder = "$kotlinVersion-js"
52-
val libJSCachesFolder = "$kotlinVersion-js-caches"
5333
val libJVMFolder = kotlinVersion
5434
val propertyFile = "application.properties"
5535
val jacksonVersionKotlinDependencyJar = "2.14.0" // don't forget to update version in `executor.policy` file.
@@ -63,11 +43,6 @@ val copyJSDependencies by tasks.creating(Copy::class) {
6343
into(libJSFolder)
6444
}
6545

66-
val copyJSCaches by tasks.creating(Copy::class) {
67-
from(kotlinJsIcCache)
68-
into(libJSCachesFolder)
69-
}
70-
7146
plugins {
7247
id("org.springframework.boot") version "2.7.8"
7348
id("io.spring.dependency-management") version "1.1.0"
@@ -112,8 +87,6 @@ dependencies {
11287
kotlinDependency("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4")
11388
kotlinJsDependency("org.jetbrains.kotlin:kotlin-stdlib-js:$kotlinVersion")
11489

115-
kotlinJsIcCache(project(":cache-preparator"))
116-
11790
annotationProcessor("org.springframework:spring-context-indexer")
11891
implementation("org.springframework.boot:spring-boot-starter-web")
11992
implementation("com.amazonaws.serverless:aws-serverless-java-container-springboot2:1.9.1")
@@ -158,10 +131,7 @@ fun generateProperties(prefix: String = "") = """
158131
indexesJs.file=${prefix + indexesJs}
159132
libraries.folder.jvm=${prefix + libJVMFolder}
160133
libraries.folder.js=${prefix + libJSFolder}
161-
caches.folder.js=${prefix + libJSCachesFolder}
162134
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
163-
server.compression.enabled=true
164-
server.compression.mime-types=application/json
165135
""".trimIndent()
166136

167137
tasks.withType<KotlinCompile> {
@@ -171,7 +141,6 @@ tasks.withType<KotlinCompile> {
171141
}
172142
dependsOn(copyDependencies)
173143
dependsOn(copyJSDependencies)
174-
dependsOn(copyJSCaches)
175144
dependsOn(":executors:jar")
176145
dependsOn(":indexation:run")
177146
buildPropertyFile()

cache-preparator/build.gradle.kts

Lines changed: 0 additions & 55 deletions
This file was deleted.

cache-preparator/src/jsMain/kotlin/File.kt

Lines changed: 0 additions & 3 deletions
This file was deleted.

common/src/main/kotlin/component/KotlinEnvironment.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ import java.io.File
2828

2929
class KotlinEnvironment(
3030
val classpath: List<File>,
31-
additionalJsClasspath: List<File>,
32-
val cachesJsDir: File
31+
additionalJsClasspath: List<File>
3332
) {
3433
companion object {
3534
/**

indexation/src/main/kotlin/KotlinEnvironmentConfiguration.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ class KotlinEnvironmentConfiguration(fileName: String) {
77
val kotlinEnvironment = run {
88
val jvmFile = File(fileName)
99
val jsFile = File("$fileName-js")
10-
val cachesJsDir = File("$fileName-js-caches")
1110
val classPath =
1211
listOfNotNull(jvmFile)
1312
.flatMap {
@@ -16,6 +15,6 @@ class KotlinEnvironmentConfiguration(fileName: String) {
1615
}
1716

1817
val additionalJsClasspath = listOfNotNull(jsFile)
19-
KotlinEnvironment(classPath, additionalJsClasspath, cachesJsDir)
18+
KotlinEnvironment(classPath, additionalJsClasspath)
2019
}
2120
}

settings.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
rootProject.name = "kotlin-compiler-server"
22
include(":executors")
33
include(":indexation")
4-
include(":common")
5-
include(":cache-preparator")
4+
include(":common")

src/main/kotlin/com/compiler/server/compiler/components/JsCompiler.kt

Lines changed: 0 additions & 104 deletions
This file was deleted.
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
package com.compiler.server.compiler.components
22

3-
import com.compiler.server.model.bean.CachesFile
43
import com.compiler.server.model.bean.LibrariesFile
54
import component.KotlinEnvironment
65
import org.springframework.context.annotation.Bean
76
import org.springframework.context.annotation.Configuration
87

98
@Configuration
10-
class KotlinEnvironmentConfiguration(
11-
val librariesFile: LibrariesFile,
12-
val cachesFiles: CachesFile
13-
) {
9+
class KotlinEnvironmentConfiguration(val librariesFile: LibrariesFile) {
1410
@Bean
1511
fun kotlinEnvironment(): KotlinEnvironment {
1612
val classPath =
@@ -21,6 +17,6 @@ class KotlinEnvironmentConfiguration(
2117
}
2218

2319
val additionalJsClasspath = listOfNotNull(librariesFile.js)
24-
return KotlinEnvironment(classPath, additionalJsClasspath, cachesFiles.js)
20+
return KotlinEnvironment(classPath, additionalJsClasspath)
2521
}
2622
}

0 commit comments

Comments
 (0)