Add missing artifact, fix some deps and publishing
This commit is contained in:
@@ -15,6 +15,8 @@ import org.gradle.api.tasks.javadoc.Javadoc
|
|||||||
import org.gradle.jvm.tasks.Jar
|
import org.gradle.jvm.tasks.Jar
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
|
// can be used now only for the non-published projects, due to conflicts in the "archives" config
|
||||||
|
// TODO: fix the problem above
|
||||||
fun Project.classesDirsArtifact(): FileCollection {
|
fun Project.classesDirsArtifact(): FileCollection {
|
||||||
val classesDirsCfg = configurations.getOrCreate("classes-dirs")
|
val classesDirsCfg = configurations.getOrCreate("classes-dirs")
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
|
|
||||||
|
description = "Compiler runner + daemon client"
|
||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
jvmTarget = "1.6"
|
jvmTarget = "1.6"
|
||||||
|
|
||||||
|
val packIntoJar by configurations.creating
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
val compile by configurations
|
||||||
compile(project(":kotlin-build-common"))
|
compile(project(":kotlin-build-common"))
|
||||||
compile(project(":compiler:cli-common"))
|
compile(project(":compiler:cli-common"))
|
||||||
compile(project(":kotlin-preloader"))
|
compile(project(":kotlin-preloader"))
|
||||||
@@ -11,6 +16,7 @@ dependencies {
|
|||||||
compile(project(":compiler:daemon-common"))
|
compile(project(":compiler:daemon-common"))
|
||||||
compile(project(":kotlin-daemon-client"))
|
compile(project(":kotlin-daemon-client"))
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
|
packIntoJar(projectClasses(":compiler:daemon-common"))
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -18,3 +24,13 @@ sourceSets {
|
|||||||
"test" {}
|
"test" {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
evaluationDependsOn(":kotlin-daemon-client")
|
||||||
|
|
||||||
|
runtimeJar {
|
||||||
|
from(packIntoJar)
|
||||||
|
from(project(":kotlin-daemon-client").the<JavaPluginConvention>().sourceSets["main"].output.classesDirs)
|
||||||
|
}
|
||||||
|
sourcesJar()
|
||||||
|
javadocJar()
|
||||||
|
|
||||||
|
publish()
|
||||||
|
|||||||
@@ -7,11 +7,14 @@ jvmTarget = "1.6"
|
|||||||
|
|
||||||
val nativePlatformUberjar = preloadedDeps("native-platform-uberjar")
|
val nativePlatformUberjar = preloadedDeps("native-platform-uberjar")
|
||||||
|
|
||||||
|
val packIntoJar by configurations.creating
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(project(":compiler:util"))
|
compileOnly(project(":compiler:util"))
|
||||||
compileOnly(project(":compiler:cli-common"))
|
compileOnly(project(":compiler:cli-common"))
|
||||||
compileOnly(project(":compiler:daemon-common"))
|
compileOnly(project(":compiler:daemon-common"))
|
||||||
compileOnly(nativePlatformUberjar)
|
compileOnly(nativePlatformUberjar)
|
||||||
|
packIntoJar(projectClasses(":compiler:daemon-common"))
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -23,8 +26,10 @@ runtimeJar {
|
|||||||
nativePlatformUberjar.forEach {
|
nativePlatformUberjar.forEach {
|
||||||
from(zipTree(it))
|
from(zipTree(it))
|
||||||
}
|
}
|
||||||
|
from(packIntoJar)
|
||||||
}
|
}
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
javadocJar()
|
||||||
|
|
||||||
dist()
|
dist()
|
||||||
|
|
||||||
|
|||||||
@@ -16,3 +16,4 @@ sourceSets {
|
|||||||
"test" {}
|
"test" {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
classesDirsArtifact()
|
||||||
|
|||||||
+45
-36
@@ -856,7 +856,7 @@
|
|||||||
"signing": "org.gradle.plugins.signing.SigningExtension"
|
"signing": "org.gradle.plugins.signing.SigningExtension"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
":kotlin-daemon-client": {
|
":kotlin-compiler-runner": {
|
||||||
"conventions": {
|
"conventions": {
|
||||||
"base": "org.gradle.api.plugins.BasePluginConvention",
|
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||||
"java": "org.gradle.api.plugins.JavaPluginConvention",
|
"java": "org.gradle.api.plugins.JavaPluginConvention",
|
||||||
@@ -870,10 +870,53 @@
|
|||||||
"compileClasspath",
|
"compileClasspath",
|
||||||
"compileOnly",
|
"compileOnly",
|
||||||
"default",
|
"default",
|
||||||
|
"implementation",
|
||||||
|
"kapt",
|
||||||
|
"kaptTest",
|
||||||
|
"packIntoJar",
|
||||||
|
"runtime",
|
||||||
|
"runtimeClasspath",
|
||||||
|
"runtimeElements",
|
||||||
|
"runtimeJar",
|
||||||
|
"runtimeOnly",
|
||||||
|
"signatures",
|
||||||
|
"testCompile",
|
||||||
|
"testCompileClasspath",
|
||||||
|
"testCompileOnly",
|
||||||
|
"testImplementation",
|
||||||
|
"testRuntime",
|
||||||
|
"testRuntimeClasspath",
|
||||||
|
"testRuntimeOnly"
|
||||||
|
],
|
||||||
|
"extensions": {
|
||||||
|
"ext": "org.gradle.api.plugins.ExtraPropertiesExtension",
|
||||||
|
"kotlin": "org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension",
|
||||||
|
"kapt": "org.jetbrains.kotlin.gradle.plugin.KaptExtension",
|
||||||
|
"defaultArtifacts": "org.gradle.api.internal.plugins.DefaultArtifactPublicationSet",
|
||||||
|
"reporting": "org.gradle.api.reporting.ReportingExtension",
|
||||||
|
"signing": "org.gradle.plugins.signing.SigningExtension"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
":kotlin-daemon-client": {
|
||||||
|
"conventions": {
|
||||||
|
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||||
|
"java": "org.gradle.api.plugins.JavaPluginConvention",
|
||||||
|
"maven": "org.gradle.api.plugins.MavenPluginConvention"
|
||||||
|
},
|
||||||
|
"configurations": [
|
||||||
|
"apiElements",
|
||||||
|
"archives",
|
||||||
|
"buildVersion",
|
||||||
|
"classes-dirs",
|
||||||
|
"compile",
|
||||||
|
"compileClasspath",
|
||||||
|
"compileOnly",
|
||||||
|
"default",
|
||||||
"distJar",
|
"distJar",
|
||||||
"implementation",
|
"implementation",
|
||||||
"kapt",
|
"kapt",
|
||||||
"kaptTest",
|
"kaptTest",
|
||||||
|
"packIntoJar",
|
||||||
"runtime",
|
"runtime",
|
||||||
"runtimeClasspath",
|
"runtimeClasspath",
|
||||||
"runtimeElements",
|
"runtimeElements",
|
||||||
@@ -2061,41 +2104,6 @@
|
|||||||
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
":compiler:compiler-runner": {
|
|
||||||
"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.KotlinProjectExtension",
|
|
||||||
"kapt": "org.jetbrains.kotlin.gradle.plugin.KaptExtension",
|
|
||||||
"defaultArtifacts": "org.gradle.api.internal.plugins.DefaultArtifactPublicationSet",
|
|
||||||
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
":compiler:conditional-preprocessor": {
|
":compiler:conditional-preprocessor": {
|
||||||
"conventions": {
|
"conventions": {
|
||||||
"base": "org.gradle.api.plugins.BasePluginConvention",
|
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||||
@@ -2210,6 +2218,7 @@
|
|||||||
"configurations": [
|
"configurations": [
|
||||||
"apiElements",
|
"apiElements",
|
||||||
"archives",
|
"archives",
|
||||||
|
"classes-dirs",
|
||||||
"compile",
|
"compile",
|
||||||
"compileClasspath",
|
"compileClasspath",
|
||||||
"compileOnly",
|
"compileOnly",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ dependencies {
|
|||||||
compile(project(":js:js.serializer"))
|
compile(project(":js:js.serializer"))
|
||||||
compile(project(":compiler:light-classes"))
|
compile(project(":compiler:light-classes"))
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(project(":compiler:compiler-runner"))
|
compile(project(":kotlin-compiler-runner"))
|
||||||
compile(project(":compiler:plugin-api"))
|
compile(project(":compiler:plugin-api"))
|
||||||
compile(project(":eval4j"))
|
compile(project(":eval4j"))
|
||||||
compile(project(":j2k"))
|
compile(project(":j2k"))
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ val compilerModules: Array<String> by rootProject.extra
|
|||||||
dependencies {
|
dependencies {
|
||||||
compile(project(":kotlin-build-common"))
|
compile(project(":kotlin-build-common"))
|
||||||
compile(project(":core"))
|
compile(project(":core"))
|
||||||
compile(project(":compiler:compiler-runner"))
|
compile(project(":kotlin-compiler-runner"))
|
||||||
compile(project(":compiler:daemon-common"))
|
compile(project(":compiler:daemon-common"))
|
||||||
compile(projectDist(":kotlin-daemon-client"))
|
compile(projectDist(":kotlin-daemon-client"))
|
||||||
compile(project(":compiler:frontend.java"))
|
compile(project(":compiler:frontend.java"))
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ dependencies {
|
|||||||
compile project(':android-extensions-compiler')
|
compile project(':android-extensions-compiler')
|
||||||
// compile project(path: ':compiler', configuration: 'embeddableCompilerJar')
|
// compile project(path: ':compiler', configuration: 'embeddableCompilerJar')
|
||||||
compile project(':kotlin-build-common')
|
compile project(':kotlin-build-common')
|
||||||
compile project(':compiler:compiler-runner')
|
compile project(':kotlin-compiler-runner')
|
||||||
compile project(":compiler:incremental-compilation-impl")
|
compile project(":compiler:incremental-compilation-impl")
|
||||||
compile project(":compiler:daemon")
|
compile project(":compiler:daemon")
|
||||||
compile project(path: ':kotlin-annotation-processing-gradle', configuration: "runtimeJar")
|
compile project(path: ':kotlin-annotation-processing-gradle', configuration: "runtimeJar")
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ description = "Kotlin Android Extensions Compiler"
|
|||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
val packIntoJar by configurations.creating
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(ideaSdkCoreDeps("intellij-core"))
|
compile(ideaSdkCoreDeps("intellij-core"))
|
||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
@@ -13,7 +11,6 @@ dependencies {
|
|||||||
compile(project(":compiler:frontend.java"))
|
compile(project(":compiler:frontend.java"))
|
||||||
compile(project(":compiler:backend"))
|
compile(project(":compiler:backend"))
|
||||||
compileOnly(project(":kotlin-android-extensions-runtime"))
|
compileOnly(project(":kotlin-android-extensions-runtime"))
|
||||||
packIntoJar(projectClasses(":kotlin-android-extensions-runtime"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -21,8 +18,10 @@ sourceSets {
|
|||||||
"test" {}
|
"test" {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
evaluationDependsOn(":kotlin-android-extensions-runtime")
|
||||||
|
|
||||||
runtimeJar {
|
runtimeJar {
|
||||||
from(packIntoJar)
|
from(project(":kotlin-android-extensions-runtime").the<JavaPluginConvention>().sourceSets["main"].output.classesDirs)
|
||||||
}
|
}
|
||||||
|
|
||||||
dist()
|
dist()
|
||||||
|
|||||||
@@ -31,6 +31,4 @@ sourceSets {
|
|||||||
|
|
||||||
runtimeJar ()
|
runtimeJar ()
|
||||||
|
|
||||||
classesDirsArtifact()
|
|
||||||
|
|
||||||
publish()
|
publish()
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ plugins {
|
|||||||
val projectsToShadow = listOf(
|
val projectsToShadow = listOf(
|
||||||
":kotlin-build-common",
|
":kotlin-build-common",
|
||||||
":compiler:cli-common",
|
":compiler:cli-common",
|
||||||
":compiler:compiler-runner",
|
":kotlin-compiler-runner",
|
||||||
":kotlin-daemon-client",
|
":kotlin-daemon-client",
|
||||||
":compiler:daemon-common",
|
":compiler:daemon-common",
|
||||||
":core",
|
":core",
|
||||||
|
|||||||
+2
-1
@@ -26,7 +26,7 @@ include ":kotlin-build-common",
|
|||||||
":compiler:frontend",
|
":compiler:frontend",
|
||||||
":compiler:frontend.java",
|
":compiler:frontend.java",
|
||||||
":compiler:frontend.script",
|
":compiler:frontend.script",
|
||||||
":compiler:compiler-runner",
|
":kotlin-compiler-runner",
|
||||||
":compiler:cli-common",
|
":compiler:cli-common",
|
||||||
":compiler:ir.tree",
|
":compiler:ir.tree",
|
||||||
":compiler:ir.psi2ir",
|
":compiler:ir.psi2ir",
|
||||||
@@ -160,6 +160,7 @@ project(':compiler:cli-common').projectDir = "$rootDir/compiler/cli/cli-common"
|
|||||||
project(':kotlin-runner').projectDir = "$rootDir/compiler/cli/cli-runner" as File
|
project(':kotlin-runner').projectDir = "$rootDir/compiler/cli/cli-runner" as File
|
||||||
project(':compiler:daemon-common').projectDir = "$rootDir/compiler/daemon/daemon-common" as File
|
project(':compiler:daemon-common').projectDir = "$rootDir/compiler/daemon/daemon-common" as File
|
||||||
project(':kotlin-daemon-client').projectDir = "$rootDir/compiler/daemon/daemon-client" as File
|
project(':kotlin-daemon-client').projectDir = "$rootDir/compiler/daemon/daemon-client" as File
|
||||||
|
project(':kotlin-compiler-runner').projectDir = "$rootDir/compiler/compiler-runner" as File
|
||||||
project(':kotlin-ant').projectDir = "$rootDir/ant" as File
|
project(':kotlin-ant').projectDir = "$rootDir/ant" as File
|
||||||
project(':compiler:ir.tree').projectDir = "$rootDir/compiler/ir/ir.tree" as File
|
project(':compiler:ir.tree').projectDir = "$rootDir/compiler/ir/ir.tree" as File
|
||||||
project(':compiler:ir.psi2ir').projectDir = "$rootDir/compiler/ir/ir.psi2ir" as File
|
project(':compiler:ir.psi2ir').projectDir = "$rootDir/compiler/ir/ir.psi2ir" as File
|
||||||
|
|||||||
Reference in New Issue
Block a user