File tree Expand file tree Collapse file tree 3 files changed +93
-33
lines changed
Expand file tree Collapse file tree 3 files changed +93
-33
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ plugins {
33 id ' java-library'
44 id ' maven-publish'
55 id ' com.jfrog.bintray' version ' 1.8.5'
6+ id ' com.jfrog.artifactory' version ' 4.15.2'
67 id " com.github.ben-manes.versions" version " 0.28.0"
78}
89
9- group ' io.openapiprocessor '
10- version ' 1.1.0.M1-SNAPSHOT '
10+ group projectGroupId
11+ version projectVersion
1112
1213java {
1314 sourceCompatibility = JavaVersion . VERSION_1_8
@@ -41,34 +42,4 @@ artifacts {
4142 archives javadocJar
4243}
4344
44- bintray {
45- user = bintrayUser
46- key = bintrayKey
47- publications = [' api' ]
48-
49- pkg {
50- repo = ' primary'
51- userOrg = ' openapi-processor'
52- name = ' openapi-processor-api'
53- licenses = [' Apache-2.0' ]
54- vcsUrl = ' https://github.com/openapi-processor/openapi-processor-api'
55-
56- version {
57- name = project. version
58- }
59- }
60- }
61-
62- publishing {
63- publications {
64- api (MavenPublication ) {
65- from components. java
66- artifact sourcesJar
67- artifact javadocJar
68-
69- groupId project. group
70- artifactId project. name
71- version project. version
72- }
73- }
74- }
45+ apply from : " ${ rootProject.rootDir} /gradle/publishing.gradle"
Original file line number Diff line number Diff line change 1+ projectVersion =1.1.0.M1-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-api
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