Skip to content

Commit a75d97a

Browse files
committed
change group id
1 parent cdab126 commit a75d97a

File tree

3 files changed

+93
-35
lines changed

3 files changed

+93
-35
lines changed

build.gradle

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff 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

1617
java {
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"

gradle.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

gradle/publishing.gradle

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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+
}

0 commit comments

Comments
 (0)