Rename artifacts, fix dependencies and artifact contents
This commit is contained in:
@@ -104,6 +104,7 @@ extra["versions.jline"] = "3.3.1"
|
||||
extra["versions.junit"] = "4.12"
|
||||
extra["versions.javaslang"] = "2.0.6"
|
||||
extra["versions.ant"] = "1.8.2"
|
||||
extra["versions.android"] = "2.3.1"
|
||||
|
||||
extra["ideaCoreSdkJars"] = arrayOf("annotations", "asm-all", "guava", "intellij-core", "jdom", "jna", "log4j", "picocontainer",
|
||||
"snappy-in-java", "streamex", "trove4j", "xpp3-1.1.4-min", "xstream")
|
||||
|
||||
@@ -83,6 +83,7 @@ fun Project.runtimeJar(taskName: String = "jar", body: Jar.() -> Unit = {}): Jar
|
||||
|
||||
fun Project.sourcesJar(body: Jar.() -> Unit = {}): Jar =
|
||||
getOrCreateTask("sourcesJar") {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
setupPublicJar("Sources")
|
||||
try {
|
||||
project.pluginManager.withPlugin("java-base") {
|
||||
@@ -98,6 +99,7 @@ fun Project.sourcesJar(body: Jar.() -> Unit = {}): Jar =
|
||||
|
||||
fun Project.javadocJar(body: Jar.() -> Unit = {}): Jar =
|
||||
getOrCreateTask("javadocJar") {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
setupPublicJar("JavaDoc")
|
||||
tasks.findByName("javadoc")?.let{ it as Javadoc }?.takeIf { it.enabled }?.let {
|
||||
dependsOn(it)
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
||||
}
|
||||
},
|
||||
":android-extensions-compiler": {
|
||||
":kotlin-android-extensions": {
|
||||
"conventions": {
|
||||
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||
"java": "org.gradle.api.plugins.JavaPluginConvention",
|
||||
|
||||
@@ -14,7 +14,7 @@ dependencies {
|
||||
|
||||
compile project(':kotlin-stdlib')
|
||||
compileOnly project(path: ':kotlin-compiler-embeddable', configuration: 'runtimeJar')
|
||||
compile project(':kotlin-allopen-compiler-plugin')
|
||||
compileOnly project(':kotlin-allopen-compiler-plugin')
|
||||
|
||||
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
|
||||
}
|
||||
@@ -32,8 +32,13 @@ def originalSrc = "$kotlin_root/plugins/allopen/allopen-cli/src"
|
||||
|
||||
//compileKotlin.dependsOn preprocessSources
|
||||
|
||||
evaluationDependsOn(":kotlin-allopen-compiler-plugin")
|
||||
|
||||
jar {
|
||||
from(originalSrc) { include("META-INF/**") }
|
||||
// from(originalSrc) { include("META-INF/**") }
|
||||
from(project(":kotlin-allopen-compiler-plugin").sourceSets.main.output.classesDirs)
|
||||
from(project(":kotlin-allopen-compiler-plugin").sourceSets.main.output.resourcesDir)
|
||||
manifestAttributes(manifest, project)
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -19,4 +19,8 @@ dependencies {
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
jar {
|
||||
manifestAttributes(manifest, project)
|
||||
}
|
||||
@@ -19,7 +19,7 @@ dependencies {
|
||||
testCompile project(path: ':examples:annotation-processor-example')
|
||||
testCompile project(':kotlin-stdlib-jre8')
|
||||
testCompile project(':kotlin-reflect')
|
||||
testCompile project(':android-extensions-compiler')
|
||||
testCompile project(':kotlin-android-extensions')
|
||||
testCompile project(path: ':kotlin-build-common', configuration: 'tests-jar')
|
||||
testCompile project(path: ':compiler:incremental-compilation-impl', configuration: 'tests-jar')
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ dependencies {
|
||||
compile project(path: ':kotlin-compiler-embeddable', configuration: "runtimeJar")
|
||||
|
||||
compile project(':kotlin-stdlib')
|
||||
compile project(':android-extensions-compiler')
|
||||
compile project(':kotlin-android-extensions')
|
||||
compile project(':kotlin-build-common')
|
||||
compile project(':kotlin-compiler-runner')
|
||||
// compileOnly project(":compiler:daemon")
|
||||
@@ -81,6 +81,7 @@ jar.dependsOn agp25Classes
|
||||
jar {
|
||||
from compileGroovy.destinationDir
|
||||
from sourceSets.agp25.output.classesDir
|
||||
manifestAttributes(manifest, project)
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -20,7 +20,7 @@ dependencies {
|
||||
|
||||
compile project(':kotlin-stdlib')
|
||||
compileOnly project(':compiler')
|
||||
compile project(':kotlin-noarg-compiler-plugin')
|
||||
compileOnly project(':kotlin-noarg-compiler-plugin')
|
||||
|
||||
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
|
||||
}
|
||||
@@ -38,8 +38,13 @@ def originalSrc = "$kotlin_root/plugins/noarg/noarg-cli/src"
|
||||
|
||||
//compileKotlin.dependsOn preprocessSources
|
||||
|
||||
evaluationDependsOn(":kotlin-noarg-compiler-plugin")
|
||||
|
||||
jar {
|
||||
from(originalSrc) { include("META-INF/**") }
|
||||
// from(originalSrc) { include("META-INF/**") }
|
||||
from(project(":kotlin-noarg-compiler-plugin").sourceSets.main.output.classesDirs)
|
||||
from(project(":kotlin-noarg-compiler-plugin").sourceSets.main.output.resourcesDir)
|
||||
manifestAttributes(manifest, project)
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -20,7 +20,7 @@ dependencies {
|
||||
|
||||
compile project(':kotlin-stdlib')
|
||||
compileOnly project(':compiler')
|
||||
compile project(':kotlin-sam-with-receiver-compiler-plugin')
|
||||
compileOnly project(':kotlin-sam-with-receiver-compiler-plugin')
|
||||
|
||||
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
|
||||
}
|
||||
@@ -38,8 +38,13 @@ def originalSrc = "$kotlin_root/plugins/sam-with-receiver/sam-with-receiver-cli/
|
||||
|
||||
//compileKotlin.dependsOn preprocessSources
|
||||
|
||||
evaluationDependsOn(":kotlin-sam-with-receiver-compiler-plugin")
|
||||
|
||||
jar {
|
||||
from(originalSrc) { include("META-INF/**") }
|
||||
// from(originalSrc) { include("META-INF/**") }
|
||||
from(project(":kotlin-sam-with-receiver-compiler-plugin").sourceSets.main.output.classesDirs)
|
||||
from(project(":kotlin-sam-with-receiver-compiler-plugin").sourceSets.main.output.resourcesDir)
|
||||
manifestAttributes(manifest, project)
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -4,8 +4,9 @@ description = "Kotlin Android Extensions Runtime"
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
dependencies {
|
||||
compile(projectDist(":kotlin-stdlib"))
|
||||
compile(project(":kotlin-stdlib"))
|
||||
compile(ideaPluginDeps("layoutlib", plugin = "android"))
|
||||
runtime(commonDep("com.google.android", "android"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
@@ -30,7 +30,7 @@ dependencies {
|
||||
compileOnly(project(":compiler:backend"))
|
||||
compileOnly(project(":kotlin-android-extensions-runtime"))
|
||||
runtime(projectRuntimeJar(":kotlin-compiler-embeddable"))
|
||||
runtime("com.google.android:android:2.3.1")
|
||||
runtime(commonDep("com.google.android", "android"))
|
||||
}
|
||||
|
||||
//val originalSrc = "$projectDir/src"
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
* Copyright 2010-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.gradle.jvm.tasks.Jar
|
||||
|
||||
+2
-2
@@ -71,7 +71,7 @@ include ":kotlin-build-common",
|
||||
":plugins:lint",
|
||||
":plugins:kapt3-idea",
|
||||
":plugins:android-extensions-compiler",
|
||||
":android-extensions-compiler",
|
||||
":kotlin-android-extensions",
|
||||
":kotlin-android-extensions-runtime",
|
||||
":plugins:android-extensions-ide",
|
||||
":plugins:android-extensions-jps",
|
||||
@@ -171,7 +171,7 @@ project(':compiler:ir.ir2cfg').projectDir = "$rootDir/compiler/ir/ir.ir2cfg" as
|
||||
project(':kotlin-jps-plugin').projectDir = "$rootDir/prepare/jps-plugin" as File
|
||||
project(':idea:idea-android-output-parser').projectDir = "$rootDir/idea/idea-android/idea-android-output-parser" as File
|
||||
project(':plugins:android-extensions-compiler').projectDir = "$rootDir/plugins/android-extensions/android-extensions-compiler" as File
|
||||
project(':android-extensions-compiler').projectDir = "$rootDir/prepare/android-extensions-compiler-gradle" as File
|
||||
project(':kotlin-android-extensions').projectDir = "$rootDir/prepare/android-extensions-compiler-gradle" as File
|
||||
project(':kotlin-android-extensions-runtime').projectDir = "$rootDir/plugins/android-extensions/android-extensions-runtime" as File
|
||||
project(':plugins:android-extensions-ide').projectDir = "$rootDir/plugins/android-extensions/android-extensions-idea" as File
|
||||
project(':plugins:android-extensions-jps').projectDir = "$rootDir/plugins/android-extensions/android-extensions-jps" as File
|
||||
|
||||
@@ -20,6 +20,8 @@ val ideaCommunityPlugin by configurations.creating
|
||||
|
||||
val ideaProjectResources = project(":idea").the<JavaPluginConvention>().sourceSets["main"].output.resourcesDir
|
||||
|
||||
evaluationDependsOn(":prepare:idea-plugin")
|
||||
|
||||
dependencies {
|
||||
compile(projectDist(":kotlin-reflect"))
|
||||
compile(projectDist(":kotlin-stdlib"))
|
||||
|
||||
Reference in New Issue
Block a user