Skip to content

Commit c7634b2

Browse files
author
manpreet.singh
committed
Publish to maven
1 parent d0c1b31 commit c7634b2

File tree

2 files changed

+51
-9
lines changed

2 files changed

+51
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.gradle
22
.idea
3+
gradle.properties

build.gradle

Lines changed: 50 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
dependencies {
6+
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
7+
}
8+
}
9+
110
plugins {
211
id 'java'
3-
id 'maven-publish'
12+
id 'com.bmuschko.nexus' version '2.3.1'
413
}
514

6-
group 'dev.manpreet'
7-
version '1.0'
15+
archivesBaseName = 'apache-sseclient'
16+
group = "dev.manpreet"
17+
version = "1.0"
818

919
repositories {
1020
mavenCentral()
@@ -53,12 +63,43 @@ test {
5363
}
5464
}
5565

56-
publishing {
57-
publications {
58-
maven(MavenPublication) {
59-
groupId = 'org.apache.client.sse'
60-
artifactId = 'apache-sseclient'
61-
version = '1.0'
66+
modifyPom {
67+
project {
68+
name 'apache-sseclient'
69+
description 'SSE client for apache HTTP client'
70+
url 'https://github.com/autopreet/apache-sseclient'
71+
inceptionYear '2020'
72+
73+
scm {
74+
url 'https://github.com/autopreet/apache-sseclient'
75+
connection 'scm:https://github.com/autopreet/apache-sseclient.git'
76+
developerConnection 'scm:https://github.com/autopreet/apache-sseclient.git'
77+
}
78+
79+
licenses {
80+
license {
81+
name 'The Apache Software License, Version 2.0'
82+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
83+
distribution 'repo'
84+
}
85+
}
86+
87+
developers {
88+
developer {
89+
id 'autopreet'
90+
name 'Manpreet'
91+
92+
}
6293
}
6394
}
95+
}
96+
97+
extraArchive {
98+
sources = true
99+
}
100+
101+
nexus {
102+
sign = true
103+
repositoryUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
104+
snapshotRepositoryUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
64105
}

0 commit comments

Comments
 (0)