Add modules metadata and metadata.jvm
This commit is contained in:
@@ -200,6 +200,8 @@ extra["compilerModules"] = arrayOf(
|
|||||||
":js:js.dce",
|
":js:js.dce",
|
||||||
":compiler",
|
":compiler",
|
||||||
":kotlin-build-common",
|
":kotlin-build-common",
|
||||||
|
":core:metadata",
|
||||||
|
":core:metadata.jvm",
|
||||||
":core:descriptors",
|
":core:descriptors",
|
||||||
":core:descriptors.jvm",
|
":core:descriptors.jvm",
|
||||||
":core:deserialization",
|
":core:deserialization",
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ javaHome = rootProject.extra["JDK_16"] as String
|
|||||||
dependencies {
|
dependencies {
|
||||||
compile(project(":core:descriptors"))
|
compile(project(":core:descriptors"))
|
||||||
compile(project(":core:deserialization"))
|
compile(project(":core:deserialization"))
|
||||||
|
compile(project(":core:metadata.jvm"))
|
||||||
compile(project(":core:util.runtime"))
|
compile(project(":core:util.runtime"))
|
||||||
compile(commonDep("javax.inject"))
|
compile(commonDep("javax.inject"))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
apply { plugin("jps-compatible") }
|
apply { plugin("jps-compatible") }
|
||||||
|
|
||||||
@@ -7,9 +5,9 @@ jvmTarget = "1.6"
|
|||||||
javaHome = rootProject.extra["JDK_16"] as String
|
javaHome = rootProject.extra["JDK_16"] as String
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
compile(project(":core:metadata"))
|
||||||
compile(project(":core:util.runtime"))
|
compile(project(":core:util.runtime"))
|
||||||
compile(project(":core:descriptors"))
|
compile(project(":core:descriptors"))
|
||||||
compile(protobufLite())
|
|
||||||
compile(commonDep("javax.inject"))
|
compile(commonDep("javax.inject"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,11 +17,6 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
dependsOn(protobufLiteTask)
|
|
||||||
sourceCompatibility = "1.6"
|
sourceCompatibility = "1.6"
|
||||||
targetCompatibility = "1.6"
|
targetCompatibility = "1.6"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
|
||||||
dependsOn(protobufLiteTask)
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
jvmTarget = "1.6"
|
||||||
|
javaHome = rootProject.extra["JDK_16"] as String
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile(project(":core:metadata"))
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
"main" { projectDefault() }
|
||||||
|
"test" {}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<JavaCompile> {
|
||||||
|
sourceCompatibility = "1.6"
|
||||||
|
targetCompatibility = "1.6"
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
|
jvmTarget = "1.6"
|
||||||
|
javaHome = rootProject.extra["JDK_16"] as String
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile(protobufLite())
|
||||||
|
compile(project(":kotlin-stdlib"))
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
"main" { projectDefault() }
|
||||||
|
"test" {}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<JavaCompile> {
|
||||||
|
dependsOn(protobufLiteTask)
|
||||||
|
sourceCompatibility = "1.6"
|
||||||
|
targetCompatibility = "1.6"
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<KotlinCompile> {
|
||||||
|
dependsOn(protobufLiteTask)
|
||||||
|
}
|
||||||
@@ -3294,6 +3294,76 @@
|
|||||||
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
":core:metadata": {
|
||||||
|
"conventions": {
|
||||||
|
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||||
|
"java": "org.gradle.api.plugins.JavaPluginConvention"
|
||||||
|
},
|
||||||
|
"configurations": [
|
||||||
|
"apiElements",
|
||||||
|
"archives",
|
||||||
|
"compile",
|
||||||
|
"compileClasspath",
|
||||||
|
"compileOnly",
|
||||||
|
"default",
|
||||||
|
"implementation",
|
||||||
|
"kapt",
|
||||||
|
"kaptTest",
|
||||||
|
"runtime",
|
||||||
|
"runtimeClasspath",
|
||||||
|
"runtimeElements",
|
||||||
|
"runtimeOnly",
|
||||||
|
"testCompile",
|
||||||
|
"testCompileClasspath",
|
||||||
|
"testCompileOnly",
|
||||||
|
"testImplementation",
|
||||||
|
"testRuntime",
|
||||||
|
"testRuntimeClasspath",
|
||||||
|
"testRuntimeOnly"
|
||||||
|
],
|
||||||
|
"extensions": {
|
||||||
|
"ext": "org.gradle.api.plugins.ExtraPropertiesExtension",
|
||||||
|
"kotlin": "org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension",
|
||||||
|
"kapt": "org.jetbrains.kotlin.gradle.plugin.KaptExtension",
|
||||||
|
"defaultArtifacts": "org.gradle.api.internal.plugins.DefaultArtifactPublicationSet",
|
||||||
|
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
":core:metadata.jvm": {
|
||||||
|
"conventions": {
|
||||||
|
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||||
|
"java": "org.gradle.api.plugins.JavaPluginConvention"
|
||||||
|
},
|
||||||
|
"configurations": [
|
||||||
|
"apiElements",
|
||||||
|
"archives",
|
||||||
|
"compile",
|
||||||
|
"compileClasspath",
|
||||||
|
"compileOnly",
|
||||||
|
"default",
|
||||||
|
"implementation",
|
||||||
|
"kapt",
|
||||||
|
"kaptTest",
|
||||||
|
"runtime",
|
||||||
|
"runtimeClasspath",
|
||||||
|
"runtimeElements",
|
||||||
|
"runtimeOnly",
|
||||||
|
"testCompile",
|
||||||
|
"testCompileClasspath",
|
||||||
|
"testCompileOnly",
|
||||||
|
"testImplementation",
|
||||||
|
"testRuntime",
|
||||||
|
"testRuntimeClasspath",
|
||||||
|
"testRuntimeOnly"
|
||||||
|
],
|
||||||
|
"extensions": {
|
||||||
|
"ext": "org.gradle.api.plugins.ExtraPropertiesExtension",
|
||||||
|
"kotlin": "org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension",
|
||||||
|
"kapt": "org.jetbrains.kotlin.gradle.plugin.KaptExtension",
|
||||||
|
"defaultArtifacts": "org.gradle.api.internal.plugins.DefaultArtifactPublicationSet",
|
||||||
|
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
||||||
|
}
|
||||||
|
},
|
||||||
":core:util.runtime": {
|
":core:util.runtime": {
|
||||||
"conventions": {
|
"conventions": {
|
||||||
"base": "org.gradle.api.plugins.BasePluginConvention",
|
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ dependencies {
|
|||||||
proguardDeps(files(firstFromJavaHomeThatExists("jre/lib/rt.jar", "../Classes/classes.jar", jdkHome = File(property("JDK_16") as String))))
|
proguardDeps(files(firstFromJavaHomeThatExists("jre/lib/rt.jar", "../Classes/classes.jar", jdkHome = File(property("JDK_16") as String))))
|
||||||
|
|
||||||
shadows(project(":kotlin-reflect-api"))
|
shadows(project(":kotlin-reflect-api"))
|
||||||
|
shadows(project(":core:metadata"))
|
||||||
|
shadows(project(":core:metadata.jvm"))
|
||||||
shadows(project(":core:descriptors"))
|
shadows(project(":core:descriptors"))
|
||||||
shadows(project(":core:descriptors.jvm"))
|
shadows(project(":core:descriptors.jvm"))
|
||||||
shadows(project(":core:deserialization"))
|
shadows(project(":core:deserialization"))
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ val projectsToShadow by extra(listOf(
|
|||||||
":compiler:cli-common",
|
":compiler:cli-common",
|
||||||
":compiler:container",
|
":compiler:container",
|
||||||
":compiler:daemon-common",
|
":compiler:daemon-common",
|
||||||
|
":core:metadata",
|
||||||
|
":core:metadata.jvm",
|
||||||
":core:descriptors",
|
":core:descriptors",
|
||||||
":core:descriptors.jvm",
|
":core:descriptors.jvm",
|
||||||
":core:deserialization",
|
":core:deserialization",
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ include ":kotlin-build-common",
|
|||||||
":core:descriptors.jvm",
|
":core:descriptors.jvm",
|
||||||
":core:deserialization",
|
":core:deserialization",
|
||||||
":core:descriptors.runtime",
|
":core:descriptors.runtime",
|
||||||
|
":core:metadata",
|
||||||
|
":core:metadata.jvm",
|
||||||
":core:builtins",
|
":core:builtins",
|
||||||
":core:util.runtime",
|
":core:util.runtime",
|
||||||
":custom-dependencies:protobuf-relocated",
|
":custom-dependencies:protobuf-relocated",
|
||||||
|
|||||||
Reference in New Issue
Block a user