diff --git a/RELEASING.md b/RELEASING.md index 75a44b4..891816d 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -7,3 +7,6 @@ Release Process 4. Tag: `git tag -a X.Y.Z -m "Version X.Y.Z"` 5. Push: `git push && git push --tags` 6. Add the new release with notes (https://github.com/dsrees/JavaPhoenixClient/releases). + 7. Publish to Maven Central by running `./gradlew clean publish`. Can only be done by dsrees until CI setup + 8. Close the staging repo here: https://s01.oss.sonatype.org/#stagingRepositories + 9. Release the closed repo diff --git a/build.gradle b/build.gradle index c0e2779..2edaaca 100644 --- a/build.gradle +++ b/build.gradle @@ -1,19 +1,36 @@ -buildscript { repositories { jcenter() } } +buildscript { + repositories { + jcenter() + mavenCentral() + } + + dependencies { + classpath 'com.vanniktech:gradle-maven-publish-plugin:0.14.2' + classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.30' + } +} + plugins { id 'java' id 'jacoco' id 'org.jetbrains.kotlin.jvm' version '1.3.31' - id 'nebula.project' version '6.0.3' - id "nebula.maven-publish" version '9.5.4' - id 'nebula.nebula-bintray' version '5.0.0' } +ext { + RELEASE_REPOSITORY_URL = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" + SNAPSHOT_REPOSITORY_URL = "https://s01.oss.sonatype.org/content/repositories/snapshots/" +} + +apply plugin: "org.jetbrains.dokka" +apply plugin: "com.vanniktech.maven.publish" + group 'com.github.dsrees' version '0.3.4' sourceCompatibility = 1.8 repositories { + jcenter() mavenCentral() } @@ -49,8 +66,6 @@ jacocoTestReport { } } - - compileKotlin { kotlinOptions.jvmTarget = "1.8" } @@ -58,23 +73,3 @@ compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } -bintray { - user = System.getenv('bintrayUser') - key = System.getenv('bintrayApiKey') - dryRun = false - publish = true - pkg { - repo = 'java-phoenix-client' - name = 'JavaPhoenixClient' - userOrg = user - websiteUrl = 'https://github.com/dsrees/JavaPhoenixClient' - issueTrackerUrl = 'https://github.com/dsrees/JavaPhoenixClient/issues' - vcsUrl = 'https://github.com/dsrees/JavaPhoenixClient.git' - licenses = ['MIT'] - version { - name = project.version - vcsTag = project.version - } - } - publications = ['nebula'] -} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..65bd7af --- /dev/null +++ b/gradle.properties @@ -0,0 +1,20 @@ +GROUP=com.github.dsrees +POM_ARTIFACT_ID=JavaPhoenixClient +VERSION_NAME=0.3.4 + +POM_NAME=JavaPhoenixClient +POM_DESCRIPTION=A phoenix channels client built for the JVM +POM_INCEPTION_YEAR=2018 + +POM_URL=https://github.com/dsrees/JavaPhoenixClient +POM_SCM_URL=https://github.com/dsrees/JavaPhoenixClient.git +POM_SCM_CONNECTION=scm:git:git://github.com/dsrees/JavaPhoenixClient.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/dsrees/JavaPhoenixClient.git + +POM_LICENCE_NAME=MIT License +POM_LICENCE_URL=https://github.com/dsrees/JavaPhoenixClient/blob/master/LICENSE.md +POM_LICENCE_DIST=repo + +POM_DEVELOPER_ID=dsrees +POM_DEVELOPER_NAME=Daniel Rees +POM_DEVELOPER_URL=https://github.com/dsrees/ \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 05e0e01..d663d77 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Jun 13 12:25:29 EDT 2019 +#Thu Mar 18 20:34:38 EDT 2021 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-all.zip