Skip to content

Commit

Permalink
Add publishing script dependecy
Browse files Browse the repository at this point in the history
  • Loading branch information
adimiz1 committed May 12, 2022
1 parent f5b04a2 commit a659f93
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
14 changes: 14 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.0.0"
}

buildscript {
repositories {
google()
Expand All @@ -8,4 +12,14 @@ buildscript {
classpath("com.android.tools.build:gradle:4.1.2")
classpath(kotlin("gradle-plugin", version = "1.3.72"))
}
}

nexusPublishing {
repositories {
sonatype {
packageGroup.set(properties["publishGroupId"].toString())
username.set(properties["ossrhUsername"].toString())
password.set(properties["ossrhPassword"].toString())
}
}
}
11 changes: 0 additions & 11 deletions buildSrc/src/main/kotlin/cloudinary_lib.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ plugins {
id("org.jetbrains.dokka")
signing
`maven-publish`
id("de.marcphilipp.nexus-publish")
}

repositories {
Expand All @@ -13,14 +12,4 @@ repositories {

tasks.withType<GenerateModuleMetadata>().configureEach {
enabled = false
}

nexusPublishing {
repositories {
sonatype {
packageGroup.set(properties["publishGroupId"].toString())
username.set(properties["ossrhUsername"].toString())
password.set(properties["ossrhPassword"].toString())
}
}
}

0 comments on commit a659f93

Please sign in to comment.