Skip to content

Commit

Permalink
Use vanniktech publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
koral-- committed Mar 20, 2021
1 parent 2febb08 commit e5e7c07
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 30 deletions.
29 changes: 4 additions & 25 deletions dispatcher/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import java.net.URL

plugins {
id("maven-publish")
id("signing")
id("jacoco")
jacoco
id("org.jetbrains.kotlin.jvm") version ("1.4.31")
id("org.jetbrains.dokka") version ("1.4.30")
id("com.vanniktech.maven.publish") version ("0.13.0")
}

dependencies {
Expand All @@ -32,23 +29,5 @@ tasks.jacocoTestReport {
}
}

group = property("POM_GROUP") as String
version = property("POM_VERSION") as String

tasks.dokkaJavadoc {
outputDirectory.set(tasks.javadoc.get().destinationDir)
dokkaSourceSets {
configureEach {
includes.from(files("extra.md"))
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL(property("POM_URL") as String))
remoteLineSuffix.set("#L")
}
}
}
}

tasks.named("javadoc") {
dependsOn("dokkaJavadoc")
}
group = property("GROUP") as String
version = property("VERSION_NAME") as String
21 changes: 16 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
POM_VERSION=1.1.2-SNAPSHOT
POM_GROUP=pl.droidsonroids.testing
GROUP=pl.droidsonroids.testing
VERSION_NAME=1.1.2
POM_INCEPTION_YEAR=2017
POM_ARTIFACT_ID=mockwebserver-path-dispatcher
POM_DESCRIPTION=Mockwebserver path dispatcher
POM_URL=https://github.com/DroidsOnRoids/mockwebserver-path-dispatcher
POM_SCM_CONNECTION_URL=scm:[email protected]:DroidsOnRoids/mockwebserver-path-dispatcher.git
POM_NAME=Mockwebserver path dispatcher
org.gradle.jvmargs=-Xmx1536m
POM_URL=https://github.com/DroidsOnRoids/mockwebserver-path-dispatcher

POM_SCM_URL=https://github.com/DroidsOnRoids/mockwebserver-path-dispatcher
POM_SCM_CONNECTION=scm:[email protected]:DroidsOnRoids/mockwebserver-path-dispatcher.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:DroidsOnRoids/mockwebserver-path-dispatcher.git

POM_LICENCE_NAME=MIT License
POM_LICENCE_URL=https://opensource.org/licenses/MIT
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=koral
POM_DEVELOPER_NAME=Karol Wrótniak
POM_DEVELOPER_URL=https://github.com/koral--/

0 comments on commit e5e7c07

Please sign in to comment.