From b536699655e40c62cd603e1f98869786566604bd Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 10 Sep 2019 15:15:09 +0200 Subject: WIP on restructuring --- coreDependencies/build.gradle | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 coreDependencies/build.gradle (limited to 'coreDependencies/build.gradle') diff --git a/coreDependencies/build.gradle b/coreDependencies/build.gradle new file mode 100644 index 00000000..4677309c --- /dev/null +++ b/coreDependencies/build.gradle @@ -0,0 +1,66 @@ +repositories { + ivy(ivyrepo) +} + +configurations { + kotlin_plugin_full +} + +dependencies { + final String ijVersion = "20" + ideaVersion.take(2) + "." + ideaVersion[2] + kotlin_plugin_full "teamcity:kotlin-plugin-$bundled_kotlin_compiler_version-IJ$ijVersion-1:$bundled_kotlin_compiler_version@zip" +} + +def intellijCoreAnalysis() { + return zipTree(project(":").configurations.intellijCore.singleFile).matching ({ + include("intellij-core-analysis.jar") + }) +} + +def kotlinPluginDependency() { + + return zipTree(project.configurations.kotlin_plugin_full.singleFile).matching({ + include("Kotlin/lib/kotlin-plugin.jar") + }) +} + +apply plugin: 'java' +apply plugin: 'com.github.johnrengelman.shadow' + +dependencies { + compile kotlinPluginDependency() + compile intellijCoreAnalysis() + compile "teamcity:kotlin-ide-common:$bundled_kotlin_compiler_version" +} + +shadowJar { + baseName = 'dokka-dependencies' + classifier = '' + + configurations { + exclude compileOnly + } + + + exclude 'colorScheme/**' + exclude 'fileTemplates/**' + exclude 'inspectionDescriptions/**' + exclude 'intentionDescriptions/**' + exclude 'tips/**' + exclude 'messages/**' + + exclude 'src/**' +} + +apply plugin: 'maven-publish' + +publishing { + publications { + dokkaDependencies(MavenPublication) { publication -> + artifactId = 'dokka-dependencies' + project.shadow.component(publication) + } + } +} + +bintrayPublication(project, ["dokkaDependencies"]) \ No newline at end of file -- cgit