Add bintray publishing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7b31015c3b
commit
299b79a499
15
.drone.yml
15
.drone.yml
@ -9,6 +9,21 @@ steps:
|
|||||||
path: /root/.gradle
|
path: /root/.gradle
|
||||||
commands:
|
commands:
|
||||||
- ./gradlew check
|
- ./gradlew check
|
||||||
|
- name: publish
|
||||||
|
image: java:openjdk-8
|
||||||
|
volumes:
|
||||||
|
- name: gradle
|
||||||
|
path: /root/.gradle
|
||||||
|
environment:
|
||||||
|
BINTRAY_KEY:
|
||||||
|
from_secret: bintray-key
|
||||||
|
BINTRAY_USER:
|
||||||
|
from_secret: bintray-user
|
||||||
|
commands:
|
||||||
|
- ./gradlew bintrayUpload -Pbintray.key=$BINTRAY_KEY -Pbintray.user=$BINTRAY_USER
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: gradle
|
- name: gradle
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
plugins {
|
plugins {
|
||||||
java
|
`java-library`
|
||||||
|
`maven-publish`
|
||||||
kotlin("jvm") version "1.3.72"
|
kotlin("jvm") version "1.3.72"
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.9.1"
|
id("io.gitlab.arturbosch.detekt") version "1.9.1"
|
||||||
|
id ("com.jfrog.bintray") version "1.8.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "it.unisannio.assd.untori"
|
group = "it.unisannio.assd.untori"
|
||||||
@ -23,6 +24,54 @@ dependencies {
|
|||||||
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.9.1")
|
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.9.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("mavenJava") {
|
||||||
|
from(components["java"])
|
||||||
|
versionMapping {
|
||||||
|
usage("java-api") {
|
||||||
|
fromResolutionOf("runtimeClasspath")
|
||||||
|
}
|
||||||
|
usage("java-runtime") {
|
||||||
|
fromResolutionResult()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pom {
|
||||||
|
name.set(project.name)
|
||||||
|
description.set("A Kotlin implementation of the TCN protocol.")
|
||||||
|
url.set("https://git.norangeb.it/norangebit/TKN")
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name.set("The MIT License")
|
||||||
|
url.set("https://opensource.org/licenses/MIT")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bintray {
|
||||||
|
user = properties["bintray.user"].toString()
|
||||||
|
key = properties["bintray.key"].toString()
|
||||||
|
publish = true
|
||||||
|
|
||||||
|
setPublications("mavenJava")
|
||||||
|
|
||||||
|
pkg.apply {
|
||||||
|
repo = "untori"
|
||||||
|
name = "TKN"
|
||||||
|
userOrg = "untori"
|
||||||
|
vcsUrl = "https://git.norangeb.it/norangebit/TKN"
|
||||||
|
description = "A Kotlin implementation of the TCN protocol."
|
||||||
|
setLicenses("MIT")
|
||||||
|
desc = description
|
||||||
|
|
||||||
|
version.name = "0.0.1-alpha"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
configure<JavaPluginConvention> {
|
configure<JavaPluginConvention> {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user