From 4271b915bb683bd6a6bca1998b688918b750b051 Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Thu, 27 Dec 2018 17:18:44 -0600 Subject: [PATCH] Upgrade lib version and upgrade plugin version in examples --- README.md | 6 +++--- build.gradle | 2 +- examples/browser-js/build.gradle | 5 ++--- examples/custom-service-gen/build.gradle | 11 ++++------- examples/gradle-and-jvm/build.gradle | 7 ++----- 5 files changed, 12 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 199343c..7f9cb37 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ and assuming `mavenCentral()` is one of the `repositories`, the dependency can b ``` dependencies { - compile 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.2.0' + compile 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.3.0' } ``` @@ -185,11 +185,11 @@ PBAndK does not generate gRPC code itself, but offers a `pbandk.gen.ServiceGener that can be implemented to generate the code. To do this, first depend on the project but it will only be needed at compile time because it's already there at -runtime (note, only in Sonatype snapshot repo until 0.3.0 released): +runtime: ``` dependencies { - compileOnly 'com.github.cretz.pbandk:protoc-gen-kotlin-jvm:0.3.0-SNAPSHOT' + compileOnly 'com.github.cretz.pbandk:protoc-gen-kotlin-jvm:0.3.0' } ``` diff --git a/build.gradle b/build.gradle index 48b66a0..14fd493 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ buildscript { allprojects { group 'com.github.cretz.pbandk' - version '0.3.0-SNAPSHOT' + version '0.3.0' repositories { mavenCentral() diff --git a/examples/browser-js/build.gradle b/examples/browser-js/build.gradle index 966623b..6bfd75a 100644 --- a/examples/browser-js/build.gradle +++ b/examples/browser-js/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6' + classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.7' classpath 'org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.44' } } @@ -18,12 +18,11 @@ apply plugin: 'com.google.protobuf' repositories { mavenCentral() - maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version" - compile 'com.github.cretz.pbandk:pbandk-runtime-js:0.3.0-SNAPSHOT' + compile 'com.github.cretz.pbandk:pbandk-runtime-js:0.3.0' // This is needed for includes, ref: https://github.com/google/protobuf-gradle-plugin/issues/41#issuecomment-143884188 compileOnly 'com.google.protobuf:protobuf-java:3.6.1' } diff --git a/examples/custom-service-gen/build.gradle b/examples/custom-service-gen/build.gradle index 49fd54a..7547e92 100644 --- a/examples/custom-service-gen/build.gradle +++ b/examples/custom-service-gen/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6' + classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.7' } } @@ -14,9 +14,6 @@ allprojects { repositories { mavenCentral() - maven { - url = 'https://oss.sonatype.org/content/repositories/snapshots' - } } } @@ -28,7 +25,7 @@ project(':application') { applicationName = 'greeter' dependencies { - compile 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.3.0-SNAPSHOT' + compile 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.3.0' compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0' } @@ -73,7 +70,7 @@ project(':generator') { } dependencies { - compileOnly 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.3.0-SNAPSHOT' - compileOnly name: 'protoc-gen-kotlin-jvm-0.3.0-SNAPSHOT' + compileOnly 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.3.0' + compileOnly name: 'protoc-gen-kotlin-jvm-0.3.0' } } \ No newline at end of file diff --git a/examples/gradle-and-jvm/build.gradle b/examples/gradle-and-jvm/build.gradle index d560dab..a389dea 100644 --- a/examples/gradle-and-jvm/build.gradle +++ b/examples/gradle-and-jvm/build.gradle @@ -5,15 +5,12 @@ buildscript { } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6' + classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.7' } } repositories { mavenCentral() - maven { - url = 'https://oss.sonatype.org/content/repositories/snapshots' - } } apply plugin: 'kotlin' @@ -24,7 +21,7 @@ mainClassName = 'pbandk.examples.addressbook.MainKt' applicationName = 'addressbook' dependencies { - compile 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.3.0-SNAPSHOT' + compile 'com.github.cretz.pbandk:pbandk-runtime-jvm:0.3.0' } compileJava.enabled = false