Skip to content

Commit

Permalink
1.4.31 test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinAman committed Apr 2, 2021
1 parent f9ac100 commit 54b53bd
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Project Settings
dokka_version_base=1.4.30
dokka_version_base=1.4.31
dokka_publication_channels=bintray-kotlin-dev&space-dokka-dev
dokka_integration_test_parallelism=2
# Versions
kotlin_version=1.4.30
kotlin_version=1.4.31
coroutines_version=1.4.1
kotlinx_html_version=0.7.2
kotlin_plugin_version=202-1.4.30-release-IJ8194.7
#kotlin_plugin_version=202-1.4.30-release-IJ8194.7
kotlin_plugin_version=212-1.4.31-release-IJ510
idea_version=202.7660.26
language_version=1.4
# Code style
kotlin.code.style=official
# Gradle settings
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
org.gradle.parallel=true
org.gradle.parallel=true
34 changes: 34 additions & 0 deletions kotlin-analysis/intellij-dependency/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.DokkaPublicationBuilder.Component.Shadow
import org.jetbrains.registerDokkaArtifactPublication
import java.net.URL

plugins {
id("com.github.johnrengelman.shadow")
Expand All @@ -14,6 +15,8 @@ repositories {
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide")
maven("https://kotlin.bintray.com/kotlin-ide-plugin-dependencies")
maven("https://jetbrains.bintray.com/intellij-third-party-dependencies")
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies")
maven("https://cache-redirector.jetbrains.com/intellij-dependencies")
}

val intellijCore: Configuration by configurations.creating
Expand All @@ -37,6 +40,37 @@ dependencies {
}

tasks {
val getDependenciesUrls by creating {
project.repositories.forEach { repository ->
val dependencyGroup = "org.jetbrains.intellij.deps"
val dependencyName = "log4j"
val dependencyVersion = "1.2.17" //1.2.17.1
val url = (repository as MavenArtifactRepository).url.let {
if (!it.toString().endsWith("/")) {
"$it/"
} else {
it
}
}
val jarUrl = String.format(
"%s%s/%s/%s/%s-%s.jar", url,
dependencyGroup.replace('.', '/'), dependencyName, dependencyVersion,
dependencyName, dependencyVersion
)

kotlin.runCatching {
val jarFile = URL(jarUrl)
val inStream = jarFile.openStream();
if (inStream != null) {
println(
String.format("%s:%s:%s", dependencyGroup, dependencyName, dependencyVersion)
+ " -> " + jarUrl
)
}
}
}
}

shadowJar {
val dokka_version: String by project
archiveFileName.set("dokka-kotlin-analysis-intellij-$dokka_version.jar")
Expand Down

0 comments on commit 54b53bd

Please sign in to comment.