Skip to content

Commit 1ab27ef

Browse files
committed
Unable to load class 'org.jetbrains.kotlin.name.FqName', WHY!!!
1 parent 8ea59a0 commit 1ab27ef

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

buildSrc/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ dependencies {
2424
api("com.gradle.publish:plugin-publish-plugin:1.2.1")
2525
// see https://github.com/gmazzo/gradle-buildconfig-plugin
2626
api("com.github.gmazzo.buildconfig:plugin:$buildConfig")
27-
// see https://github.com/bnorm/kotlin-power-assert#compatibility
28-
api("gradle.plugin.com.bnorm.power:kotlin-power-assert-gradle:0.12.0")
2927
// see https://github.com/gradle-nexus/publish-plugin
3028
api("io.github.gradle-nexus:publish-plugin:$nexusPublishPlugin")
3129

3230
// api("com.github.jengelman.gradle.plugins:shadow:8.3.0")
3331
// https://gradleup.com/shadow/
34-
api("com.gradleup.shadow:shadow-gradle-plugin:8.3.0")
32+
api("com.gradleup.shadow:shadow-gradle-plugin:8.3.2")
3533

3634
implementation("love.forte.gradle.common:gradle-common-core:$gradleCommon")
3735
implementation("love.forte.gradle.common:gradle-common-kotlin-multiplatform:$gradleCommon")

buildSrc/src/main/kotlin/embeddable/Constents.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package embeddable
22

33
// constants
44

5-
const val EMBEDDED = "embedded"
5+
const val CONSTANTS_EMBEDDED = "embedded"

buildSrc/src/main/kotlin/embeddable/Embeddable.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
66
import org.gradle.api.Project
77
import org.gradle.api.artifacts.Configuration
88
import org.gradle.api.artifacts.ConfigurationContainer
9-
import org.gradle.api.attributes.Bundling.EMBEDDED
109
import org.gradle.api.file.DuplicatesStrategy
1110
import org.gradle.api.plugins.JavaPluginExtension
1211
import org.gradle.api.tasks.TaskProvider
@@ -18,6 +17,7 @@ import org.gradle.kotlin.dsl.named
1817
import org.gradle.kotlin.dsl.register
1918
import org.gradle.kotlin.dsl.withType
2019
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
20+
import java.io.File
2121
import java.util.*
2222

2323
const val kotlinEmbeddableRootPackage = "org.jetbrains.kotlin"
@@ -79,13 +79,13 @@ private fun ShadowJar.configureEmbeddableCompilerRelocation(withJavaxInject: Boo
7979
}
8080

8181
private fun Project.compilerShadowJar(taskName: String, body: ShadowJar.() -> Unit): TaskProvider<out ShadowJar> {
82-
val embeddedConfig = configurations.getOrCreate(EMBEDDED)
82+
val embeddedConfig = configurations.getOrCreate(CONSTANTS_EMBEDDED)
8383
val javaPluginExtension = extensions.getByType<JavaPluginExtension>()
8484

8585
return tasks.register<ShadowJar>(taskName) {
8686
group = "shadow"
87-
// destinationDirectory.set(project.file(File(layout.buildDirectory, "libs")))
88-
destinationDirectory.set(layout.buildDirectory.dir("libs"))
87+
destinationDirectory.set(project.file(File(layout.buildDirectory.asFile.get(), "libs")))
88+
// destinationDirectory.set(layout.buildDirectory.dir("libs"))
8989
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
9090
from(embeddedConfig)
9191
from(javaPluginExtension.sourceSets.getByName("main").output)

compiler/suspend-transform-plugin/src/testData/codegen/opt.fir.ir.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ FILE fqName:<root> fileName:/Main.kt
102102
$this: GET_VAR '<this>: <root>.OptInTest declared in <root>.OptInTest.runBlocking' type=<root>.OptInTest origin=null
103103
FUN name:run visibility:public modality:FINAL <> ($this:<root>.OptInTest) returnType:kotlin.Int [suspend]
104104
annotations:
105-
OptIn(markerClass = [CLASS_REFERENCE 'CLASS ANNOTATION_CLASS name:OneOptAnno modality:OPEN visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass<<root>.OneOptAnno>])
105+
OptIn(markerClass = [CLASS_REFERENCE 'CLASS ANNOTATION_CLASS name:OneOptAnno modality:OPEN visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass<<root>.OneOptAnno>] type=kotlin.Array<out kotlin.reflect.KClass<out kotlin.Annotation>> varargElementType=kotlin.reflect.KClass<out kotlin.Annotation>)
106106
Values(target = CLASS_REFERENCE 'CLASS CLASS name:OptInTest modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<<root>.OptInTest>)
107107
JvmBlocking(baseName = <null>, suffix = <null>, asProperty = <null>)
108108
JvmAsync(baseName = <null>, suffix = <null>, asProperty = <null>)

0 commit comments

Comments
 (0)