Skip to content

Commit 1a66a00

Browse files
committed
publish
1 parent 18c71d6 commit 1a66a00

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,52 @@ dependencies {
3232
implementation("com.google.jimfs:jimfs:1.1")
3333
implementation("io.github.java-diff-utils:java-diff-utils:4.5")
3434
}
35+
36+
val sourcesJar by tasks.registering(Jar::class) {
37+
archiveClassifier.set("sources")
38+
from(sourceSets.main.get().allSource)
39+
}
40+
41+
val javadocJar by tasks.registering(Jar::class) {
42+
dependsOn("javadoc")
43+
archiveClassifier.set("javadoc")
44+
from(tasks.javadoc.get().destinationDir)
45+
}
46+
47+
artifacts {
48+
archives(sourcesJar)
49+
archives(javadocJar)
50+
}
51+
52+
bintray {
53+
user = project.ext.get("bintrayUser").toString()
54+
key = project.ext.get("bintrayKey").toString()
55+
56+
setPublications("processor")
57+
58+
pkg.apply {
59+
repo = "openapi-processor"
60+
name = "openapi-processor-test"
61+
//userOrg = 'openapi-processor'
62+
setLicenses("Apache-2.0")
63+
vcsUrl = "https://github.com/hauner/openapi-processor-test"
64+
65+
version.apply {
66+
name = project.version.toString()
67+
}
68+
}
69+
}
70+
71+
publishing {
72+
publications {
73+
create<MavenPublication>("processor") {
74+
from(components["java"])
75+
artifact(sourcesJar.get())
76+
artifact(javadocJar.get())
77+
78+
groupId = project.group.toString()
79+
artifactId = project.name
80+
version = project.version.toString()
81+
}
82+
}
83+
}

0 commit comments

Comments
 (0)