File tree Expand file tree Collapse file tree 3 files changed +93
-35
lines changed
Expand file tree Collapse file tree 3 files changed +93
-35
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ plugins {
44 id ' java-library'
55 id ' maven-publish'
66 id ' com.jfrog.bintray' version ' 1.8.5'
7+ id ' com.jfrog.artifactory' version ' 4.15.2'
78 id ' org.jetbrains.kotlin.jvm' version ' 1.3.72'
89 id ' org.jetbrains.dokka' version ' 0.10.1'
910 id ' org.unbroken-dome.test-sets' version ' 3.0.1'
1011 id " com.github.ben-manes.versions" version " 0.28.0"
1112}
1213
13- group ' com.github.hauner.openapi '
14- version ' 1.0.0.M14 '
14+ group projectGroupId
15+ version projectVersion
1516
1617java {
1718 sourceCompatibility = JavaVersion . VERSION_1_8
@@ -140,36 +141,4 @@ dokka {
140141 outputDirectory = " $buildDir /docs/kotlin"
141142}
142143
143-
144- bintray {
145- user = bintrayUser
146- key = bintrayKey
147- publications = [' processor' ]
148-
149- pkg {
150- repo = ' openapi-processor'
151- name = ' openapi-processor-spring'
152- // userOrg = 'openapi-generatr'
153- licenses = [' Apache-2.0' ]
154- vcsUrl = ' https://github.com/hauner/openapi-processor-spring'
155-
156- version {
157- name = project. version
158- }
159- }
160- }
161-
162-
163- publishing {
164- publications {
165- processor (MavenPublication ) {
166- from components. java
167- artifact sourcesJar
168- artifact javadocJar
169-
170- groupId project. group
171- artifactId project. name
172- version project. version
173- }
174- }
175- }
144+ apply from : " ${ rootProject.rootDir} /gradle/publishing.gradle"
Original file line number Diff line number Diff line change 1+ projectVersion =1.0.0.M15-SNAPSHOT
2+ projectGroupId =io.openapiprocessor
3+
4+ projectUrl =http://openapiprocessor.io
5+ projectTitle =openapi-processor
6+ projectDesc =converts OpenAPI yaml descriptions to a target format, e.g. Java code (Spring) or json
7+
8+ projectGithubRepo =openapi-processor/openapi-processor-spring
Original file line number Diff line number Diff line change 1+ def pomConfig = {
2+ licenses {
3+ license {
4+ name ' The Apache Software License, Version 2.0'
5+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
6+ distribution " repo"
7+ }
8+ }
9+ developers {
10+ developer {
11+ id ' hauner'
12+ name ' Martin Hauner'
13+ }
14+ }
15+
16+ scm {
17+ url " https://github.com/${ project.projectGithubRepo} " . toString ()
18+ }
19+ }
20+
21+ publishing {
22+ publications {
23+ projectArtifacts (MavenPublication ) {
24+ from components. java
25+ artifact sourcesJar
26+ artifact javadocJar
27+
28+ groupId project. group
29+ artifactId project. name
30+ version project. version
31+
32+ pom. withXml {
33+ def root = asNode()
34+ root. appendNode(' name' , project. projectTitle)
35+ root. appendNode(' description' , project. projectDesc)
36+ root. appendNode(' url' , project. projectUrl)
37+ root. children(). last() + pomConfig
38+ }
39+ }
40+ }
41+ }
42+
43+
44+ artifactory {
45+ contextUrl = ' https://oss.jfrog.org'
46+ publish {
47+ repository {
48+ repoKey = ' oss-snapshot-local'
49+ username = bintrayUser
50+ password = bintrayKey
51+ }
52+ defaults {
53+ publications(' projectArtifacts' )
54+ publishArtifacts = true
55+ publishPom = true
56+ }
57+ }
58+ resolve {
59+ repoKey = ' jcenter'
60+ }
61+ }
62+
63+
64+ bintray {
65+ user = bintrayUser
66+ key = bintrayKey
67+ publications = [' projectArtifacts' ]
68+
69+ pkg {
70+ repo = ' primary'
71+ name = project. name
72+ userOrg = ' openapi-processor'
73+ licenses = [' Apache-2.0' ]
74+ vcsUrl = " https://github.com/${ project.projectGithubRepo} " . toString ()
75+ websiteUrl = projectUrl
76+ desc = " ${ project.projectTitle} - ${ project.projectDesc} - ${ project.name} module" . toString()
77+ version {
78+ name = project. version
79+ }
80+ }
81+ }
You can’t perform that action at this time.
0 commit comments