Fix sources/javadoc artifactsi in gradle tools, separating android extensions runtime

This commit is contained in:
Ilya Chernikov
2017-09-10 21:39:47 +02:00
parent 403f2c6f99
commit a8c45819a1
10 changed files with 261 additions and 14 deletions
@@ -3,6 +3,8 @@ description = "Kotlin Android Extensions Compiler"
apply { plugin("kotlin") }
val packIntoJar by configurations.creating
dependencies {
compile(ideaSdkCoreDeps("intellij-core"))
compile(project(":compiler:util"))
@@ -10,21 +12,19 @@ dependencies {
compile(project(":compiler:frontend"))
compile(project(":compiler:frontend.java"))
compile(project(":compiler:backend"))
compile(ideaPluginDeps("layoutlib", plugin = "android"))
compileOnly(project(":kotlin-android-extensions-runtime"))
packIntoJar(projectClasses(":kotlin-android-extensions-runtime"))
}
sourceSets {
"main" {
projectDefault()
java.srcDir("../android-extensions-runtime/src")
}
"main" { projectDefault() }
"test" {}
}
runtimeJar ()
runtimeJar {
from(packIntoJar)
}
dist()
ideaPlugin()
publish()
@@ -0,0 +1,36 @@
/*
* 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.
*/
description = "Kotlin Android Extensions Runtime"
apply { plugin("kotlin") }
dependencies {
compile(projectDist(":kotlin-stdlib"))
compile(ideaPluginDeps("layoutlib", plugin = "android"))
}
sourceSets {
"main" { projectDefault() }
"test" {}
}
runtimeJar ()
classesDirsArtifact()
publish()