Skip to content

Commit

Permalink
Merge pull request #2 from link-intersystems/feature/use-previous-ver…
Browse files Browse the repository at this point in the history
…sion-of-own-plugins

Use the previous version of my own plugins.
  • Loading branch information
renelink authored Sep 7, 2024
2 parents 52ea7cc + ddb8fd8 commit da43ae6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 51 deletions.
53 changes: 3 additions & 50 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,38 +1,14 @@
plugins {
`kotlin-dsl`
id("maven-publish") // if you never publish the plugin, you may remove this (but it also does not hurt)
signing
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
id("com.link-intersystems.gradle.maven-central-artifact")
id("com.link-intersystems.gradle.maven-central-project")
id("com.link-intersystems.gradle.maven-central-java")
id("net.researchgate.release") version "3.0.2"
}


dependencies {
implementation("io.github.gradle-nexus:publish-plugin:2.0.0")

testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.2")
testImplementation("org.mockito:mockito-core:5.11.0")
}


java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}

withSourcesJar()
withJavadocJar()
}


nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}


Expand Down Expand Up @@ -74,29 +50,6 @@ publishing.repositories {
}
}


signing {
val signingKey: String? by project
val signingKeyExists = signingKey != null

val signingPassword: String? by project
val signingPasswordExists = signingPassword != null

logger.debug("signingKey exists = {}, signingPassword {}", signingKeyExists, signingPasswordExists)

val signingEnabled = signingKey != null && signingPassword != null
logger.debug("signingEnabled = {}", signingEnabled)

isRequired = signingEnabled

sign(publishing.publications)

if (signingEnabled) {
useInMemoryPgpKeys(signingKey, signingPassword)
}
}


val pushToRemoteName = if (project.findProperty("pushToRemote") != null) "origin" else ""

release {
Expand Down
5 changes: 4 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ pluginManagement {
}

plugins {
id("com.link-intersystems.gradle.multi-module") version "+"
id("com.link-intersystems.gradle.multi-module") version "0.5.4"
id("com.link-intersystems.gradle.maven-central-artifact") version "0.0.10" apply false
id("com.link-intersystems.gradle.maven-central-project") version "0.0.10" apply false
id("com.link-intersystems.gradle.maven-central-java") version "0.0.10" apply false
}

dependencyResolutionManagement {
Expand Down

0 comments on commit da43ae6

Please sign in to comment.