Skip to content

Commit 2222d95

Browse files
authored
Merge pull request #77 from dsrees/jcenter-to-maven
Uploading to Maven Central to replace JCenter shutdown
2 parents f879632 + 7ae134b commit 2222d95

File tree

4 files changed

+46
-28
lines changed

4 files changed

+46
-28
lines changed

RELEASING.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ Release Process
77
4. Tag: `git tag -a X.Y.Z -m "Version X.Y.Z"`
88
5. Push: `git push && git push --tags`
99
6. Add the new release with notes (https://github.com/dsrees/JavaPhoenixClient/releases).
10+
7. Publish to Maven Central by running `./gradlew clean publish`. Can only be done by dsrees until CI setup
11+
8. Close the staging repo here: https://s01.oss.sonatype.org/#stagingRepositories
12+
9. Release the closed repo

build.gradle

+21-26
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
1-
buildscript { repositories { jcenter() } }
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
mavenCentral()
5+
}
6+
7+
dependencies {
8+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.14.2'
9+
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.30'
10+
}
11+
}
12+
213
plugins {
314
id 'java'
415
id 'jacoco'
516
id 'org.jetbrains.kotlin.jvm' version '1.3.31'
6-
id 'nebula.project' version '6.0.3'
7-
id "nebula.maven-publish" version '9.5.4'
8-
id 'nebula.nebula-bintray' version '5.0.0'
917
}
1018

19+
ext {
20+
RELEASE_REPOSITORY_URL = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
21+
SNAPSHOT_REPOSITORY_URL = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
22+
}
23+
24+
apply plugin: "org.jetbrains.dokka"
25+
apply plugin: "com.vanniktech.maven.publish"
26+
1127
group 'com.github.dsrees'
1228
version '0.3.4'
1329

1430
sourceCompatibility = 1.8
1531

1632
repositories {
33+
jcenter()
1734
mavenCentral()
1835
}
1936

@@ -49,32 +66,10 @@ jacocoTestReport {
4966
}
5067
}
5168

52-
53-
5469
compileKotlin {
5570
kotlinOptions.jvmTarget = "1.8"
5671
}
5772
compileTestKotlin {
5873
kotlinOptions.jvmTarget = "1.8"
5974
}
6075

61-
bintray {
62-
user = System.getenv('bintrayUser')
63-
key = System.getenv('bintrayApiKey')
64-
dryRun = false
65-
publish = true
66-
pkg {
67-
repo = 'java-phoenix-client'
68-
name = 'JavaPhoenixClient'
69-
userOrg = user
70-
websiteUrl = 'https://github.com/dsrees/JavaPhoenixClient'
71-
issueTrackerUrl = 'https://github.com/dsrees/JavaPhoenixClient/issues'
72-
vcsUrl = 'https://github.com/dsrees/JavaPhoenixClient.git'
73-
licenses = ['MIT']
74-
version {
75-
name = project.version
76-
vcsTag = project.version
77-
}
78-
}
79-
publications = ['nebula']
80-
}

gradle.properties

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
GROUP=com.github.dsrees
2+
POM_ARTIFACT_ID=JavaPhoenixClient
3+
VERSION_NAME=0.3.4
4+
5+
POM_NAME=JavaPhoenixClient
6+
POM_DESCRIPTION=A phoenix channels client built for the JVM
7+
POM_INCEPTION_YEAR=2018
8+
9+
POM_URL=https://github.com/dsrees/JavaPhoenixClient
10+
POM_SCM_URL=https://github.com/dsrees/JavaPhoenixClient.git
11+
POM_SCM_CONNECTION=scm:git:git://github.com/dsrees/JavaPhoenixClient.git
12+
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/dsrees/JavaPhoenixClient.git
13+
14+
POM_LICENCE_NAME=MIT License
15+
POM_LICENCE_URL=https://github.com/dsrees/JavaPhoenixClient/blob/master/LICENSE.md
16+
POM_LICENCE_DIST=repo
17+
18+
POM_DEVELOPER_ID=dsrees
19+
POM_DEVELOPER_NAME=Daniel Rees
20+
POM_DEVELOPER_URL=https://github.com/dsrees/
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Jun 13 12:25:29 EDT 2019
1+
#Thu Mar 18 20:34:38 EDT 2021
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-all.zip

0 commit comments

Comments
 (0)