Skip to content

Commit

Permalink
fix: plugin publish and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Ortlepp authored and Christian Ortlepp committed Nov 27, 2023
1 parent a9a1a0b commit ef15629
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
`java-gradle-plugin`
groovy

kotlin("jvm") version "1.9.20"
kotlin("jvm") version "1.9.21"

// test coverage
jacoco
Expand All @@ -48,10 +48,10 @@ plugins {
id("org.jetbrains.dokka") version "1.9.10"

// code analysis for kotlin
id("io.gitlab.arturbosch.detekt") version "1.18.0"
id("io.gitlab.arturbosch.detekt") version "1.23.4"

// plugin for publishing to Gradle Portal
id("com.gradle.plugin-publish") version "1.0.0"
id("com.gradle.plugin-publish") version "1.2.1"
}

scm {
Expand Down Expand Up @@ -122,7 +122,6 @@ gradlePlugin {
}
}
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
Expand All @@ -134,8 +133,8 @@ if (project.version.toString().endsWith("-SNAPSHOT")) {
}

detekt {
source = files("src/main/kotlin")
config = files("detekt.yml")
source.setFrom(files("src/main/kotlin"))
config.setFrom(files("detekt.yml"))
}

val shaded by configurations.creating
Expand Down Expand Up @@ -309,12 +308,13 @@ dependencies {

implementation(gradleKotlinDsl())

implementation("org.apache.solr:solr-solrj:8.11.2")
implementation("org.apache.solr:solr-solrj:9.4.0")
implementation("com.bmuschko:gradle-docker-plugin:8.1.0")
implementation("com.intershop.gradle.icm:icm-gradle-plugin:5.8.0")
implementation("com.intershop.gradle.jobrunner:icmjobrunner:1.0.5")

testImplementation("com.intershop.gradle.test:test-gradle-plugin:4.1.2")
testImplementation(gradleTestKit())
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.4")
}

2 changes: 1 addition & 1 deletion detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ exceptions:
- RuntimeException

formatting:
active: true
active: false
android: false
autoCorrect: true
AnnotationOnSeparateLine:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.options.Option
import java.util.concurrent.TimeUnit
import javax.inject.Inject

abstract class AbstractSolrAdminTask @Inject constructor(objectFactory: ObjectFactory) : DefaultTask() {
Expand Down Expand Up @@ -64,7 +65,7 @@ abstract class AbstractSolrAdminTask @Inject constructor(objectFactory: ObjectFa

}

private fun getClient(connectStr: String):CloudSolrClient {
private fun getClient(connectStr: String): CloudSolrClient {
val pathList = connectStr.split("/")

val path = if (pathList.size > 1) {
Expand All @@ -74,9 +75,8 @@ abstract class AbstractSolrAdminTask @Inject constructor(objectFactory: ObjectFa
}
val zkHosts = pathList[0].split(";")

val client = CloudSolrClient.Builder(zkHosts, path).build()
client.setZkConnectTimeout(connectionTimeout.get())

return client
return CloudSolrClient.Builder(zkHosts, path)
.withZkConnectTimeout(connectionTimeout.get(), TimeUnit.MILLISECONDS)
.build()
}
}

0 comments on commit ef15629

Please sign in to comment.