Skip to content

Commit

Permalink
Switch from gradle-bintray-plugin to maven-publish plugin
Browse files Browse the repository at this point in the history
Closing #4
  • Loading branch information
breucode committed Oct 25, 2020
1 parent 6aa301e commit 14fe218
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Check before publish
run: ./gradlew check
- name: Publish package
run: ./gradlew bintrayUpload
run: ./gradlew publish
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repositories {

dependencies {
...
implementation("de.breuco:envkeg:0.4.0")
implementation("de.breuco:envkeg:0.4.1")
...
}
```
Expand All @@ -68,7 +68,7 @@ dependencies {
<dependency>
<groupId>de.breuco</groupId>
<artifactId>envkeg</artifactId>
<version>0.4.0</version>
<version>0.4.1</version>
</dependency>
</dependencies>
...
Expand Down
33 changes: 13 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.util.Date

plugins {
kotlin("jvm") version "1.4.10"
Expand All @@ -10,7 +9,6 @@ plugins {
id("com.github.ben-manes.versions") version "0.33.0"
id("maven-publish")
id("org.jetbrains.dokka") version "1.4.10.2"
id("com.jfrog.bintray") version "1.8.5"
}

val javaVersion = JavaVersion.VERSION_1_8
Expand All @@ -20,7 +18,7 @@ val pomDesc = "A very small boilerplate-free kotlin library to read values " +
val artifactName = "envkeg"
val artifactGroup = "de.breuco"
group = artifactGroup
val artifactVersion = "0.4.0"
val artifactVersion = "0.4.1"
version = artifactVersion

spotless {
Expand Down Expand Up @@ -143,29 +141,24 @@ publishing {
developers {
developer {
id.set("breucode")
name.set("Pascal Breuer")
email.set("pbreuer@breuco.de")
}
}
scm {
url.set("https://github.com/breucode/envkeg.git")
}
}
}
}
}

bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
setPublications("bintray")

pkg.apply {
repo = "breucode"
name = artifactName
userOrg = "breucode"
setLicenses("MIT")
vcsUrl = "https://github.com/breucode/envkeg.git"
version.apply {
name = artifactVersion
desc = pomDesc
released = Date().toString()
vcsTag = artifactVersion
repositories {
maven {
url = uri("https://api.bintray.com/maven/breucode/breucode/envkeg")
credentials {
username = System.getenv("BINTRAY_USER")
password = System.getenv("BINTRAY_KEY")
}
}
}
}

0 comments on commit 14fe218

Please sign in to comment.