Skip to content

Commit

Permalink
Upgrade lib version and upgrade plugin version in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz committed Dec 27, 2018
1 parent dfac210 commit 4271b91
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand All @@ -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'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {

allprojects {
group 'com.github.cretz.pbandk'
version '0.3.0-SNAPSHOT'
version '0.3.0'

repositories {
mavenCentral()
Expand Down
5 changes: 2 additions & 3 deletions examples/browser-js/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Expand All @@ -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'
}
Expand Down
11 changes: 4 additions & 7 deletions examples/custom-service-gen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand All @@ -14,9 +14,6 @@ allprojects {

repositories {
mavenCentral()
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
}

Expand All @@ -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'
}

Expand Down Expand Up @@ -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'
}
}
7 changes: 2 additions & 5 deletions examples/gradle-and-jvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 4271b91

Please sign in to comment.